node_modules: update
This commit is contained in:
parent
c4ea5b96e9
commit
7c68f31a28
9
node_modules/@actions/core/lib/command.d.ts
generated
vendored
9
node_modules/@actions/core/lib/command.d.ts
generated
vendored
|
@ -1,5 +1,5 @@
|
||||||
interface CommandProperties {
|
interface CommandProperties {
|
||||||
[key: string]: string;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Commands
|
* Commands
|
||||||
|
@ -11,6 +11,11 @@ interface CommandProperties {
|
||||||
* ::warning::This is the message
|
* ::warning::This is the message
|
||||||
* ::set-env name=MY_VAR::some value
|
* ::set-env name=MY_VAR::some value
|
||||||
*/
|
*/
|
||||||
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void;
|
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
|
||||||
export declare function issue(name: string, message?: string): void;
|
export declare function issue(name: string, message?: string): void;
|
||||||
|
/**
|
||||||
|
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||||
|
* @param input input to sanitize into a string
|
||||||
|
*/
|
||||||
|
export declare function toCommandValue(input: any): string;
|
||||||
export {};
|
export {};
|
||||||
|
|
18
node_modules/@actions/core/lib/command.js
generated
vendored
18
node_modules/@actions/core/lib/command.js
generated
vendored
|
@ -61,14 +61,28 @@ class Command {
|
||||||
return cmdStr;
|
return cmdStr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||||
|
* @param input input to sanitize into a string
|
||||||
|
*/
|
||||||
|
function toCommandValue(input) {
|
||||||
|
if (input === null || input === undefined) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
else if (typeof input === 'string' || input instanceof String) {
|
||||||
|
return input;
|
||||||
|
}
|
||||||
|
return JSON.stringify(input);
|
||||||
|
}
|
||||||
|
exports.toCommandValue = toCommandValue;
|
||||||
function escapeData(s) {
|
function escapeData(s) {
|
||||||
return (s || '')
|
return toCommandValue(s)
|
||||||
.replace(/%/g, '%25')
|
.replace(/%/g, '%25')
|
||||||
.replace(/\r/g, '%0D')
|
.replace(/\r/g, '%0D')
|
||||||
.replace(/\n/g, '%0A');
|
.replace(/\n/g, '%0A');
|
||||||
}
|
}
|
||||||
function escapeProperty(s) {
|
function escapeProperty(s) {
|
||||||
return (s || '')
|
return toCommandValue(s)
|
||||||
.replace(/%/g, '%25')
|
.replace(/%/g, '%25')
|
||||||
.replace(/\r/g, '%0D')
|
.replace(/\r/g, '%0D')
|
||||||
.replace(/\n/g, '%0A')
|
.replace(/\n/g, '%0A')
|
||||||
|
|
2
node_modules/@actions/core/lib/command.js.map
generated
vendored
2
node_modules/@actions/core/lib/command.js.map
generated
vendored
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AAQxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAe;IAEf,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;SACb,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAS;IAC/B,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;SACb,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"}
|
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AAWxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,cAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,cAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"}
|
28
node_modules/@actions/core/lib/core.d.ts
generated
vendored
28
node_modules/@actions/core/lib/core.d.ts
generated
vendored
|
@ -21,9 +21,9 @@ export declare enum ExitCode {
|
||||||
/**
|
/**
|
||||||
* Sets env variable for this action and future actions in the job
|
* Sets env variable for this action and future actions in the job
|
||||||
* @param name the name of the variable to set
|
* @param name the name of the variable to set
|
||||||
* @param val the value of the variable
|
* @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
|
||||||
*/
|
*/
|
||||||
export declare function exportVariable(name: string, val: string): void;
|
export declare function exportVariable(name: string, val: any): void;
|
||||||
/**
|
/**
|
||||||
* Registers a secret which will get masked from logs
|
* Registers a secret which will get masked from logs
|
||||||
* @param secret value of the secret
|
* @param secret value of the secret
|
||||||
|
@ -46,15 +46,21 @@ export declare function getInput(name: string, options?: InputOptions): string;
|
||||||
* Sets the value of an output.
|
* Sets the value of an output.
|
||||||
*
|
*
|
||||||
* @param name name of the output to set
|
* @param name name of the output to set
|
||||||
* @param value value to store
|
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
|
||||||
*/
|
*/
|
||||||
export declare function setOutput(name: string, value: string): void;
|
export declare function setOutput(name: string, value: any): void;
|
||||||
|
/**
|
||||||
|
* Enables or disables the echoing of commands into stdout for the rest of the step.
|
||||||
|
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export declare function setCommandEcho(enabled: boolean): void;
|
||||||
/**
|
/**
|
||||||
* Sets the action status to failed.
|
* Sets the action status to failed.
|
||||||
* When the action exits it will be with an exit code of 1
|
* When the action exits it will be with an exit code of 1
|
||||||
* @param message add error issue message
|
* @param message add error issue message
|
||||||
*/
|
*/
|
||||||
export declare function setFailed(message: string): void;
|
export declare function setFailed(message: string | Error): void;
|
||||||
/**
|
/**
|
||||||
* Gets whether Actions Step Debug is on or not
|
* Gets whether Actions Step Debug is on or not
|
||||||
*/
|
*/
|
||||||
|
@ -66,14 +72,14 @@ export declare function isDebug(): boolean;
|
||||||
export declare function debug(message: string): void;
|
export declare function debug(message: string): void;
|
||||||
/**
|
/**
|
||||||
* Adds an error issue
|
* Adds an error issue
|
||||||
* @param message error issue message
|
* @param message error issue message. Errors will be converted to string via toString()
|
||||||
*/
|
*/
|
||||||
export declare function error(message: string): void;
|
export declare function error(message: string | Error): void;
|
||||||
/**
|
/**
|
||||||
* Adds an warning issue
|
* Adds an warning issue
|
||||||
* @param message warning issue message
|
* @param message warning issue message. Errors will be converted to string via toString()
|
||||||
*/
|
*/
|
||||||
export declare function warning(message: string): void;
|
export declare function warning(message: string | Error): void;
|
||||||
/**
|
/**
|
||||||
* Writes info to log with console.log.
|
* Writes info to log with console.log.
|
||||||
* @param message info message
|
* @param message info message
|
||||||
|
@ -104,9 +110,9 @@ export declare function group<T>(name: string, fn: () => Promise<T>): Promise<T>
|
||||||
* Saves state for current action, the state can only be retrieved by this action's post job execution.
|
* Saves state for current action, the state can only be retrieved by this action's post job execution.
|
||||||
*
|
*
|
||||||
* @param name name of the state to store
|
* @param name name of the state to store
|
||||||
* @param value value to store
|
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
|
||||||
*/
|
*/
|
||||||
export declare function saveState(name: string, value: string): void;
|
export declare function saveState(name: string, value: any): void;
|
||||||
/**
|
/**
|
||||||
* Gets the value of an state set by this action's main execution.
|
* Gets the value of an state set by this action's main execution.
|
||||||
*
|
*
|
||||||
|
|
31
node_modules/@actions/core/lib/core.js
generated
vendored
31
node_modules/@actions/core/lib/core.js
generated
vendored
|
@ -39,11 +39,13 @@ var ExitCode;
|
||||||
/**
|
/**
|
||||||
* Sets env variable for this action and future actions in the job
|
* Sets env variable for this action and future actions in the job
|
||||||
* @param name the name of the variable to set
|
* @param name the name of the variable to set
|
||||||
* @param val the value of the variable
|
* @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
|
||||||
*/
|
*/
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
function exportVariable(name, val) {
|
function exportVariable(name, val) {
|
||||||
process.env[name] = val;
|
const convertedVal = command_1.toCommandValue(val);
|
||||||
command_1.issueCommand('set-env', { name }, val);
|
process.env[name] = convertedVal;
|
||||||
|
command_1.issueCommand('set-env', { name }, convertedVal);
|
||||||
}
|
}
|
||||||
exports.exportVariable = exportVariable;
|
exports.exportVariable = exportVariable;
|
||||||
/**
|
/**
|
||||||
|
@ -82,12 +84,22 @@ exports.getInput = getInput;
|
||||||
* Sets the value of an output.
|
* Sets the value of an output.
|
||||||
*
|
*
|
||||||
* @param name name of the output to set
|
* @param name name of the output to set
|
||||||
* @param value value to store
|
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
|
||||||
*/
|
*/
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
function setOutput(name, value) {
|
function setOutput(name, value) {
|
||||||
command_1.issueCommand('set-output', { name }, value);
|
command_1.issueCommand('set-output', { name }, value);
|
||||||
}
|
}
|
||||||
exports.setOutput = setOutput;
|
exports.setOutput = setOutput;
|
||||||
|
/**
|
||||||
|
* Enables or disables the echoing of commands into stdout for the rest of the step.
|
||||||
|
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function setCommandEcho(enabled) {
|
||||||
|
command_1.issue('echo', enabled ? 'on' : 'off');
|
||||||
|
}
|
||||||
|
exports.setCommandEcho = setCommandEcho;
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// Results
|
// Results
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
@ -121,18 +133,18 @@ function debug(message) {
|
||||||
exports.debug = debug;
|
exports.debug = debug;
|
||||||
/**
|
/**
|
||||||
* Adds an error issue
|
* Adds an error issue
|
||||||
* @param message error issue message
|
* @param message error issue message. Errors will be converted to string via toString()
|
||||||
*/
|
*/
|
||||||
function error(message) {
|
function error(message) {
|
||||||
command_1.issue('error', message);
|
command_1.issue('error', message instanceof Error ? message.toString() : message);
|
||||||
}
|
}
|
||||||
exports.error = error;
|
exports.error = error;
|
||||||
/**
|
/**
|
||||||
* Adds an warning issue
|
* Adds an warning issue
|
||||||
* @param message warning issue message
|
* @param message warning issue message. Errors will be converted to string via toString()
|
||||||
*/
|
*/
|
||||||
function warning(message) {
|
function warning(message) {
|
||||||
command_1.issue('warning', message);
|
command_1.issue('warning', message instanceof Error ? message.toString() : message);
|
||||||
}
|
}
|
||||||
exports.warning = warning;
|
exports.warning = warning;
|
||||||
/**
|
/**
|
||||||
|
@ -190,8 +202,9 @@ exports.group = group;
|
||||||
* Saves state for current action, the state can only be retrieved by this action's post job execution.
|
* Saves state for current action, the state can only be retrieved by this action's post job execution.
|
||||||
*
|
*
|
||||||
* @param name name of the state to store
|
* @param name name of the state to store
|
||||||
* @param value value to store
|
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
|
||||||
*/
|
*/
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
function saveState(name, value) {
|
function saveState(name, value) {
|
||||||
command_1.issueCommand('save-state', { name }, value);
|
command_1.issueCommand('save-state', { name }, value);
|
||||||
}
|
}
|
||||||
|
|
2
node_modules/@actions/core/lib/core.js.map
generated
vendored
2
node_modules/@actions/core/lib/core.js.map
generated
vendored
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"}
|
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"}
|
22
node_modules/@actions/core/package.json
generated
vendored
22
node_modules/@actions/core/package.json
generated
vendored
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
"_from": "@actions/core",
|
"_from": "@actions/core@1.2.4",
|
||||||
"_id": "@actions/core@1.2.3",
|
"_id": "@actions/core@1.2.4",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w==",
|
"_integrity": "sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==",
|
||||||
"_location": "/@actions/core",
|
"_location": "/@actions/core",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "tag",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "@actions/core",
|
"raw": "@actions/core@1.2.4",
|
||||||
"name": "@actions/core",
|
"name": "@actions/core",
|
||||||
"escapedName": "@actions%2fcore",
|
"escapedName": "@actions%2fcore",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "",
|
"rawSpec": "1.2.4",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "latest"
|
"fetchSpec": "1.2.4"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"#USER",
|
"#USER",
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.3.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.4.tgz",
|
||||||
"_shasum": "e844b4fa0820e206075445079130868f95bfca95",
|
"_shasum": "96179dbf9f8d951dd74b40a0dbd5c22555d186ab",
|
||||||
"_spec": "@actions/core",
|
"_spec": "@actions/core@1.2.4",
|
||||||
"_where": "/home/dawidd6/github/dawidd6/action-debian-package",
|
"_where": "/home/dawidd6/github/dawidd6/action-debian-package",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
|
@ -63,5 +63,5 @@
|
||||||
"tsc": "tsc"
|
"tsc": "tsc"
|
||||||
},
|
},
|
||||||
"types": "lib/core.d.ts",
|
"types": "lib/core.d.ts",
|
||||||
"version": "1.2.3"
|
"version": "1.2.4"
|
||||||
}
|
}
|
||||||
|
|
5
node_modules/@actions/exec/lib/exec.d.ts
generated
vendored
5
node_modules/@actions/exec/lib/exec.d.ts
generated
vendored
|
@ -1,4 +1,5 @@
|
||||||
import * as im from './interfaces';
|
import { ExecOptions } from './interfaces';
|
||||||
|
export { ExecOptions };
|
||||||
/**
|
/**
|
||||||
* Exec a command.
|
* Exec a command.
|
||||||
* Output will be streamed to the live console.
|
* Output will be streamed to the live console.
|
||||||
|
@ -9,4 +10,4 @@ import * as im from './interfaces';
|
||||||
* @param options optional exec options. See ExecOptions
|
* @param options optional exec options. See ExecOptions
|
||||||
* @returns Promise<number> exit code
|
* @returns Promise<number> exit code
|
||||||
*/
|
*/
|
||||||
export declare function exec(commandLine: string, args?: string[], options?: im.ExecOptions): Promise<number>;
|
export declare function exec(commandLine: string, args?: string[], options?: ExecOptions): Promise<number>;
|
||||||
|
|
9
node_modules/@actions/exec/lib/exec.js
generated
vendored
9
node_modules/@actions/exec/lib/exec.js
generated
vendored
|
@ -8,8 +8,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||||
|
result["default"] = mod;
|
||||||
|
return result;
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const tr = require("./toolrunner");
|
const tr = __importStar(require("./toolrunner"));
|
||||||
/**
|
/**
|
||||||
* Exec a command.
|
* Exec a command.
|
||||||
* Output will be streamed to the live console.
|
* Output will be streamed to the live console.
|
||||||
|
|
2
node_modules/@actions/exec/lib/exec.js.map
generated
vendored
2
node_modules/@actions/exec/lib/exec.js.map
generated
vendored
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../src/exec.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,mCAAkC;AAElC;;;;;;;;;GASG;AACH,SAAsB,IAAI,CACxB,WAAmB,EACnB,IAAe,EACf,OAAwB;;QAExB,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAA;QACpD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;SACpE;QACD,8CAA8C;QAC9C,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA;QAC/B,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAA;QAC9C,MAAM,MAAM,GAAkB,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;QACxE,OAAO,MAAM,CAAC,IAAI,EAAE,CAAA;IACtB,CAAC;CAAA;AAdD,oBAcC"}
|
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../src/exec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iDAAkC;AAIlC;;;;;;;;;GASG;AACH,SAAsB,IAAI,CACxB,WAAmB,EACnB,IAAe,EACf,OAAqB;;QAErB,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAA;QACpD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;SACpE;QACD,8CAA8C;QAC9C,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA;QAC/B,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAA;QAC9C,MAAM,MAAM,GAAkB,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;QACxE,OAAO,MAAM,CAAC,IAAI,EAAE,CAAA;IACtB,CAAC;CAAA;AAdD,oBAcC"}
|
2
node_modules/@actions/exec/lib/interfaces.d.ts
generated
vendored
2
node_modules/@actions/exec/lib/interfaces.d.ts
generated
vendored
|
@ -24,6 +24,8 @@ export interface ExecOptions {
|
||||||
ignoreReturnCode?: boolean;
|
ignoreReturnCode?: boolean;
|
||||||
/** optional. How long in ms to wait for STDIO streams to close after the exit event of the process before terminating. defaults to 10000 */
|
/** optional. How long in ms to wait for STDIO streams to close after the exit event of the process before terminating. defaults to 10000 */
|
||||||
delay?: number;
|
delay?: number;
|
||||||
|
/** optional. input to write to the process on STDIN. */
|
||||||
|
input?: Buffer;
|
||||||
/** optional. Listeners for output. Callback functions that will be called on these events */
|
/** optional. Listeners for output. Callback functions that will be called on these events */
|
||||||
listeners?: {
|
listeners?: {
|
||||||
stdout?: (data: Buffer) => void;
|
stdout?: (data: Buffer) => void;
|
||||||
|
|
25
node_modules/@actions/exec/lib/toolrunner.js
generated
vendored
25
node_modules/@actions/exec/lib/toolrunner.js
generated
vendored
|
@ -8,13 +8,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||||
|
result["default"] = mod;
|
||||||
|
return result;
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const os = require("os");
|
const os = __importStar(require("os"));
|
||||||
const events = require("events");
|
const events = __importStar(require("events"));
|
||||||
const child = require("child_process");
|
const child = __importStar(require("child_process"));
|
||||||
const path = require("path");
|
const path = __importStar(require("path"));
|
||||||
const io = require("@actions/io");
|
const io = __importStar(require("@actions/io"));
|
||||||
const ioUtil = require("@actions/io/lib/io-util");
|
const ioUtil = __importStar(require("@actions/io/lib/io-util"));
|
||||||
/* eslint-disable @typescript-eslint/unbound-method */
|
/* eslint-disable @typescript-eslint/unbound-method */
|
||||||
const IS_WINDOWS = process.platform === 'win32';
|
const IS_WINDOWS = process.platform === 'win32';
|
||||||
/*
|
/*
|
||||||
|
@ -458,6 +465,12 @@ class ToolRunner extends events.EventEmitter {
|
||||||
resolve(exitCode);
|
resolve(exitCode);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (this.options.input) {
|
||||||
|
if (!cp.stdin) {
|
||||||
|
throw new Error('child process missing stdin');
|
||||||
|
}
|
||||||
|
cp.stdin.end(this.options.input);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
2
node_modules/@actions/exec/lib/toolrunner.js.map
generated
vendored
2
node_modules/@actions/exec/lib/toolrunner.js.map
generated
vendored
File diff suppressed because one or more lines are too long
22
node_modules/@actions/exec/package.json
generated
vendored
22
node_modules/@actions/exec/package.json
generated
vendored
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
"_from": "@actions/exec",
|
"_from": "@actions/exec@1.0.4",
|
||||||
"_id": "@actions/exec@1.0.3",
|
"_id": "@actions/exec@1.0.4",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-TogJGnueOmM7ntCi0ASTUj4LapRRtDfj57Ja4IhPmg2fls28uVOPbAn8N+JifaOumN2UG3oEO/Ixek2A4NcYSA==",
|
"_integrity": "sha512-4DPChWow9yc9W3WqEbUj8Nr86xkpyE29ZzWjXucHItclLbEW6jr80Zx4nqv18QL6KK65+cifiQZXvnqgTV6oHw==",
|
||||||
"_location": "/@actions/exec",
|
"_location": "/@actions/exec",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "tag",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "@actions/exec",
|
"raw": "@actions/exec@1.0.4",
|
||||||
"name": "@actions/exec",
|
"name": "@actions/exec",
|
||||||
"escapedName": "@actions%2fexec",
|
"escapedName": "@actions%2fexec",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "",
|
"rawSpec": "1.0.4",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "latest"
|
"fetchSpec": "1.0.4"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"#USER",
|
"#USER",
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.3.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.4.tgz",
|
||||||
"_shasum": "b967f8700d6ff011dcc91243b58bafc1bb9ab95f",
|
"_shasum": "99d75310e62e59fc37d2ee6dcff6d4bffadd3a5d",
|
||||||
"_spec": "@actions/exec",
|
"_spec": "@actions/exec@1.0.4",
|
||||||
"_where": "/home/dawidd6/github/dawidd6/action-debian-package",
|
"_where": "/home/dawidd6/github/dawidd6/action-debian-package",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
|
@ -63,5 +63,5 @@
|
||||||
"tsc": "tsc"
|
"tsc": "tsc"
|
||||||
},
|
},
|
||||||
"types": "lib/exec.d.ts",
|
"types": "lib/exec.d.ts",
|
||||||
"version": "1.0.3"
|
"version": "1.0.4"
|
||||||
}
|
}
|
||||||
|
|
4
node_modules/camelcase-keys/index.js
generated
vendored
4
node_modules/camelcase-keys/index.js
generated
vendored
|
@ -23,6 +23,10 @@ const isObject = value =>
|
||||||
!(value instanceof Date);
|
!(value instanceof Date);
|
||||||
|
|
||||||
const camelCaseConvert = (input, options) => {
|
const camelCaseConvert = (input, options) => {
|
||||||
|
if (!isObject(input)) {
|
||||||
|
return input;
|
||||||
|
}
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
deep: false,
|
deep: false,
|
||||||
pascalCase: false,
|
pascalCase: false,
|
||||||
|
|
20
node_modules/camelcase-keys/package.json
generated
vendored
20
node_modules/camelcase-keys/package.json
generated
vendored
|
@ -1,26 +1,26 @@
|
||||||
{
|
{
|
||||||
"_from": "camelcase-keys@6.2.1",
|
"_from": "camelcase-keys@6.2.2",
|
||||||
"_id": "camelcase-keys@6.2.1",
|
"_id": "camelcase-keys@6.2.2",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-BPCNVH56RVIxQQIXskp5tLQXUNGQ6sXr7iCv1FHDt81xBOQ/1r6H8SPxf19InVP6DexWar4s87q9thfuk8X9HA==",
|
"_integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==",
|
||||||
"_location": "/camelcase-keys",
|
"_location": "/camelcase-keys",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "camelcase-keys@6.2.1",
|
"raw": "camelcase-keys@6.2.2",
|
||||||
"name": "camelcase-keys",
|
"name": "camelcase-keys",
|
||||||
"escapedName": "camelcase-keys",
|
"escapedName": "camelcase-keys",
|
||||||
"rawSpec": "6.2.1",
|
"rawSpec": "6.2.2",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "6.2.1"
|
"fetchSpec": "6.2.2"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/docker-hub-utils"
|
"/docker-hub-utils"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.1.tgz",
|
"_resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz",
|
||||||
"_shasum": "cd3e2d2d7db767aa3f247e4c2df93b4661008945",
|
"_shasum": "5e755d6ba51aa223ec7d3d52f25778210f9dc3c0",
|
||||||
"_spec": "camelcase-keys@6.2.1",
|
"_spec": "camelcase-keys@6.2.2",
|
||||||
"_where": "/home/dawidd6/github/dawidd6/action-debian-package/node_modules/docker-hub-utils",
|
"_where": "/home/dawidd6/github/dawidd6/action-debian-package/node_modules/docker-hub-utils",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Sindre Sorhus",
|
"name": "Sindre Sorhus",
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
"bench": "matcha bench/bench.js",
|
"bench": "matcha bench/bench.js",
|
||||||
"test": "xo && ava && tsd"
|
"test": "xo && ava && tsd"
|
||||||
},
|
},
|
||||||
"version": "6.2.1",
|
"version": "6.2.2",
|
||||||
"xo": {
|
"xo": {
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
|
64
node_modules/docker-hub-utils/package.json
generated
vendored
64
node_modules/docker-hub-utils/package.json
generated
vendored
|
@ -1,27 +1,27 @@
|
||||||
{
|
{
|
||||||
"_from": "docker-hub-utils",
|
"_from": "docker-hub-utils@1.10.33",
|
||||||
"_id": "docker-hub-utils@1.10.29",
|
"_id": "docker-hub-utils@1.10.33",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-wZ3BmcG3mq90rlXGfGcgqwgyTyO0kWQA5D+3J7T+nLgE1mzjggK1ZDB44krt5dj5lK/nXla3vGIw7nF7IE2kQQ==",
|
"_integrity": "sha512-ky+20smyh6xxxS3muy0tkaNsIp2SpW+qOZgrzrBAorC1fFwd4ilN+b8CeRt+s8lfebEI9FS7B6OtzTjh5uACEw==",
|
||||||
"_location": "/docker-hub-utils",
|
"_location": "/docker-hub-utils",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "tag",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "docker-hub-utils",
|
"raw": "docker-hub-utils@1.10.33",
|
||||||
"name": "docker-hub-utils",
|
"name": "docker-hub-utils",
|
||||||
"escapedName": "docker-hub-utils",
|
"escapedName": "docker-hub-utils",
|
||||||
"rawSpec": "",
|
"rawSpec": "1.10.33",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "latest"
|
"fetchSpec": "1.10.33"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"#USER",
|
"#USER",
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/docker-hub-utils/-/docker-hub-utils-1.10.29.tgz",
|
"_resolved": "https://registry.npmjs.org/docker-hub-utils/-/docker-hub-utils-1.10.33.tgz",
|
||||||
"_shasum": "8e1f910e704c9a7706dba8fb2b3078d7fbbe7a6e",
|
"_shasum": "22cbfe971867b162875b3551ffebfb047a22a745",
|
||||||
"_spec": "docker-hub-utils",
|
"_spec": "docker-hub-utils@1.10.33",
|
||||||
"_where": "/home/dawidd6/github/dawidd6/action-debian-package",
|
"_where": "/home/dawidd6/github/dawidd6/action-debian-package",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Jesse Stuart",
|
"name": "Jesse Stuart",
|
||||||
|
@ -33,8 +33,8 @@
|
||||||
"bundleDependencies": false,
|
"bundleDependencies": false,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "0.19.2",
|
"axios": "0.19.2",
|
||||||
"camelcase-keys": "6.2.1",
|
"camelcase-keys": "6.2.2",
|
||||||
"luxon": "1.22.2",
|
"luxon": "1.24.1",
|
||||||
"pino": "5.17.0",
|
"pino": "5.17.0",
|
||||||
"ramda": "0.27.0"
|
"ramda": "0.27.0"
|
||||||
},
|
},
|
||||||
|
@ -42,33 +42,33 @@
|
||||||
"description": "Typescript / Node utilities for interacting with the Docker Hub API.",
|
"description": "Typescript / Node utilities for interacting with the Docker Hub API.",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@semantic-release/git": "9.0.0",
|
"@semantic-release/git": "9.0.0",
|
||||||
"@types/jest": "25.1.4",
|
"@types/jest": "25.2.1",
|
||||||
"@types/luxon": "1.22.0",
|
"@types/luxon": "1.22.0",
|
||||||
"@types/node": "13.9.4",
|
"@types/node": "13.13.4",
|
||||||
"@types/pino": "5.17.0",
|
"@types/pino": "5.20.0",
|
||||||
"@types/ramda": "0.27.0",
|
"@types/ramda": "0.27.4",
|
||||||
"@typescript-eslint/eslint-plugin": "2.25.0",
|
"@typescript-eslint/eslint-plugin": "2.31.0",
|
||||||
"@typescript-eslint/parser": "2.25.0",
|
"@typescript-eslint/parser": "2.31.0",
|
||||||
"codecov": "3.6.5",
|
"codecov": "3.6.5",
|
||||||
"concurrently": "5.1.0",
|
"concurrently": "5.2.0",
|
||||||
"eslint": "6.8.0",
|
"eslint": "6.8.0",
|
||||||
"eslint-config-prettier": "6.10.1",
|
"eslint-config-prettier": "6.11.0",
|
||||||
"eslint-plugin-import": "2.20.1",
|
"eslint-plugin-import": "2.20.2",
|
||||||
"eslint-plugin-prettier": "3.1.2",
|
"eslint-plugin-prettier": "3.1.3",
|
||||||
"husky": "4.2.3",
|
"husky": "4.2.5",
|
||||||
"jest": "25.1.0",
|
"jest": "25.5.4",
|
||||||
"jest-junit": "10.0.0",
|
"jest-junit": "10.0.0",
|
||||||
"nodemon": "2.0.2",
|
"nodemon": "2.0.3",
|
||||||
"prettier": "1.19.1",
|
"prettier": "1.19.1",
|
||||||
"pretty-quick": "2.0.1",
|
"pretty-quick": "2.0.1",
|
||||||
"semantic-release": "17.0.4",
|
"semantic-release": "17.0.7",
|
||||||
"source-map-support": "0.5.16",
|
"source-map-support": "0.5.19",
|
||||||
"ts-jest": "25.2.1",
|
"ts-jest": "25.4.0",
|
||||||
"tsdx": "0.13.0",
|
"tsdx": "0.13.2",
|
||||||
"tslib": "1.11.1",
|
"tslib": "1.11.1",
|
||||||
"tslint": "6.1.0",
|
"tslint": "6.1.2",
|
||||||
"tslint-config-prettier": "1.18.0",
|
"tslint-config-prettier": "1.18.0",
|
||||||
"typedoc": "0.17.3",
|
"typedoc": "0.17.6",
|
||||||
"typescript": "3.8.3"
|
"typescript": "3.8.3"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -110,5 +110,5 @@
|
||||||
"test": "yarn jest --cache --coverage"
|
"test": "yarn jest --cache --coverage"
|
||||||
},
|
},
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"version": "1.10.29"
|
"version": "1.10.33"
|
||||||
}
|
}
|
||||||
|
|
32
node_modules/luxon/changelog.md → node_modules/luxon/CHANGELOG.md
generated
vendored
32
node_modules/luxon/changelog.md → node_modules/luxon/CHANGELOG.md
generated
vendored
|
@ -1,30 +1,50 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 1.22.0
|
## 1.24.1 (2020-05-04)
|
||||||
|
|
||||||
|
* Remove erroneous `console.log` call
|
||||||
|
|
||||||
|
## 1.24.0 (2020-05-03)
|
||||||
|
|
||||||
|
* Update polyfills for pollyfilled build
|
||||||
|
|
||||||
|
## 1.23.0 (2020-04-02)
|
||||||
|
|
||||||
|
* Allow minus sign prefix when creating Duration from ISO
|
||||||
|
|
||||||
|
## 1.22.2 (2020-03-25)
|
||||||
|
|
||||||
|
* Added more details to error messages for type errors
|
||||||
|
|
||||||
|
## 1.22.1 (2020-03-19)
|
||||||
|
|
||||||
|
* Added support for ISO basic format to DateTime#toISO
|
||||||
|
|
||||||
|
## 1.22.0 (2020-01-26)
|
||||||
|
|
||||||
* Fix setZone's handling of pre-1970 dates with milisecond components
|
* Fix setZone's handling of pre-1970 dates with milisecond components
|
||||||
* Fix keepLocalTime for large jumps near the target zone's DST
|
* Fix keepLocalTime for large jumps near the target zone's DST
|
||||||
* Fix cache perf for toRelative()
|
* Fix cache perf for toRelative()
|
||||||
|
|
||||||
## 1.21.3
|
## 1.21.3 (2019-11-28)
|
||||||
|
|
||||||
* Fix parsing of meridiems in macro tokens in newer versions of v8
|
* Fix parsing of meridiems in macro tokens in newer versions of v8
|
||||||
|
|
||||||
## 1.21.2
|
## 1.21.2 (2019-11-18)
|
||||||
|
|
||||||
* Fix bug in Chrome Canary that threw off time zone calculations
|
* Fix bug in Chrome Canary that threw off time zone calculations
|
||||||
|
|
||||||
## 1.21.1
|
## 1.21.1 (2019-11-03)
|
||||||
|
|
||||||
* Fix for quarter parsing
|
* Fix for quarter parsing
|
||||||
* Some documentation updates
|
* Some documentation updates
|
||||||
|
|
||||||
## 1.21.0
|
## 1.21.0 (2019-10-30)
|
||||||
|
|
||||||
* Added quarter support to the parser
|
* Added quarter support to the parser
|
||||||
* Fix some rounding issues in ISO formatting
|
* Fix some rounding issues in ISO formatting
|
||||||
|
|
||||||
## 1.20.0
|
## 1.20.0 (2019-10-29)
|
||||||
|
|
||||||
* Added Duration#mapUnits
|
* Added Duration#mapUnits
|
||||||
* added Interval#toISODate and Interval#toISOTime
|
* added Interval#toISODate and Interval#toISOTime
|
372
node_modules/luxon/build/amd/luxon.js
generated
vendored
372
node_modules/luxon/build/amd/luxon.js
generated
vendored
|
@ -38,7 +38,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
return _setPrototypeOf(o, p);
|
return _setPrototypeOf(o, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isNativeReflectConstruct() {
|
function _isNativeReflectConstruct() {
|
||||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||||
if (Reflect.construct.sham) return false;
|
if (Reflect.construct.sham) return false;
|
||||||
if (typeof Proxy === "function") return true;
|
if (typeof Proxy === "function") return true;
|
||||||
|
@ -52,7 +52,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
}
|
}
|
||||||
|
|
||||||
function _construct(Parent, args, Class) {
|
function _construct(Parent, args, Class) {
|
||||||
if (isNativeReflectConstruct()) {
|
if (_isNativeReflectConstruct()) {
|
||||||
_construct = Reflect.construct;
|
_construct = Reflect.construct;
|
||||||
} else {
|
} else {
|
||||||
_construct = function _construct(Parent, args, Class) {
|
_construct = function _construct(Parent, args, Class) {
|
||||||
|
@ -121,14 +121,49 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
|
if (!o) return;
|
||||||
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||||
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||||
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _arrayLikeToArray(arr, len) {
|
||||||
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
|
return arr2;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createForOfIteratorHelperLoose(o) {
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
|
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||||
|
if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: o[i++]
|
||||||
|
};
|
||||||
|
};
|
||||||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
}
|
||||||
|
|
||||||
|
i = o[Symbol.iterator]();
|
||||||
|
return i.next.bind(i);
|
||||||
|
}
|
||||||
|
|
||||||
// these aren't really private, but nor are they really useful to document
|
// these aren't really private, but nor are they really useful to document
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
var LuxonError =
|
var LuxonError = /*#__PURE__*/function (_Error) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Error) {
|
|
||||||
_inheritsLoose(LuxonError, _Error);
|
_inheritsLoose(LuxonError, _Error);
|
||||||
|
|
||||||
function LuxonError() {
|
function LuxonError() {
|
||||||
|
@ -136,15 +171,13 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuxonError;
|
return LuxonError;
|
||||||
}(_wrapNativeSuper(Error));
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var InvalidDateTimeError =
|
var InvalidDateTimeError = /*#__PURE__*/function (_LuxonError) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError) {
|
|
||||||
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
||||||
|
|
||||||
function InvalidDateTimeError(reason) {
|
function InvalidDateTimeError(reason) {
|
||||||
|
@ -157,9 +190,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidIntervalError =
|
var InvalidIntervalError = /*#__PURE__*/function (_LuxonError2) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError2) {
|
|
||||||
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
||||||
|
|
||||||
function InvalidIntervalError(reason) {
|
function InvalidIntervalError(reason) {
|
||||||
|
@ -172,9 +203,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidDurationError =
|
var InvalidDurationError = /*#__PURE__*/function (_LuxonError3) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError3) {
|
|
||||||
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
||||||
|
|
||||||
function InvalidDurationError(reason) {
|
function InvalidDurationError(reason) {
|
||||||
|
@ -187,9 +216,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ConflictingSpecificationError =
|
var ConflictingSpecificationError = /*#__PURE__*/function (_LuxonError4) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError4) {
|
|
||||||
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
||||||
|
|
||||||
function ConflictingSpecificationError() {
|
function ConflictingSpecificationError() {
|
||||||
|
@ -202,9 +229,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidUnitError =
|
var InvalidUnitError = /*#__PURE__*/function (_LuxonError5) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError5) {
|
|
||||||
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
||||||
|
|
||||||
function InvalidUnitError(unit) {
|
function InvalidUnitError(unit) {
|
||||||
|
@ -217,9 +242,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidArgumentError =
|
var InvalidArgumentError = /*#__PURE__*/function (_LuxonError6) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError6) {
|
|
||||||
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
||||||
|
|
||||||
function InvalidArgumentError() {
|
function InvalidArgumentError() {
|
||||||
|
@ -232,9 +255,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ZoneIsAbstractError =
|
var ZoneIsAbstractError = /*#__PURE__*/function (_LuxonError7) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError7) {
|
|
||||||
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
||||||
|
|
||||||
function ZoneIsAbstractError() {
|
function ZoneIsAbstractError() {
|
||||||
|
@ -873,19 +894,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
function stringifyTokens(splits, tokenToString) {
|
function stringifyTokens(splits, tokenToString) {
|
||||||
var s = "";
|
var s = "";
|
||||||
|
|
||||||
for (var _iterator = splits, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref;
|
var token = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var token = _ref;
|
|
||||||
|
|
||||||
if (token.literal) {
|
if (token.literal) {
|
||||||
s += token.val;
|
s += token.val;
|
||||||
|
@ -923,9 +933,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Formatter =
|
var Formatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
Formatter.create = function create(locale, opts) {
|
Formatter.create = function create(locale, opts) {
|
||||||
if (opts === void 0) {
|
if (opts === void 0) {
|
||||||
opts = {};
|
opts = {};
|
||||||
|
@ -1400,9 +1408,9 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
tokens = Formatter.parseFormat(fmt),
|
tokens = Formatter.parseFormat(fmt),
|
||||||
realTokens = tokens.reduce(function (found, _ref2) {
|
realTokens = tokens.reduce(function (found, _ref) {
|
||||||
var literal = _ref2.literal,
|
var literal = _ref.literal,
|
||||||
val = _ref2.val;
|
val = _ref.val;
|
||||||
return literal ? found : found.concat(val);
|
return literal ? found : found.concat(val);
|
||||||
}, []),
|
}, []),
|
||||||
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
||||||
|
@ -1415,9 +1423,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
return Formatter;
|
return Formatter;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
var Invalid =
|
var Invalid = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Invalid(reason, explanation) {
|
function Invalid(reason, explanation) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
this.explanation = explanation;
|
this.explanation = explanation;
|
||||||
|
@ -1440,9 +1446,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @interface
|
* @interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Zone =
|
var Zone = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Zone() {}
|
function Zone() {}
|
||||||
|
|
||||||
var _proto = Zone.prototype;
|
var _proto = Zone.prototype;
|
||||||
|
@ -1550,9 +1554,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var LocalZone =
|
var LocalZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(LocalZone, _Zone);
|
_inheritsLoose(LocalZone, _Zone);
|
||||||
|
|
||||||
function LocalZone() {
|
function LocalZone() {
|
||||||
|
@ -1700,9 +1702,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var IANAZone =
|
var IANAZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(IANAZone, _Zone);
|
_inheritsLoose(IANAZone, _Zone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1877,9 +1877,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var FixedOffsetZone =
|
var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(FixedOffsetZone, _Zone);
|
_inheritsLoose(FixedOffsetZone, _Zone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2000,9 +1998,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidZone =
|
var InvalidZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(InvalidZone, _Zone);
|
_inheritsLoose(InvalidZone, _Zone);
|
||||||
|
|
||||||
function InvalidZone(zoneName) {
|
function InvalidZone(zoneName) {
|
||||||
|
@ -2114,9 +2110,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Settings =
|
var Settings = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Settings() {}
|
function Settings() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2430,9 +2424,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyNumberFormatter =
|
var PolyNumberFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyNumberFormatter(intl, forceSimple, opts) {
|
function PolyNumberFormatter(intl, forceSimple, opts) {
|
||||||
this.padTo = opts.padTo || 0;
|
this.padTo = opts.padTo || 0;
|
||||||
this.floor = opts.floor || false;
|
this.floor = opts.floor || false;
|
||||||
|
@ -2467,9 +2459,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyDateFormatter =
|
var PolyDateFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyDateFormatter(dt, intl, opts) {
|
function PolyDateFormatter(dt, intl, opts) {
|
||||||
this.opts = opts;
|
this.opts = opts;
|
||||||
this.hasIntl = hasIntl();
|
this.hasIntl = hasIntl();
|
||||||
|
@ -2551,9 +2541,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyRelFormatter =
|
var PolyRelFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyRelFormatter(intl, isEnglish, opts) {
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
||||||
this.opts = Object.assign({
|
this.opts = Object.assign({
|
||||||
style: "long"
|
style: "long"
|
||||||
|
@ -2589,9 +2577,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Locale =
|
var Locale = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
Locale.fromOpts = function fromOpts(opts) {
|
Locale.fromOpts = function fromOpts(opts) {
|
||||||
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
||||||
};
|
};
|
||||||
|
@ -3000,10 +2986,11 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
} // ISO duration parsing
|
} // ISO duration parsing
|
||||||
|
|
||||||
|
|
||||||
var isoDuration = /^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
var isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||||
|
|
||||||
function extractISODuration(match) {
|
function extractISODuration(match) {
|
||||||
var yearStr = match[1],
|
var s = match[0],
|
||||||
|
yearStr = match[1],
|
||||||
monthStr = match[2],
|
monthStr = match[2],
|
||||||
weekStr = match[3],
|
weekStr = match[3],
|
||||||
dayStr = match[4],
|
dayStr = match[4],
|
||||||
|
@ -3011,15 +2998,21 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
minuteStr = match[6],
|
minuteStr = match[6],
|
||||||
secondStr = match[7],
|
secondStr = match[7],
|
||||||
millisecondsStr = match[8];
|
millisecondsStr = match[8];
|
||||||
|
var hasNegativePrefix = s[0] === "-";
|
||||||
|
|
||||||
|
var maybeNegate = function maybeNegate(num) {
|
||||||
|
return num && hasNegativePrefix ? -num : num;
|
||||||
|
};
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
years: parseInteger(yearStr),
|
years: maybeNegate(parseInteger(yearStr)),
|
||||||
months: parseInteger(monthStr),
|
months: maybeNegate(parseInteger(monthStr)),
|
||||||
weeks: parseInteger(weekStr),
|
weeks: maybeNegate(parseInteger(weekStr)),
|
||||||
days: parseInteger(dayStr),
|
days: maybeNegate(parseInteger(dayStr)),
|
||||||
hours: parseInteger(hourStr),
|
hours: maybeNegate(parseInteger(hourStr)),
|
||||||
minutes: parseInteger(minuteStr),
|
minutes: maybeNegate(parseInteger(minuteStr)),
|
||||||
seconds: parseInteger(secondStr),
|
seconds: maybeNegate(parseInteger(secondStr)),
|
||||||
milliseconds: parseMillis(millisecondsStr)
|
milliseconds: maybeNegate(parseMillis(millisecondsStr))
|
||||||
}];
|
}];
|
||||||
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
||||||
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
||||||
|
@ -3298,9 +3291,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Duration =
|
var Duration = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
@ -3609,19 +3600,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
var dur = friendlyDuration(duration),
|
var dur = friendlyDuration(duration),
|
||||||
result = {};
|
result = {};
|
||||||
|
|
||||||
for (var _iterator = orderedUnits, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref;
|
var k = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var k = _ref;
|
|
||||||
|
|
||||||
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
||||||
result[k] = dur.get(k) + this.get(k);
|
result[k] = dur.get(k) + this.get(k);
|
||||||
|
@ -3657,8 +3637,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
if (!this.isValid) return this;
|
if (!this.isValid) return this;
|
||||||
var result = {};
|
var result = {};
|
||||||
|
|
||||||
for (var _i2 = 0, _Object$keys = Object.keys(this.values); _i2 < _Object$keys.length; _i2++) {
|
for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) {
|
||||||
var k = _Object$keys[_i2];
|
var k = _Object$keys[_i];
|
||||||
result[k] = asNumber(fn(this.values[k], k));
|
result[k] = asNumber(fn(this.values[k], k));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3703,10 +3683,10 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.reconfigure = function reconfigure(_temp) {
|
_proto.reconfigure = function reconfigure(_temp) {
|
||||||
var _ref2 = _temp === void 0 ? {} : _temp,
|
var _ref = _temp === void 0 ? {} : _temp,
|
||||||
locale = _ref2.locale,
|
locale = _ref.locale,
|
||||||
numberingSystem = _ref2.numberingSystem,
|
numberingSystem = _ref.numberingSystem,
|
||||||
conversionAccuracy = _ref2.conversionAccuracy;
|
conversionAccuracy = _ref.conversionAccuracy;
|
||||||
|
|
||||||
var loc = this.loc.clone({
|
var loc = this.loc.clone({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
@ -3778,19 +3758,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
var lastUnit;
|
var lastUnit;
|
||||||
normalizeValues(this.matrix, vals);
|
normalizeValues(this.matrix, vals);
|
||||||
|
|
||||||
for (var _iterator2 = orderedUnits, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits), _step2; !(_step2 = _iterator2()).done;) {
|
||||||
var _ref3;
|
var k = _step2.value;
|
||||||
|
|
||||||
if (_isArray2) {
|
|
||||||
if (_i3 >= _iterator2.length) break;
|
|
||||||
_ref3 = _iterator2[_i3++];
|
|
||||||
} else {
|
|
||||||
_i3 = _iterator2.next();
|
|
||||||
if (_i3.done) break;
|
|
||||||
_ref3 = _i3.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var k = _ref3;
|
|
||||||
|
|
||||||
if (units.indexOf(k) >= 0) {
|
if (units.indexOf(k) >= 0) {
|
||||||
lastUnit = k;
|
lastUnit = k;
|
||||||
|
@ -3845,8 +3814,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
if (!this.isValid) return this;
|
if (!this.isValid) return this;
|
||||||
var negated = {};
|
var negated = {};
|
||||||
|
|
||||||
for (var _i4 = 0, _Object$keys2 = Object.keys(this.values); _i4 < _Object$keys2.length; _i4++) {
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
||||||
var k = _Object$keys2[_i4];
|
var k = _Object$keys2[_i2];
|
||||||
negated[k] = -this.values[k];
|
negated[k] = -this.values[k];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3875,19 +3844,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _iterator3 = orderedUnits, _isArray3 = Array.isArray(_iterator3), _i5 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits), _step3; !(_step3 = _iterator3()).done;) {
|
||||||
var _ref4;
|
var u = _step3.value;
|
||||||
|
|
||||||
if (_isArray3) {
|
|
||||||
if (_i5 >= _iterator3.length) break;
|
|
||||||
_ref4 = _iterator3[_i5++];
|
|
||||||
} else {
|
|
||||||
_i5 = _iterator3.next();
|
|
||||||
if (_i5.done) break;
|
|
||||||
_ref4 = _i5.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref4;
|
|
||||||
|
|
||||||
if (this.values[u] !== other.values[u]) {
|
if (this.values[u] !== other.values[u]) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -4072,9 +4030,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Interval =
|
var Interval = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
@ -4556,19 +4512,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
return a.time - b.time;
|
return a.time - b.time;
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var _iterator = arr, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref3;
|
var i = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref3 = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref3 = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var i = _ref3;
|
|
||||||
currentCount += i.type === "s" ? 1 : -1;
|
currentCount += i.type === "s" ? 1 : -1;
|
||||||
|
|
||||||
if (currentCount === 1) {
|
if (currentCount === 1) {
|
||||||
|
@ -4661,9 +4606,9 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
||||||
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
||||||
_ref4$separator = _ref4.separator,
|
_ref3$separator = _ref3.separator,
|
||||||
separator = _ref4$separator === void 0 ? " – " : _ref4$separator;
|
separator = _ref3$separator === void 0 ? " – " : _ref3$separator;
|
||||||
|
|
||||||
if (!this.isValid) return INVALID$1;
|
if (!this.isValid) return INVALID$1;
|
||||||
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
||||||
|
@ -4756,9 +4701,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Info =
|
var Info = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Info() {}
|
function Info() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6142,19 +6085,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
|
|
||||||
function quickDT(obj, zone) {
|
function quickDT(obj, zone) {
|
||||||
// assume we have the higher-order units
|
// assume we have the higher-order units
|
||||||
for (var _iterator = orderedUnits$1, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref2;
|
var u = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref2 = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref2 = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref2;
|
|
||||||
|
|
||||||
if (isUndefined(obj[u])) {
|
if (isUndefined(obj[u])) {
|
||||||
obj[u] = defaultUnitValues[u];
|
obj[u] = defaultUnitValues[u];
|
||||||
|
@ -6201,19 +6133,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
return format(differ(opts.unit), opts.unit);
|
return format(differ(opts.unit), opts.unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _iterator2 = opts.units, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done;) {
|
||||||
var _ref3;
|
var unit = _step2.value;
|
||||||
|
|
||||||
if (_isArray2) {
|
|
||||||
if (_i2 >= _iterator2.length) break;
|
|
||||||
_ref3 = _iterator2[_i2++];
|
|
||||||
} else {
|
|
||||||
_i2 = _iterator2.next();
|
|
||||||
if (_i2.done) break;
|
|
||||||
_ref3 = _i2.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var unit = _ref3;
|
|
||||||
var count = differ(unit);
|
var count = differ(unit);
|
||||||
|
|
||||||
if (Math.abs(count) >= 1) {
|
if (Math.abs(count) >= 1) {
|
||||||
|
@ -6245,9 +6166,7 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var DateTime =
|
var DateTime = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
|
@ -6266,9 +6185,9 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
||||||
|
|
||||||
if (unchanged) {
|
if (unchanged) {
|
||||||
var _ref4 = [config.old.c, config.old.o];
|
var _ref2 = [config.old.c, config.old.o];
|
||||||
c = _ref4[0];
|
c = _ref2[0];
|
||||||
o = _ref4[1];
|
o = _ref2[1];
|
||||||
} else {
|
} else {
|
||||||
var ot = zone.offset(this.ts);
|
var ot = zone.offset(this.ts);
|
||||||
c = tsToObj(this.ts, ot);
|
c = tsToObj(this.ts, ot);
|
||||||
|
@ -6561,19 +6480,8 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
|
|
||||||
var foundFirst = false;
|
var foundFirst = false;
|
||||||
|
|
||||||
for (var _iterator3 = units, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done;) {
|
||||||
var _ref5;
|
var u = _step3.value;
|
||||||
|
|
||||||
if (_isArray3) {
|
|
||||||
if (_i3 >= _iterator3.length) break;
|
|
||||||
_ref5 = _iterator3[_i3++];
|
|
||||||
} else {
|
|
||||||
_i3 = _iterator3.next();
|
|
||||||
if (_i3.done) break;
|
|
||||||
_ref5 = _i3.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref5;
|
|
||||||
var v = normalized[u];
|
var v = normalized[u];
|
||||||
|
|
||||||
if (!isUndefined(v)) {
|
if (!isUndefined(v)) {
|
||||||
|
@ -6914,11 +6822,11 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.setZone = function setZone(zone, _temp) {
|
_proto.setZone = function setZone(zone, _temp) {
|
||||||
var _ref6 = _temp === void 0 ? {} : _temp,
|
var _ref3 = _temp === void 0 ? {} : _temp,
|
||||||
_ref6$keepLocalTime = _ref6.keepLocalTime,
|
_ref3$keepLocalTime = _ref3.keepLocalTime,
|
||||||
keepLocalTime = _ref6$keepLocalTime === void 0 ? false : _ref6$keepLocalTime,
|
keepLocalTime = _ref3$keepLocalTime === void 0 ? false : _ref3$keepLocalTime,
|
||||||
_ref6$keepCalendarTim = _ref6.keepCalendarTime,
|
_ref3$keepCalendarTim = _ref3.keepCalendarTime,
|
||||||
keepCalendarTime = _ref6$keepCalendarTim === void 0 ? false : _ref6$keepCalendarTim;
|
keepCalendarTime = _ref3$keepCalendarTim === void 0 ? false : _ref3$keepCalendarTim;
|
||||||
|
|
||||||
zone = normalizeZone(zone, Settings.defaultZone);
|
zone = normalizeZone(zone, Settings.defaultZone);
|
||||||
|
|
||||||
|
@ -6953,10 +6861,10 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.reconfigure = function reconfigure(_temp2) {
|
_proto.reconfigure = function reconfigure(_temp2) {
|
||||||
var _ref7 = _temp2 === void 0 ? {} : _temp2,
|
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
||||||
locale = _ref7.locale,
|
locale = _ref4.locale,
|
||||||
numberingSystem = _ref7.numberingSystem,
|
numberingSystem = _ref4.numberingSystem,
|
||||||
outputCalendar = _ref7.outputCalendar;
|
outputCalendar = _ref4.outputCalendar;
|
||||||
|
|
||||||
var loc = this.loc.clone({
|
var loc = this.loc.clone({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
@ -7234,9 +7142,9 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toISODate = function toISODate(_temp3) {
|
_proto.toISODate = function toISODate(_temp3) {
|
||||||
var _ref8 = _temp3 === void 0 ? {} : _temp3,
|
var _ref5 = _temp3 === void 0 ? {} : _temp3,
|
||||||
_ref8$format = _ref8.format,
|
_ref5$format = _ref5.format,
|
||||||
format = _ref8$format === void 0 ? "extended" : _ref8$format;
|
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
||||||
|
|
||||||
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
||||||
|
|
||||||
|
@ -7271,15 +7179,15 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toISOTime = function toISOTime(_temp4) {
|
_proto.toISOTime = function toISOTime(_temp4) {
|
||||||
var _ref9 = _temp4 === void 0 ? {} : _temp4,
|
var _ref6 = _temp4 === void 0 ? {} : _temp4,
|
||||||
_ref9$suppressMillise = _ref9.suppressMilliseconds,
|
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
||||||
suppressMilliseconds = _ref9$suppressMillise === void 0 ? false : _ref9$suppressMillise,
|
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
||||||
_ref9$suppressSeconds = _ref9.suppressSeconds,
|
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
||||||
suppressSeconds = _ref9$suppressSeconds === void 0 ? false : _ref9$suppressSeconds,
|
suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds,
|
||||||
_ref9$includeOffset = _ref9.includeOffset,
|
_ref6$includeOffset = _ref6.includeOffset,
|
||||||
includeOffset = _ref9$includeOffset === void 0 ? true : _ref9$includeOffset,
|
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
||||||
_ref9$format = _ref9.format,
|
_ref6$format = _ref6.format,
|
||||||
format = _ref9$format === void 0 ? "extended" : _ref9$format;
|
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
||||||
|
|
||||||
return toTechTimeFormat(this, {
|
return toTechTimeFormat(this, {
|
||||||
suppressSeconds: suppressSeconds,
|
suppressSeconds: suppressSeconds,
|
||||||
|
@ -7336,11 +7244,11 @@ define(['exports'], function (exports) { 'use strict';
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toSQLTime = function toSQLTime(_temp5) {
|
_proto.toSQLTime = function toSQLTime(_temp5) {
|
||||||
var _ref10 = _temp5 === void 0 ? {} : _temp5,
|
var _ref7 = _temp5 === void 0 ? {} : _temp5,
|
||||||
_ref10$includeOffset = _ref10.includeOffset,
|
_ref7$includeOffset = _ref7.includeOffset,
|
||||||
includeOffset = _ref10$includeOffset === void 0 ? true : _ref10$includeOffset,
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
||||||
_ref10$includeZone = _ref10.includeZone,
|
_ref7$includeZone = _ref7.includeZone,
|
||||||
includeZone = _ref10$includeZone === void 0 ? false : _ref10$includeZone;
|
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone;
|
||||||
|
|
||||||
return toTechTimeFormat(this, {
|
return toTechTimeFormat(this, {
|
||||||
includeOffset: includeOffset,
|
includeOffset: includeOffset,
|
||||||
|
|
2
node_modules/luxon/build/amd/luxon.js.map
generated
vendored
2
node_modules/luxon/build/amd/luxon.js.map
generated
vendored
File diff suppressed because one or more lines are too long
372
node_modules/luxon/build/cjs-browser/luxon.js
generated
vendored
372
node_modules/luxon/build/cjs-browser/luxon.js
generated
vendored
|
@ -40,7 +40,7 @@ function _setPrototypeOf(o, p) {
|
||||||
return _setPrototypeOf(o, p);
|
return _setPrototypeOf(o, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isNativeReflectConstruct() {
|
function _isNativeReflectConstruct() {
|
||||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||||
if (Reflect.construct.sham) return false;
|
if (Reflect.construct.sham) return false;
|
||||||
if (typeof Proxy === "function") return true;
|
if (typeof Proxy === "function") return true;
|
||||||
|
@ -54,7 +54,7 @@ function isNativeReflectConstruct() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _construct(Parent, args, Class) {
|
function _construct(Parent, args, Class) {
|
||||||
if (isNativeReflectConstruct()) {
|
if (_isNativeReflectConstruct()) {
|
||||||
_construct = Reflect.construct;
|
_construct = Reflect.construct;
|
||||||
} else {
|
} else {
|
||||||
_construct = function _construct(Parent, args, Class) {
|
_construct = function _construct(Parent, args, Class) {
|
||||||
|
@ -123,14 +123,49 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
|
if (!o) return;
|
||||||
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||||
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||||
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _arrayLikeToArray(arr, len) {
|
||||||
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
|
return arr2;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createForOfIteratorHelperLoose(o) {
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
|
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||||
|
if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: o[i++]
|
||||||
|
};
|
||||||
|
};
|
||||||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
}
|
||||||
|
|
||||||
|
i = o[Symbol.iterator]();
|
||||||
|
return i.next.bind(i);
|
||||||
|
}
|
||||||
|
|
||||||
// these aren't really private, but nor are they really useful to document
|
// these aren't really private, but nor are they really useful to document
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
var LuxonError =
|
var LuxonError = /*#__PURE__*/function (_Error) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Error) {
|
|
||||||
_inheritsLoose(LuxonError, _Error);
|
_inheritsLoose(LuxonError, _Error);
|
||||||
|
|
||||||
function LuxonError() {
|
function LuxonError() {
|
||||||
|
@ -138,15 +173,13 @@ function (_Error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuxonError;
|
return LuxonError;
|
||||||
}(_wrapNativeSuper(Error));
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var InvalidDateTimeError =
|
var InvalidDateTimeError = /*#__PURE__*/function (_LuxonError) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError) {
|
|
||||||
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
||||||
|
|
||||||
function InvalidDateTimeError(reason) {
|
function InvalidDateTimeError(reason) {
|
||||||
|
@ -159,9 +192,7 @@ function (_LuxonError) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidIntervalError =
|
var InvalidIntervalError = /*#__PURE__*/function (_LuxonError2) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError2) {
|
|
||||||
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
||||||
|
|
||||||
function InvalidIntervalError(reason) {
|
function InvalidIntervalError(reason) {
|
||||||
|
@ -174,9 +205,7 @@ function (_LuxonError2) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidDurationError =
|
var InvalidDurationError = /*#__PURE__*/function (_LuxonError3) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError3) {
|
|
||||||
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
||||||
|
|
||||||
function InvalidDurationError(reason) {
|
function InvalidDurationError(reason) {
|
||||||
|
@ -189,9 +218,7 @@ function (_LuxonError3) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ConflictingSpecificationError =
|
var ConflictingSpecificationError = /*#__PURE__*/function (_LuxonError4) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError4) {
|
|
||||||
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
||||||
|
|
||||||
function ConflictingSpecificationError() {
|
function ConflictingSpecificationError() {
|
||||||
|
@ -204,9 +231,7 @@ function (_LuxonError4) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidUnitError =
|
var InvalidUnitError = /*#__PURE__*/function (_LuxonError5) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError5) {
|
|
||||||
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
||||||
|
|
||||||
function InvalidUnitError(unit) {
|
function InvalidUnitError(unit) {
|
||||||
|
@ -219,9 +244,7 @@ function (_LuxonError5) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidArgumentError =
|
var InvalidArgumentError = /*#__PURE__*/function (_LuxonError6) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError6) {
|
|
||||||
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
||||||
|
|
||||||
function InvalidArgumentError() {
|
function InvalidArgumentError() {
|
||||||
|
@ -234,9 +257,7 @@ function (_LuxonError6) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ZoneIsAbstractError =
|
var ZoneIsAbstractError = /*#__PURE__*/function (_LuxonError7) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError7) {
|
|
||||||
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
||||||
|
|
||||||
function ZoneIsAbstractError() {
|
function ZoneIsAbstractError() {
|
||||||
|
@ -875,19 +896,8 @@ function formatString(knownFormat) {
|
||||||
function stringifyTokens(splits, tokenToString) {
|
function stringifyTokens(splits, tokenToString) {
|
||||||
var s = "";
|
var s = "";
|
||||||
|
|
||||||
for (var _iterator = splits, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref;
|
var token = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var token = _ref;
|
|
||||||
|
|
||||||
if (token.literal) {
|
if (token.literal) {
|
||||||
s += token.val;
|
s += token.val;
|
||||||
|
@ -925,9 +935,7 @@ var _macroTokenToFormatOpts = {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Formatter =
|
var Formatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
Formatter.create = function create(locale, opts) {
|
Formatter.create = function create(locale, opts) {
|
||||||
if (opts === void 0) {
|
if (opts === void 0) {
|
||||||
opts = {};
|
opts = {};
|
||||||
|
@ -1402,9 +1410,9 @@ function () {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
tokens = Formatter.parseFormat(fmt),
|
tokens = Formatter.parseFormat(fmt),
|
||||||
realTokens = tokens.reduce(function (found, _ref2) {
|
realTokens = tokens.reduce(function (found, _ref) {
|
||||||
var literal = _ref2.literal,
|
var literal = _ref.literal,
|
||||||
val = _ref2.val;
|
val = _ref.val;
|
||||||
return literal ? found : found.concat(val);
|
return literal ? found : found.concat(val);
|
||||||
}, []),
|
}, []),
|
||||||
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
||||||
|
@ -1417,9 +1425,7 @@ function () {
|
||||||
return Formatter;
|
return Formatter;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
var Invalid =
|
var Invalid = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Invalid(reason, explanation) {
|
function Invalid(reason, explanation) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
this.explanation = explanation;
|
this.explanation = explanation;
|
||||||
|
@ -1442,9 +1448,7 @@ function () {
|
||||||
* @interface
|
* @interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Zone =
|
var Zone = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Zone() {}
|
function Zone() {}
|
||||||
|
|
||||||
var _proto = Zone.prototype;
|
var _proto = Zone.prototype;
|
||||||
|
@ -1552,9 +1556,7 @@ var singleton = null;
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var LocalZone =
|
var LocalZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(LocalZone, _Zone);
|
_inheritsLoose(LocalZone, _Zone);
|
||||||
|
|
||||||
function LocalZone() {
|
function LocalZone() {
|
||||||
|
@ -1702,9 +1704,7 @@ var ianaZoneCache = {};
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var IANAZone =
|
var IANAZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(IANAZone, _Zone);
|
_inheritsLoose(IANAZone, _Zone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1879,9 +1879,7 @@ var singleton$1 = null;
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var FixedOffsetZone =
|
var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(FixedOffsetZone, _Zone);
|
_inheritsLoose(FixedOffsetZone, _Zone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2002,9 +2000,7 @@ function (_Zone) {
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidZone =
|
var InvalidZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(InvalidZone, _Zone);
|
_inheritsLoose(InvalidZone, _Zone);
|
||||||
|
|
||||||
function InvalidZone(zoneName) {
|
function InvalidZone(zoneName) {
|
||||||
|
@ -2116,9 +2112,7 @@ defaultLocale = null,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Settings =
|
var Settings = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Settings() {}
|
function Settings() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2432,9 +2426,7 @@ function supportsFastNumbers(loc) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyNumberFormatter =
|
var PolyNumberFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyNumberFormatter(intl, forceSimple, opts) {
|
function PolyNumberFormatter(intl, forceSimple, opts) {
|
||||||
this.padTo = opts.padTo || 0;
|
this.padTo = opts.padTo || 0;
|
||||||
this.floor = opts.floor || false;
|
this.floor = opts.floor || false;
|
||||||
|
@ -2469,9 +2461,7 @@ function () {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyDateFormatter =
|
var PolyDateFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyDateFormatter(dt, intl, opts) {
|
function PolyDateFormatter(dt, intl, opts) {
|
||||||
this.opts = opts;
|
this.opts = opts;
|
||||||
this.hasIntl = hasIntl();
|
this.hasIntl = hasIntl();
|
||||||
|
@ -2553,9 +2543,7 @@ function () {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyRelFormatter =
|
var PolyRelFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyRelFormatter(intl, isEnglish, opts) {
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
||||||
this.opts = Object.assign({
|
this.opts = Object.assign({
|
||||||
style: "long"
|
style: "long"
|
||||||
|
@ -2591,9 +2579,7 @@ function () {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Locale =
|
var Locale = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
Locale.fromOpts = function fromOpts(opts) {
|
Locale.fromOpts = function fromOpts(opts) {
|
||||||
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
||||||
};
|
};
|
||||||
|
@ -3002,10 +2988,11 @@ function extractIANAZone(match, cursor) {
|
||||||
} // ISO duration parsing
|
} // ISO duration parsing
|
||||||
|
|
||||||
|
|
||||||
var isoDuration = /^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
var isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||||
|
|
||||||
function extractISODuration(match) {
|
function extractISODuration(match) {
|
||||||
var yearStr = match[1],
|
var s = match[0],
|
||||||
|
yearStr = match[1],
|
||||||
monthStr = match[2],
|
monthStr = match[2],
|
||||||
weekStr = match[3],
|
weekStr = match[3],
|
||||||
dayStr = match[4],
|
dayStr = match[4],
|
||||||
|
@ -3013,15 +3000,21 @@ function extractISODuration(match) {
|
||||||
minuteStr = match[6],
|
minuteStr = match[6],
|
||||||
secondStr = match[7],
|
secondStr = match[7],
|
||||||
millisecondsStr = match[8];
|
millisecondsStr = match[8];
|
||||||
|
var hasNegativePrefix = s[0] === "-";
|
||||||
|
|
||||||
|
var maybeNegate = function maybeNegate(num) {
|
||||||
|
return num && hasNegativePrefix ? -num : num;
|
||||||
|
};
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
years: parseInteger(yearStr),
|
years: maybeNegate(parseInteger(yearStr)),
|
||||||
months: parseInteger(monthStr),
|
months: maybeNegate(parseInteger(monthStr)),
|
||||||
weeks: parseInteger(weekStr),
|
weeks: maybeNegate(parseInteger(weekStr)),
|
||||||
days: parseInteger(dayStr),
|
days: maybeNegate(parseInteger(dayStr)),
|
||||||
hours: parseInteger(hourStr),
|
hours: maybeNegate(parseInteger(hourStr)),
|
||||||
minutes: parseInteger(minuteStr),
|
minutes: maybeNegate(parseInteger(minuteStr)),
|
||||||
seconds: parseInteger(secondStr),
|
seconds: maybeNegate(parseInteger(secondStr)),
|
||||||
milliseconds: parseMillis(millisecondsStr)
|
milliseconds: maybeNegate(parseMillis(millisecondsStr))
|
||||||
}];
|
}];
|
||||||
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
||||||
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
||||||
|
@ -3300,9 +3293,7 @@ function normalizeValues(matrix, vals) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Duration =
|
var Duration = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
@ -3611,19 +3602,8 @@ function () {
|
||||||
var dur = friendlyDuration(duration),
|
var dur = friendlyDuration(duration),
|
||||||
result = {};
|
result = {};
|
||||||
|
|
||||||
for (var _iterator = orderedUnits, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref;
|
var k = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var k = _ref;
|
|
||||||
|
|
||||||
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
||||||
result[k] = dur.get(k) + this.get(k);
|
result[k] = dur.get(k) + this.get(k);
|
||||||
|
@ -3659,8 +3639,8 @@ function () {
|
||||||
if (!this.isValid) return this;
|
if (!this.isValid) return this;
|
||||||
var result = {};
|
var result = {};
|
||||||
|
|
||||||
for (var _i2 = 0, _Object$keys = Object.keys(this.values); _i2 < _Object$keys.length; _i2++) {
|
for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) {
|
||||||
var k = _Object$keys[_i2];
|
var k = _Object$keys[_i];
|
||||||
result[k] = asNumber(fn(this.values[k], k));
|
result[k] = asNumber(fn(this.values[k], k));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3705,10 +3685,10 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.reconfigure = function reconfigure(_temp) {
|
_proto.reconfigure = function reconfigure(_temp) {
|
||||||
var _ref2 = _temp === void 0 ? {} : _temp,
|
var _ref = _temp === void 0 ? {} : _temp,
|
||||||
locale = _ref2.locale,
|
locale = _ref.locale,
|
||||||
numberingSystem = _ref2.numberingSystem,
|
numberingSystem = _ref.numberingSystem,
|
||||||
conversionAccuracy = _ref2.conversionAccuracy;
|
conversionAccuracy = _ref.conversionAccuracy;
|
||||||
|
|
||||||
var loc = this.loc.clone({
|
var loc = this.loc.clone({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
@ -3780,19 +3760,8 @@ function () {
|
||||||
var lastUnit;
|
var lastUnit;
|
||||||
normalizeValues(this.matrix, vals);
|
normalizeValues(this.matrix, vals);
|
||||||
|
|
||||||
for (var _iterator2 = orderedUnits, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits), _step2; !(_step2 = _iterator2()).done;) {
|
||||||
var _ref3;
|
var k = _step2.value;
|
||||||
|
|
||||||
if (_isArray2) {
|
|
||||||
if (_i3 >= _iterator2.length) break;
|
|
||||||
_ref3 = _iterator2[_i3++];
|
|
||||||
} else {
|
|
||||||
_i3 = _iterator2.next();
|
|
||||||
if (_i3.done) break;
|
|
||||||
_ref3 = _i3.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var k = _ref3;
|
|
||||||
|
|
||||||
if (units.indexOf(k) >= 0) {
|
if (units.indexOf(k) >= 0) {
|
||||||
lastUnit = k;
|
lastUnit = k;
|
||||||
|
@ -3847,8 +3816,8 @@ function () {
|
||||||
if (!this.isValid) return this;
|
if (!this.isValid) return this;
|
||||||
var negated = {};
|
var negated = {};
|
||||||
|
|
||||||
for (var _i4 = 0, _Object$keys2 = Object.keys(this.values); _i4 < _Object$keys2.length; _i4++) {
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
||||||
var k = _Object$keys2[_i4];
|
var k = _Object$keys2[_i2];
|
||||||
negated[k] = -this.values[k];
|
negated[k] = -this.values[k];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3877,19 +3846,8 @@ function () {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _iterator3 = orderedUnits, _isArray3 = Array.isArray(_iterator3), _i5 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits), _step3; !(_step3 = _iterator3()).done;) {
|
||||||
var _ref4;
|
var u = _step3.value;
|
||||||
|
|
||||||
if (_isArray3) {
|
|
||||||
if (_i5 >= _iterator3.length) break;
|
|
||||||
_ref4 = _iterator3[_i5++];
|
|
||||||
} else {
|
|
||||||
_i5 = _iterator3.next();
|
|
||||||
if (_i5.done) break;
|
|
||||||
_ref4 = _i5.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref4;
|
|
||||||
|
|
||||||
if (this.values[u] !== other.values[u]) {
|
if (this.values[u] !== other.values[u]) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -4074,9 +4032,7 @@ function validateStartEnd(start, end) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Interval =
|
var Interval = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
@ -4558,19 +4514,8 @@ function () {
|
||||||
return a.time - b.time;
|
return a.time - b.time;
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var _iterator = arr, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref3;
|
var i = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref3 = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref3 = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var i = _ref3;
|
|
||||||
currentCount += i.type === "s" ? 1 : -1;
|
currentCount += i.type === "s" ? 1 : -1;
|
||||||
|
|
||||||
if (currentCount === 1) {
|
if (currentCount === 1) {
|
||||||
|
@ -4663,9 +4608,9 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
||||||
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
||||||
_ref4$separator = _ref4.separator,
|
_ref3$separator = _ref3.separator,
|
||||||
separator = _ref4$separator === void 0 ? " – " : _ref4$separator;
|
separator = _ref3$separator === void 0 ? " – " : _ref3$separator;
|
||||||
|
|
||||||
if (!this.isValid) return INVALID$1;
|
if (!this.isValid) return INVALID$1;
|
||||||
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
||||||
|
@ -4758,9 +4703,7 @@ function () {
|
||||||
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Info =
|
var Info = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Info() {}
|
function Info() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6144,19 +6087,8 @@ function normalizeUnit(unit) {
|
||||||
|
|
||||||
function quickDT(obj, zone) {
|
function quickDT(obj, zone) {
|
||||||
// assume we have the higher-order units
|
// assume we have the higher-order units
|
||||||
for (var _iterator = orderedUnits$1, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref2;
|
var u = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref2 = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref2 = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref2;
|
|
||||||
|
|
||||||
if (isUndefined(obj[u])) {
|
if (isUndefined(obj[u])) {
|
||||||
obj[u] = defaultUnitValues[u];
|
obj[u] = defaultUnitValues[u];
|
||||||
|
@ -6203,19 +6135,8 @@ function diffRelative(start, end, opts) {
|
||||||
return format(differ(opts.unit), opts.unit);
|
return format(differ(opts.unit), opts.unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _iterator2 = opts.units, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done;) {
|
||||||
var _ref3;
|
var unit = _step2.value;
|
||||||
|
|
||||||
if (_isArray2) {
|
|
||||||
if (_i2 >= _iterator2.length) break;
|
|
||||||
_ref3 = _iterator2[_i2++];
|
|
||||||
} else {
|
|
||||||
_i2 = _iterator2.next();
|
|
||||||
if (_i2.done) break;
|
|
||||||
_ref3 = _i2.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var unit = _ref3;
|
|
||||||
var count = differ(unit);
|
var count = differ(unit);
|
||||||
|
|
||||||
if (Math.abs(count) >= 1) {
|
if (Math.abs(count) >= 1) {
|
||||||
|
@ -6247,9 +6168,7 @@ function diffRelative(start, end, opts) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var DateTime =
|
var DateTime = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
|
@ -6268,9 +6187,9 @@ function () {
|
||||||
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
||||||
|
|
||||||
if (unchanged) {
|
if (unchanged) {
|
||||||
var _ref4 = [config.old.c, config.old.o];
|
var _ref2 = [config.old.c, config.old.o];
|
||||||
c = _ref4[0];
|
c = _ref2[0];
|
||||||
o = _ref4[1];
|
o = _ref2[1];
|
||||||
} else {
|
} else {
|
||||||
var ot = zone.offset(this.ts);
|
var ot = zone.offset(this.ts);
|
||||||
c = tsToObj(this.ts, ot);
|
c = tsToObj(this.ts, ot);
|
||||||
|
@ -6563,19 +6482,8 @@ function () {
|
||||||
|
|
||||||
var foundFirst = false;
|
var foundFirst = false;
|
||||||
|
|
||||||
for (var _iterator3 = units, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done;) {
|
||||||
var _ref5;
|
var u = _step3.value;
|
||||||
|
|
||||||
if (_isArray3) {
|
|
||||||
if (_i3 >= _iterator3.length) break;
|
|
||||||
_ref5 = _iterator3[_i3++];
|
|
||||||
} else {
|
|
||||||
_i3 = _iterator3.next();
|
|
||||||
if (_i3.done) break;
|
|
||||||
_ref5 = _i3.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref5;
|
|
||||||
var v = normalized[u];
|
var v = normalized[u];
|
||||||
|
|
||||||
if (!isUndefined(v)) {
|
if (!isUndefined(v)) {
|
||||||
|
@ -6916,11 +6824,11 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.setZone = function setZone(zone, _temp) {
|
_proto.setZone = function setZone(zone, _temp) {
|
||||||
var _ref6 = _temp === void 0 ? {} : _temp,
|
var _ref3 = _temp === void 0 ? {} : _temp,
|
||||||
_ref6$keepLocalTime = _ref6.keepLocalTime,
|
_ref3$keepLocalTime = _ref3.keepLocalTime,
|
||||||
keepLocalTime = _ref6$keepLocalTime === void 0 ? false : _ref6$keepLocalTime,
|
keepLocalTime = _ref3$keepLocalTime === void 0 ? false : _ref3$keepLocalTime,
|
||||||
_ref6$keepCalendarTim = _ref6.keepCalendarTime,
|
_ref3$keepCalendarTim = _ref3.keepCalendarTime,
|
||||||
keepCalendarTime = _ref6$keepCalendarTim === void 0 ? false : _ref6$keepCalendarTim;
|
keepCalendarTime = _ref3$keepCalendarTim === void 0 ? false : _ref3$keepCalendarTim;
|
||||||
|
|
||||||
zone = normalizeZone(zone, Settings.defaultZone);
|
zone = normalizeZone(zone, Settings.defaultZone);
|
||||||
|
|
||||||
|
@ -6955,10 +6863,10 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.reconfigure = function reconfigure(_temp2) {
|
_proto.reconfigure = function reconfigure(_temp2) {
|
||||||
var _ref7 = _temp2 === void 0 ? {} : _temp2,
|
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
||||||
locale = _ref7.locale,
|
locale = _ref4.locale,
|
||||||
numberingSystem = _ref7.numberingSystem,
|
numberingSystem = _ref4.numberingSystem,
|
||||||
outputCalendar = _ref7.outputCalendar;
|
outputCalendar = _ref4.outputCalendar;
|
||||||
|
|
||||||
var loc = this.loc.clone({
|
var loc = this.loc.clone({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
@ -7236,9 +7144,9 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toISODate = function toISODate(_temp3) {
|
_proto.toISODate = function toISODate(_temp3) {
|
||||||
var _ref8 = _temp3 === void 0 ? {} : _temp3,
|
var _ref5 = _temp3 === void 0 ? {} : _temp3,
|
||||||
_ref8$format = _ref8.format,
|
_ref5$format = _ref5.format,
|
||||||
format = _ref8$format === void 0 ? "extended" : _ref8$format;
|
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
||||||
|
|
||||||
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
||||||
|
|
||||||
|
@ -7273,15 +7181,15 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toISOTime = function toISOTime(_temp4) {
|
_proto.toISOTime = function toISOTime(_temp4) {
|
||||||
var _ref9 = _temp4 === void 0 ? {} : _temp4,
|
var _ref6 = _temp4 === void 0 ? {} : _temp4,
|
||||||
_ref9$suppressMillise = _ref9.suppressMilliseconds,
|
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
||||||
suppressMilliseconds = _ref9$suppressMillise === void 0 ? false : _ref9$suppressMillise,
|
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
||||||
_ref9$suppressSeconds = _ref9.suppressSeconds,
|
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
||||||
suppressSeconds = _ref9$suppressSeconds === void 0 ? false : _ref9$suppressSeconds,
|
suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds,
|
||||||
_ref9$includeOffset = _ref9.includeOffset,
|
_ref6$includeOffset = _ref6.includeOffset,
|
||||||
includeOffset = _ref9$includeOffset === void 0 ? true : _ref9$includeOffset,
|
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
||||||
_ref9$format = _ref9.format,
|
_ref6$format = _ref6.format,
|
||||||
format = _ref9$format === void 0 ? "extended" : _ref9$format;
|
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
||||||
|
|
||||||
return toTechTimeFormat(this, {
|
return toTechTimeFormat(this, {
|
||||||
suppressSeconds: suppressSeconds,
|
suppressSeconds: suppressSeconds,
|
||||||
|
@ -7338,11 +7246,11 @@ function () {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toSQLTime = function toSQLTime(_temp5) {
|
_proto.toSQLTime = function toSQLTime(_temp5) {
|
||||||
var _ref10 = _temp5 === void 0 ? {} : _temp5,
|
var _ref7 = _temp5 === void 0 ? {} : _temp5,
|
||||||
_ref10$includeOffset = _ref10.includeOffset,
|
_ref7$includeOffset = _ref7.includeOffset,
|
||||||
includeOffset = _ref10$includeOffset === void 0 ? true : _ref10$includeOffset,
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
||||||
_ref10$includeZone = _ref10.includeZone,
|
_ref7$includeZone = _ref7.includeZone,
|
||||||
includeZone = _ref10$includeZone === void 0 ? false : _ref10$includeZone;
|
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone;
|
||||||
|
|
||||||
return toTechTimeFormat(this, {
|
return toTechTimeFormat(this, {
|
||||||
includeOffset: includeOffset,
|
includeOffset: includeOffset,
|
||||||
|
|
2
node_modules/luxon/build/cjs-browser/luxon.js.map
generated
vendored
2
node_modules/luxon/build/cjs-browser/luxon.js.map
generated
vendored
File diff suppressed because one or more lines are too long
372
node_modules/luxon/build/global/luxon.js
generated
vendored
372
node_modules/luxon/build/global/luxon.js
generated
vendored
|
@ -39,7 +39,7 @@ var luxon = (function (exports) {
|
||||||
return _setPrototypeOf(o, p);
|
return _setPrototypeOf(o, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isNativeReflectConstruct() {
|
function _isNativeReflectConstruct() {
|
||||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||||
if (Reflect.construct.sham) return false;
|
if (Reflect.construct.sham) return false;
|
||||||
if (typeof Proxy === "function") return true;
|
if (typeof Proxy === "function") return true;
|
||||||
|
@ -53,7 +53,7 @@ var luxon = (function (exports) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _construct(Parent, args, Class) {
|
function _construct(Parent, args, Class) {
|
||||||
if (isNativeReflectConstruct()) {
|
if (_isNativeReflectConstruct()) {
|
||||||
_construct = Reflect.construct;
|
_construct = Reflect.construct;
|
||||||
} else {
|
} else {
|
||||||
_construct = function _construct(Parent, args, Class) {
|
_construct = function _construct(Parent, args, Class) {
|
||||||
|
@ -122,14 +122,49 @@ var luxon = (function (exports) {
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
|
if (!o) return;
|
||||||
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||||
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||||
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _arrayLikeToArray(arr, len) {
|
||||||
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
|
return arr2;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createForOfIteratorHelperLoose(o) {
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
|
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||||
|
if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: o[i++]
|
||||||
|
};
|
||||||
|
};
|
||||||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
}
|
||||||
|
|
||||||
|
i = o[Symbol.iterator]();
|
||||||
|
return i.next.bind(i);
|
||||||
|
}
|
||||||
|
|
||||||
// these aren't really private, but nor are they really useful to document
|
// these aren't really private, but nor are they really useful to document
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
var LuxonError =
|
var LuxonError = /*#__PURE__*/function (_Error) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Error) {
|
|
||||||
_inheritsLoose(LuxonError, _Error);
|
_inheritsLoose(LuxonError, _Error);
|
||||||
|
|
||||||
function LuxonError() {
|
function LuxonError() {
|
||||||
|
@ -137,15 +172,13 @@ var luxon = (function (exports) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuxonError;
|
return LuxonError;
|
||||||
}(_wrapNativeSuper(Error));
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var InvalidDateTimeError =
|
var InvalidDateTimeError = /*#__PURE__*/function (_LuxonError) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError) {
|
|
||||||
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
||||||
|
|
||||||
function InvalidDateTimeError(reason) {
|
function InvalidDateTimeError(reason) {
|
||||||
|
@ -158,9 +191,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidIntervalError =
|
var InvalidIntervalError = /*#__PURE__*/function (_LuxonError2) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError2) {
|
|
||||||
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
||||||
|
|
||||||
function InvalidIntervalError(reason) {
|
function InvalidIntervalError(reason) {
|
||||||
|
@ -173,9 +204,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidDurationError =
|
var InvalidDurationError = /*#__PURE__*/function (_LuxonError3) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError3) {
|
|
||||||
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
||||||
|
|
||||||
function InvalidDurationError(reason) {
|
function InvalidDurationError(reason) {
|
||||||
|
@ -188,9 +217,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ConflictingSpecificationError =
|
var ConflictingSpecificationError = /*#__PURE__*/function (_LuxonError4) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError4) {
|
|
||||||
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
||||||
|
|
||||||
function ConflictingSpecificationError() {
|
function ConflictingSpecificationError() {
|
||||||
|
@ -203,9 +230,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidUnitError =
|
var InvalidUnitError = /*#__PURE__*/function (_LuxonError5) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError5) {
|
|
||||||
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
||||||
|
|
||||||
function InvalidUnitError(unit) {
|
function InvalidUnitError(unit) {
|
||||||
|
@ -218,9 +243,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidArgumentError =
|
var InvalidArgumentError = /*#__PURE__*/function (_LuxonError6) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError6) {
|
|
||||||
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
||||||
|
|
||||||
function InvalidArgumentError() {
|
function InvalidArgumentError() {
|
||||||
|
@ -233,9 +256,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ZoneIsAbstractError =
|
var ZoneIsAbstractError = /*#__PURE__*/function (_LuxonError7) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_LuxonError7) {
|
|
||||||
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
||||||
|
|
||||||
function ZoneIsAbstractError() {
|
function ZoneIsAbstractError() {
|
||||||
|
@ -874,19 +895,8 @@ var luxon = (function (exports) {
|
||||||
function stringifyTokens(splits, tokenToString) {
|
function stringifyTokens(splits, tokenToString) {
|
||||||
var s = "";
|
var s = "";
|
||||||
|
|
||||||
for (var _iterator = splits, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref;
|
var token = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var token = _ref;
|
|
||||||
|
|
||||||
if (token.literal) {
|
if (token.literal) {
|
||||||
s += token.val;
|
s += token.val;
|
||||||
|
@ -924,9 +934,7 @@ var luxon = (function (exports) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Formatter =
|
var Formatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
Formatter.create = function create(locale, opts) {
|
Formatter.create = function create(locale, opts) {
|
||||||
if (opts === void 0) {
|
if (opts === void 0) {
|
||||||
opts = {};
|
opts = {};
|
||||||
|
@ -1401,9 +1409,9 @@ var luxon = (function (exports) {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
tokens = Formatter.parseFormat(fmt),
|
tokens = Formatter.parseFormat(fmt),
|
||||||
realTokens = tokens.reduce(function (found, _ref2) {
|
realTokens = tokens.reduce(function (found, _ref) {
|
||||||
var literal = _ref2.literal,
|
var literal = _ref.literal,
|
||||||
val = _ref2.val;
|
val = _ref.val;
|
||||||
return literal ? found : found.concat(val);
|
return literal ? found : found.concat(val);
|
||||||
}, []),
|
}, []),
|
||||||
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
||||||
|
@ -1416,9 +1424,7 @@ var luxon = (function (exports) {
|
||||||
return Formatter;
|
return Formatter;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
var Invalid =
|
var Invalid = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Invalid(reason, explanation) {
|
function Invalid(reason, explanation) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
this.explanation = explanation;
|
this.explanation = explanation;
|
||||||
|
@ -1441,9 +1447,7 @@ var luxon = (function (exports) {
|
||||||
* @interface
|
* @interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Zone =
|
var Zone = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Zone() {}
|
function Zone() {}
|
||||||
|
|
||||||
var _proto = Zone.prototype;
|
var _proto = Zone.prototype;
|
||||||
|
@ -1551,9 +1555,7 @@ var luxon = (function (exports) {
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var LocalZone =
|
var LocalZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(LocalZone, _Zone);
|
_inheritsLoose(LocalZone, _Zone);
|
||||||
|
|
||||||
function LocalZone() {
|
function LocalZone() {
|
||||||
|
@ -1701,9 +1703,7 @@ var luxon = (function (exports) {
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var IANAZone =
|
var IANAZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(IANAZone, _Zone);
|
_inheritsLoose(IANAZone, _Zone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1878,9 +1878,7 @@ var luxon = (function (exports) {
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var FixedOffsetZone =
|
var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(FixedOffsetZone, _Zone);
|
_inheritsLoose(FixedOffsetZone, _Zone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2001,9 +1999,7 @@ var luxon = (function (exports) {
|
||||||
* @implements {Zone}
|
* @implements {Zone}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var InvalidZone =
|
var InvalidZone = /*#__PURE__*/function (_Zone) {
|
||||||
/*#__PURE__*/
|
|
||||||
function (_Zone) {
|
|
||||||
_inheritsLoose(InvalidZone, _Zone);
|
_inheritsLoose(InvalidZone, _Zone);
|
||||||
|
|
||||||
function InvalidZone(zoneName) {
|
function InvalidZone(zoneName) {
|
||||||
|
@ -2115,9 +2111,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Settings =
|
var Settings = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Settings() {}
|
function Settings() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2431,9 +2425,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyNumberFormatter =
|
var PolyNumberFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyNumberFormatter(intl, forceSimple, opts) {
|
function PolyNumberFormatter(intl, forceSimple, opts) {
|
||||||
this.padTo = opts.padTo || 0;
|
this.padTo = opts.padTo || 0;
|
||||||
this.floor = opts.floor || false;
|
this.floor = opts.floor || false;
|
||||||
|
@ -2468,9 +2460,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyDateFormatter =
|
var PolyDateFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyDateFormatter(dt, intl, opts) {
|
function PolyDateFormatter(dt, intl, opts) {
|
||||||
this.opts = opts;
|
this.opts = opts;
|
||||||
this.hasIntl = hasIntl();
|
this.hasIntl = hasIntl();
|
||||||
|
@ -2552,9 +2542,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var PolyRelFormatter =
|
var PolyRelFormatter = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function PolyRelFormatter(intl, isEnglish, opts) {
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
||||||
this.opts = Object.assign({
|
this.opts = Object.assign({
|
||||||
style: "long"
|
style: "long"
|
||||||
|
@ -2590,9 +2578,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Locale =
|
var Locale = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
Locale.fromOpts = function fromOpts(opts) {
|
Locale.fromOpts = function fromOpts(opts) {
|
||||||
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
||||||
};
|
};
|
||||||
|
@ -3001,10 +2987,11 @@ var luxon = (function (exports) {
|
||||||
} // ISO duration parsing
|
} // ISO duration parsing
|
||||||
|
|
||||||
|
|
||||||
var isoDuration = /^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
var isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||||
|
|
||||||
function extractISODuration(match) {
|
function extractISODuration(match) {
|
||||||
var yearStr = match[1],
|
var s = match[0],
|
||||||
|
yearStr = match[1],
|
||||||
monthStr = match[2],
|
monthStr = match[2],
|
||||||
weekStr = match[3],
|
weekStr = match[3],
|
||||||
dayStr = match[4],
|
dayStr = match[4],
|
||||||
|
@ -3012,15 +2999,21 @@ var luxon = (function (exports) {
|
||||||
minuteStr = match[6],
|
minuteStr = match[6],
|
||||||
secondStr = match[7],
|
secondStr = match[7],
|
||||||
millisecondsStr = match[8];
|
millisecondsStr = match[8];
|
||||||
|
var hasNegativePrefix = s[0] === "-";
|
||||||
|
|
||||||
|
var maybeNegate = function maybeNegate(num) {
|
||||||
|
return num && hasNegativePrefix ? -num : num;
|
||||||
|
};
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
years: parseInteger(yearStr),
|
years: maybeNegate(parseInteger(yearStr)),
|
||||||
months: parseInteger(monthStr),
|
months: maybeNegate(parseInteger(monthStr)),
|
||||||
weeks: parseInteger(weekStr),
|
weeks: maybeNegate(parseInteger(weekStr)),
|
||||||
days: parseInteger(dayStr),
|
days: maybeNegate(parseInteger(dayStr)),
|
||||||
hours: parseInteger(hourStr),
|
hours: maybeNegate(parseInteger(hourStr)),
|
||||||
minutes: parseInteger(minuteStr),
|
minutes: maybeNegate(parseInteger(minuteStr)),
|
||||||
seconds: parseInteger(secondStr),
|
seconds: maybeNegate(parseInteger(secondStr)),
|
||||||
milliseconds: parseMillis(millisecondsStr)
|
milliseconds: maybeNegate(parseMillis(millisecondsStr))
|
||||||
}];
|
}];
|
||||||
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
||||||
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
||||||
|
@ -3299,9 +3292,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Duration =
|
var Duration = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
@ -3610,19 +3601,8 @@ var luxon = (function (exports) {
|
||||||
var dur = friendlyDuration(duration),
|
var dur = friendlyDuration(duration),
|
||||||
result = {};
|
result = {};
|
||||||
|
|
||||||
for (var _iterator = orderedUnits, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref;
|
var k = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var k = _ref;
|
|
||||||
|
|
||||||
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
||||||
result[k] = dur.get(k) + this.get(k);
|
result[k] = dur.get(k) + this.get(k);
|
||||||
|
@ -3658,8 +3638,8 @@ var luxon = (function (exports) {
|
||||||
if (!this.isValid) return this;
|
if (!this.isValid) return this;
|
||||||
var result = {};
|
var result = {};
|
||||||
|
|
||||||
for (var _i2 = 0, _Object$keys = Object.keys(this.values); _i2 < _Object$keys.length; _i2++) {
|
for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) {
|
||||||
var k = _Object$keys[_i2];
|
var k = _Object$keys[_i];
|
||||||
result[k] = asNumber(fn(this.values[k], k));
|
result[k] = asNumber(fn(this.values[k], k));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3704,10 +3684,10 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.reconfigure = function reconfigure(_temp) {
|
_proto.reconfigure = function reconfigure(_temp) {
|
||||||
var _ref2 = _temp === void 0 ? {} : _temp,
|
var _ref = _temp === void 0 ? {} : _temp,
|
||||||
locale = _ref2.locale,
|
locale = _ref.locale,
|
||||||
numberingSystem = _ref2.numberingSystem,
|
numberingSystem = _ref.numberingSystem,
|
||||||
conversionAccuracy = _ref2.conversionAccuracy;
|
conversionAccuracy = _ref.conversionAccuracy;
|
||||||
|
|
||||||
var loc = this.loc.clone({
|
var loc = this.loc.clone({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
@ -3779,19 +3759,8 @@ var luxon = (function (exports) {
|
||||||
var lastUnit;
|
var lastUnit;
|
||||||
normalizeValues(this.matrix, vals);
|
normalizeValues(this.matrix, vals);
|
||||||
|
|
||||||
for (var _iterator2 = orderedUnits, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits), _step2; !(_step2 = _iterator2()).done;) {
|
||||||
var _ref3;
|
var k = _step2.value;
|
||||||
|
|
||||||
if (_isArray2) {
|
|
||||||
if (_i3 >= _iterator2.length) break;
|
|
||||||
_ref3 = _iterator2[_i3++];
|
|
||||||
} else {
|
|
||||||
_i3 = _iterator2.next();
|
|
||||||
if (_i3.done) break;
|
|
||||||
_ref3 = _i3.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var k = _ref3;
|
|
||||||
|
|
||||||
if (units.indexOf(k) >= 0) {
|
if (units.indexOf(k) >= 0) {
|
||||||
lastUnit = k;
|
lastUnit = k;
|
||||||
|
@ -3846,8 +3815,8 @@ var luxon = (function (exports) {
|
||||||
if (!this.isValid) return this;
|
if (!this.isValid) return this;
|
||||||
var negated = {};
|
var negated = {};
|
||||||
|
|
||||||
for (var _i4 = 0, _Object$keys2 = Object.keys(this.values); _i4 < _Object$keys2.length; _i4++) {
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
||||||
var k = _Object$keys2[_i4];
|
var k = _Object$keys2[_i2];
|
||||||
negated[k] = -this.values[k];
|
negated[k] = -this.values[k];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3876,19 +3845,8 @@ var luxon = (function (exports) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _iterator3 = orderedUnits, _isArray3 = Array.isArray(_iterator3), _i5 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits), _step3; !(_step3 = _iterator3()).done;) {
|
||||||
var _ref4;
|
var u = _step3.value;
|
||||||
|
|
||||||
if (_isArray3) {
|
|
||||||
if (_i5 >= _iterator3.length) break;
|
|
||||||
_ref4 = _iterator3[_i5++];
|
|
||||||
} else {
|
|
||||||
_i5 = _iterator3.next();
|
|
||||||
if (_i5.done) break;
|
|
||||||
_ref4 = _i5.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref4;
|
|
||||||
|
|
||||||
if (this.values[u] !== other.values[u]) {
|
if (this.values[u] !== other.values[u]) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -4073,9 +4031,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var Interval =
|
var Interval = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
@ -4557,19 +4513,8 @@ var luxon = (function (exports) {
|
||||||
return a.time - b.time;
|
return a.time - b.time;
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var _iterator = arr, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref3;
|
var i = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref3 = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref3 = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var i = _ref3;
|
|
||||||
currentCount += i.type === "s" ? 1 : -1;
|
currentCount += i.type === "s" ? 1 : -1;
|
||||||
|
|
||||||
if (currentCount === 1) {
|
if (currentCount === 1) {
|
||||||
|
@ -4662,9 +4607,9 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
||||||
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
||||||
_ref4$separator = _ref4.separator,
|
_ref3$separator = _ref3.separator,
|
||||||
separator = _ref4$separator === void 0 ? " – " : _ref4$separator;
|
separator = _ref3$separator === void 0 ? " – " : _ref3$separator;
|
||||||
|
|
||||||
if (!this.isValid) return INVALID$1;
|
if (!this.isValid) return INVALID$1;
|
||||||
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
||||||
|
@ -4757,9 +4702,7 @@ var luxon = (function (exports) {
|
||||||
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Info =
|
var Info = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
function Info() {}
|
function Info() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6143,19 +6086,8 @@ var luxon = (function (exports) {
|
||||||
|
|
||||||
function quickDT(obj, zone) {
|
function quickDT(obj, zone) {
|
||||||
// assume we have the higher-order units
|
// assume we have the higher-order units
|
||||||
for (var _iterator = orderedUnits$1, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
||||||
var _ref2;
|
var u = _step.value;
|
||||||
|
|
||||||
if (_isArray) {
|
|
||||||
if (_i >= _iterator.length) break;
|
|
||||||
_ref2 = _iterator[_i++];
|
|
||||||
} else {
|
|
||||||
_i = _iterator.next();
|
|
||||||
if (_i.done) break;
|
|
||||||
_ref2 = _i.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref2;
|
|
||||||
|
|
||||||
if (isUndefined(obj[u])) {
|
if (isUndefined(obj[u])) {
|
||||||
obj[u] = defaultUnitValues[u];
|
obj[u] = defaultUnitValues[u];
|
||||||
|
@ -6202,19 +6134,8 @@ var luxon = (function (exports) {
|
||||||
return format(differ(opts.unit), opts.unit);
|
return format(differ(opts.unit), opts.unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _iterator2 = opts.units, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done;) {
|
||||||
var _ref3;
|
var unit = _step2.value;
|
||||||
|
|
||||||
if (_isArray2) {
|
|
||||||
if (_i2 >= _iterator2.length) break;
|
|
||||||
_ref3 = _iterator2[_i2++];
|
|
||||||
} else {
|
|
||||||
_i2 = _iterator2.next();
|
|
||||||
if (_i2.done) break;
|
|
||||||
_ref3 = _i2.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var unit = _ref3;
|
|
||||||
var count = differ(unit);
|
var count = differ(unit);
|
||||||
|
|
||||||
if (Math.abs(count) >= 1) {
|
if (Math.abs(count) >= 1) {
|
||||||
|
@ -6246,9 +6167,7 @@ var luxon = (function (exports) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var DateTime =
|
var DateTime = /*#__PURE__*/function () {
|
||||||
/*#__PURE__*/
|
|
||||||
function () {
|
|
||||||
/**
|
/**
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
|
@ -6267,9 +6186,9 @@ var luxon = (function (exports) {
|
||||||
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
||||||
|
|
||||||
if (unchanged) {
|
if (unchanged) {
|
||||||
var _ref4 = [config.old.c, config.old.o];
|
var _ref2 = [config.old.c, config.old.o];
|
||||||
c = _ref4[0];
|
c = _ref2[0];
|
||||||
o = _ref4[1];
|
o = _ref2[1];
|
||||||
} else {
|
} else {
|
||||||
var ot = zone.offset(this.ts);
|
var ot = zone.offset(this.ts);
|
||||||
c = tsToObj(this.ts, ot);
|
c = tsToObj(this.ts, ot);
|
||||||
|
@ -6562,19 +6481,8 @@ var luxon = (function (exports) {
|
||||||
|
|
||||||
var foundFirst = false;
|
var foundFirst = false;
|
||||||
|
|
||||||
for (var _iterator3 = units, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done;) {
|
||||||
var _ref5;
|
var u = _step3.value;
|
||||||
|
|
||||||
if (_isArray3) {
|
|
||||||
if (_i3 >= _iterator3.length) break;
|
|
||||||
_ref5 = _iterator3[_i3++];
|
|
||||||
} else {
|
|
||||||
_i3 = _iterator3.next();
|
|
||||||
if (_i3.done) break;
|
|
||||||
_ref5 = _i3.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var u = _ref5;
|
|
||||||
var v = normalized[u];
|
var v = normalized[u];
|
||||||
|
|
||||||
if (!isUndefined(v)) {
|
if (!isUndefined(v)) {
|
||||||
|
@ -6915,11 +6823,11 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.setZone = function setZone(zone, _temp) {
|
_proto.setZone = function setZone(zone, _temp) {
|
||||||
var _ref6 = _temp === void 0 ? {} : _temp,
|
var _ref3 = _temp === void 0 ? {} : _temp,
|
||||||
_ref6$keepLocalTime = _ref6.keepLocalTime,
|
_ref3$keepLocalTime = _ref3.keepLocalTime,
|
||||||
keepLocalTime = _ref6$keepLocalTime === void 0 ? false : _ref6$keepLocalTime,
|
keepLocalTime = _ref3$keepLocalTime === void 0 ? false : _ref3$keepLocalTime,
|
||||||
_ref6$keepCalendarTim = _ref6.keepCalendarTime,
|
_ref3$keepCalendarTim = _ref3.keepCalendarTime,
|
||||||
keepCalendarTime = _ref6$keepCalendarTim === void 0 ? false : _ref6$keepCalendarTim;
|
keepCalendarTime = _ref3$keepCalendarTim === void 0 ? false : _ref3$keepCalendarTim;
|
||||||
|
|
||||||
zone = normalizeZone(zone, Settings.defaultZone);
|
zone = normalizeZone(zone, Settings.defaultZone);
|
||||||
|
|
||||||
|
@ -6954,10 +6862,10 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.reconfigure = function reconfigure(_temp2) {
|
_proto.reconfigure = function reconfigure(_temp2) {
|
||||||
var _ref7 = _temp2 === void 0 ? {} : _temp2,
|
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
||||||
locale = _ref7.locale,
|
locale = _ref4.locale,
|
||||||
numberingSystem = _ref7.numberingSystem,
|
numberingSystem = _ref4.numberingSystem,
|
||||||
outputCalendar = _ref7.outputCalendar;
|
outputCalendar = _ref4.outputCalendar;
|
||||||
|
|
||||||
var loc = this.loc.clone({
|
var loc = this.loc.clone({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
@ -7235,9 +7143,9 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toISODate = function toISODate(_temp3) {
|
_proto.toISODate = function toISODate(_temp3) {
|
||||||
var _ref8 = _temp3 === void 0 ? {} : _temp3,
|
var _ref5 = _temp3 === void 0 ? {} : _temp3,
|
||||||
_ref8$format = _ref8.format,
|
_ref5$format = _ref5.format,
|
||||||
format = _ref8$format === void 0 ? "extended" : _ref8$format;
|
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
||||||
|
|
||||||
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
||||||
|
|
||||||
|
@ -7272,15 +7180,15 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toISOTime = function toISOTime(_temp4) {
|
_proto.toISOTime = function toISOTime(_temp4) {
|
||||||
var _ref9 = _temp4 === void 0 ? {} : _temp4,
|
var _ref6 = _temp4 === void 0 ? {} : _temp4,
|
||||||
_ref9$suppressMillise = _ref9.suppressMilliseconds,
|
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
||||||
suppressMilliseconds = _ref9$suppressMillise === void 0 ? false : _ref9$suppressMillise,
|
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
||||||
_ref9$suppressSeconds = _ref9.suppressSeconds,
|
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
||||||
suppressSeconds = _ref9$suppressSeconds === void 0 ? false : _ref9$suppressSeconds,
|
suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds,
|
||||||
_ref9$includeOffset = _ref9.includeOffset,
|
_ref6$includeOffset = _ref6.includeOffset,
|
||||||
includeOffset = _ref9$includeOffset === void 0 ? true : _ref9$includeOffset,
|
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
||||||
_ref9$format = _ref9.format,
|
_ref6$format = _ref6.format,
|
||||||
format = _ref9$format === void 0 ? "extended" : _ref9$format;
|
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
||||||
|
|
||||||
return toTechTimeFormat(this, {
|
return toTechTimeFormat(this, {
|
||||||
suppressSeconds: suppressSeconds,
|
suppressSeconds: suppressSeconds,
|
||||||
|
@ -7337,11 +7245,11 @@ var luxon = (function (exports) {
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto.toSQLTime = function toSQLTime(_temp5) {
|
_proto.toSQLTime = function toSQLTime(_temp5) {
|
||||||
var _ref10 = _temp5 === void 0 ? {} : _temp5,
|
var _ref7 = _temp5 === void 0 ? {} : _temp5,
|
||||||
_ref10$includeOffset = _ref10.includeOffset,
|
_ref7$includeOffset = _ref7.includeOffset,
|
||||||
includeOffset = _ref10$includeOffset === void 0 ? true : _ref10$includeOffset,
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
||||||
_ref10$includeZone = _ref10.includeZone,
|
_ref7$includeZone = _ref7.includeZone,
|
||||||
includeZone = _ref10$includeZone === void 0 ? false : _ref10$includeZone;
|
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone;
|
||||||
|
|
||||||
return toTechTimeFormat(this, {
|
return toTechTimeFormat(this, {
|
||||||
includeOffset: includeOffset,
|
includeOffset: includeOffset,
|
||||||
|
|
2
node_modules/luxon/build/global/luxon.js.map
generated
vendored
2
node_modules/luxon/build/global/luxon.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/luxon/build/global/luxon.min.js
generated
vendored
2
node_modules/luxon/build/global/luxon.min.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/luxon/build/global/luxon.min.js.map
generated
vendored
2
node_modules/luxon/build/global/luxon.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
24
node_modules/luxon/build/node/luxon.js
generated
vendored
24
node_modules/luxon/build/node/luxon.js
generated
vendored
|
@ -2517,19 +2517,23 @@ function extractIANAZone(match, cursor) {
|
||||||
} // ISO duration parsing
|
} // ISO duration parsing
|
||||||
|
|
||||||
|
|
||||||
const isoDuration = /^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
const isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||||
|
|
||||||
function extractISODuration(match) {
|
function extractISODuration(match) {
|
||||||
const [, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match;
|
const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match;
|
||||||
|
const hasNegativePrefix = s[0] === "-";
|
||||||
|
|
||||||
|
const maybeNegate = num => num && hasNegativePrefix ? -num : num;
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
years: parseInteger(yearStr),
|
years: maybeNegate(parseInteger(yearStr)),
|
||||||
months: parseInteger(monthStr),
|
months: maybeNegate(parseInteger(monthStr)),
|
||||||
weeks: parseInteger(weekStr),
|
weeks: maybeNegate(parseInteger(weekStr)),
|
||||||
days: parseInteger(dayStr),
|
days: maybeNegate(parseInteger(dayStr)),
|
||||||
hours: parseInteger(hourStr),
|
hours: maybeNegate(parseInteger(hourStr)),
|
||||||
minutes: parseInteger(minuteStr),
|
minutes: maybeNegate(parseInteger(minuteStr)),
|
||||||
seconds: parseInteger(secondStr),
|
seconds: maybeNegate(parseInteger(secondStr)),
|
||||||
milliseconds: parseMillis(millisecondsStr)
|
milliseconds: maybeNegate(parseMillis(millisecondsStr))
|
||||||
}];
|
}];
|
||||||
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
||||||
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
||||||
|
|
2
node_modules/luxon/build/node/luxon.js.map
generated
vendored
2
node_modules/luxon/build/node/luxon.js.map
generated
vendored
File diff suppressed because one or more lines are too long
54
node_modules/luxon/package.json
generated
vendored
54
node_modules/luxon/package.json
generated
vendored
|
@ -1,26 +1,26 @@
|
||||||
{
|
{
|
||||||
"_from": "luxon@1.22.2",
|
"_from": "luxon@1.24.1",
|
||||||
"_id": "luxon@1.22.2",
|
"_id": "luxon@1.24.1",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-vq6eSaOOw1fKob+JXwfu0e3/UFUT4G4HTFRJab7dch8J1OdOGW/vXqCiJsY7rm2In+5gKNYx0EtnYT0Tc5V4Qw==",
|
"_integrity": "sha512-CgnIMKAWT0ghcuWFfCWBnWGOddM0zu6c4wZAWmD0NN7MZTnro0+833DF6tJep+xlxRPg4KtsYEHYLfTMBQKwYg==",
|
||||||
"_location": "/luxon",
|
"_location": "/luxon",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "luxon@1.22.2",
|
"raw": "luxon@1.24.1",
|
||||||
"name": "luxon",
|
"name": "luxon",
|
||||||
"escapedName": "luxon",
|
"escapedName": "luxon",
|
||||||
"rawSpec": "1.22.2",
|
"rawSpec": "1.24.1",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "1.22.2"
|
"fetchSpec": "1.24.1"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/docker-hub-utils"
|
"/docker-hub-utils"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/luxon/-/luxon-1.22.2.tgz",
|
"_resolved": "https://registry.npmjs.org/luxon/-/luxon-1.24.1.tgz",
|
||||||
"_shasum": "799d65cc1ed0ba85b4cb3f7dd38fc08a8d1a6750",
|
"_shasum": "a8383266131ed4eaed4b5f430f96f3695403a52a",
|
||||||
"_spec": "luxon@1.22.2",
|
"_spec": "luxon@1.24.1",
|
||||||
"_where": "/home/dawidd6/github/dawidd6/action-debian-package/node_modules/docker-hub-utils",
|
"_where": "/home/dawidd6/github/dawidd6/action-debian-package/node_modules/docker-hub-utils",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Cambron"
|
"name": "Isaac Cambron"
|
||||||
|
@ -33,41 +33,41 @@
|
||||||
"deprecated": false,
|
"deprecated": false,
|
||||||
"description": "Immutable date wrapper",
|
"description": "Immutable date wrapper",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.8.4",
|
"@babel/core": "^7.9.0",
|
||||||
"@babel/node": "^7.8.4",
|
"@babel/node": "^7.8.7",
|
||||||
"@babel/plugin-external-helpers": "^7.8.3",
|
"@babel/plugin-external-helpers": "^7.8.3",
|
||||||
"@babel/preset-env": "^7.8.4",
|
"@babel/preset-env": "^7.9.5",
|
||||||
"@rollup/plugin-commonjs": "latest",
|
"@rollup/plugin-commonjs": "^11.1.0",
|
||||||
"@rollup/plugin-node-resolve": "latest",
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
||||||
"babel-core": "^7.0.0-bridge.0",
|
"babel-core": "^7.0.0-bridge.0",
|
||||||
"babel-eslint": "latest",
|
"babel-eslint": "latest",
|
||||||
"babel-jest": "^25.1.0",
|
"babel-jest": "^25.3.0",
|
||||||
"benchmark": "latest",
|
"benchmark": "latest",
|
||||||
"codecov": ">= 3.6.5",
|
"codecov": ">= 3.6.5",
|
||||||
"core-js": "latest",
|
"core-js": "^3.6.5",
|
||||||
"esdoc": "^1.1.0",
|
"esdoc": "^1.1.0",
|
||||||
"esdoc-standard-plugin": "latest",
|
"esdoc-standard-plugin": "latest",
|
||||||
"eslint": "6.4.0",
|
"eslint": "6.4.0",
|
||||||
"eslint-config-defaults": "latest",
|
"eslint-config-defaults": "latest",
|
||||||
"eslint-config-prettier": "6.3.0",
|
"eslint-config-prettier": "6.3.0",
|
||||||
"eslint-config-standard": "^14.1.0",
|
"eslint-config-standard": "^14.1.1",
|
||||||
"eslint-plugin-babel": "latest",
|
"eslint-plugin-babel": "latest",
|
||||||
"eslint-plugin-import": "^2.20.1",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
"eslint-plugin-node": "10.0.0",
|
"eslint-plugin-node": "10.0.0",
|
||||||
"eslint-plugin-prettier": "3.1.1",
|
"eslint-plugin-prettier": "3.1.1",
|
||||||
"eslint-plugin-promise": "latest",
|
"eslint-plugin-promise": "latest",
|
||||||
"eslint-plugin-react": "^7.18.3",
|
"eslint-plugin-react": "^7.19.0",
|
||||||
"eslint-plugin-standard": "^4.0.1",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"fs-extra": "^6.0.1",
|
"fs-extra": "^6.0.1",
|
||||||
"full-icu": "^1.3.0",
|
"full-icu": "^1.3.1",
|
||||||
"husky": "^4.2.1",
|
"husky": "^4.2.5",
|
||||||
"jest": "^25.1.0",
|
"jest": "^25.3.0",
|
||||||
"lint-staged": "^10.0.7",
|
"lint-staged": "^10.1.3",
|
||||||
"prettier": "1.14.3",
|
"prettier": "1.14.3",
|
||||||
"rollup": "^1.31.0",
|
"rollup": "^1.32.1",
|
||||||
"rollup-plugin-babel": "latest",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-babel-minify": "^6.2.0",
|
"rollup-plugin-babel-minify": "^6.2.0",
|
||||||
"uglify-js": "^3.7.7"
|
"uglify-js": "^3.9.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
|
@ -125,5 +125,5 @@
|
||||||
"test": "jest --coverage"
|
"test": "jest --coverage"
|
||||||
},
|
},
|
||||||
"unpkg": "build/global/luxon.min.js",
|
"unpkg": "build/global/luxon.min.js",
|
||||||
"version": "1.22.2"
|
"version": "1.24.1"
|
||||||
}
|
}
|
||||||
|
|
24
node_modules/luxon/src/impl/regexParser.js
generated
vendored
24
node_modules/luxon/src/impl/regexParser.js
generated
vendored
|
@ -120,11 +120,11 @@ function extractIANAZone(match, cursor) {
|
||||||
|
|
||||||
// ISO duration parsing
|
// ISO duration parsing
|
||||||
|
|
||||||
const isoDuration = /^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
const isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||||
|
|
||||||
function extractISODuration(match) {
|
function extractISODuration(match) {
|
||||||
const [
|
const [
|
||||||
,
|
s,
|
||||||
yearStr,
|
yearStr,
|
||||||
monthStr,
|
monthStr,
|
||||||
weekStr,
|
weekStr,
|
||||||
|
@ -135,16 +135,20 @@ function extractISODuration(match) {
|
||||||
millisecondsStr
|
millisecondsStr
|
||||||
] = match;
|
] = match;
|
||||||
|
|
||||||
|
const hasNegativePrefix = s[0] === "-";
|
||||||
|
|
||||||
|
const maybeNegate = num => (num && hasNegativePrefix ? -num : num);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
years: parseInteger(yearStr),
|
years: maybeNegate(parseInteger(yearStr)),
|
||||||
months: parseInteger(monthStr),
|
months: maybeNegate(parseInteger(monthStr)),
|
||||||
weeks: parseInteger(weekStr),
|
weeks: maybeNegate(parseInteger(weekStr)),
|
||||||
days: parseInteger(dayStr),
|
days: maybeNegate(parseInteger(dayStr)),
|
||||||
hours: parseInteger(hourStr),
|
hours: maybeNegate(parseInteger(hourStr)),
|
||||||
minutes: parseInteger(minuteStr),
|
minutes: maybeNegate(parseInteger(minuteStr)),
|
||||||
seconds: parseInteger(secondStr),
|
seconds: maybeNegate(parseInteger(secondStr)),
|
||||||
milliseconds: parseMillis(millisecondsStr)
|
milliseconds: maybeNegate(parseMillis(millisecondsStr))
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue