@noldova/tools.pipelines 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +202 -2
- package/api/index.d.ts +1490 -0
- package/api/index.js +27 -0
- package/api/index.js.map +1 -0
- package/exceptions/pipeline.exception.js +14 -0
- package/exceptions/pipeline.exception.js.map +1 -0
- package/exceptions/process.exception.js +17 -0
- package/exceptions/process.exception.js.map +1 -0
- package/exceptions/version.exception.js +15 -0
- package/exceptions/version.exception.js.map +1 -0
- package/interfaces/i-registry-host.js +9 -0
- package/interfaces/i-registry-host.js.map +1 -0
- package/interfaces/i-step-output.js +9 -0
- package/interfaces/i-step-output.js.map +1 -0
- package/interfaces/i-step.js +9 -0
- package/interfaces/i-step.js.map +1 -0
- package/interfaces/i-tag-host.js +9 -0
- package/interfaces/i-tag-host.js.map +1 -0
- package/models/archive-check.js +16 -0
- package/models/archive-check.js.map +1 -0
- package/models/package-archive.js +16 -0
- package/models/package-archive.js.map +1 -0
- package/models/process-result.js +22 -0
- package/models/process-result.js.map +1 -0
- package/models/step-result.js +22 -0
- package/models/step-result.js.map +1 -0
- package/models/version.js +85 -0
- package/models/version.js.map +1 -0
- package/package.json +24 -4
- package/resources.js +310 -0
- package/resources.js.map +1 -0
- package/services/archive-step.js +130 -0
- package/services/archive-step.js.map +1 -0
- package/services/command-line.js +34 -0
- package/services/command-line.js.map +1 -0
- package/services/git.js +60 -0
- package/services/git.js.map +1 -0
- package/services/nightly-step.js +82 -0
- package/services/nightly-step.js.map +1 -0
- package/services/npm.js +43 -0
- package/services/npm.js.map +1 -0
- package/services/process-runner.js +34 -0
- package/services/process-runner.js.map +1 -0
- package/services/prune-step.js +102 -0
- package/services/prune-step.js.map +1 -0
- package/services/publish-step.js +117 -0
- package/services/publish-step.js.map +1 -0
- package/services/source-step.js +43 -0
- package/services/source-step.js.map +1 -0
- package/services/tag-step.js +48 -0
- package/services/tag-step.js.map +1 -0
- package/services/tar.js +23 -0
- package/services/tar.js.map +1 -0
package/api/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export { PipelineException } from "../exceptions/pipeline.exception.js";
|
|
9
|
+
export { ProcessException } from "../exceptions/process.exception.js";
|
|
10
|
+
export { VersionException } from "../exceptions/version.exception.js";
|
|
11
|
+
export { ArchiveCheck } from "../models/archive-check.js";
|
|
12
|
+
export { PackageArchive } from "../models/package-archive.js";
|
|
13
|
+
export { ProcessResult } from "../models/process-result.js";
|
|
14
|
+
export { StepResult } from "../models/step-result.js";
|
|
15
|
+
export { Version } from "../models/version.js";
|
|
16
|
+
export { ArchiveStep } from "../services/archive-step.js";
|
|
17
|
+
export { CommandLine } from "../services/command-line.js";
|
|
18
|
+
export { Git } from "../services/git.js";
|
|
19
|
+
export { NightlyStep } from "../services/nightly-step.js";
|
|
20
|
+
export { Npm } from "../services/npm.js";
|
|
21
|
+
export { ProcessRunner } from "../services/process-runner.js";
|
|
22
|
+
export { PruneStep } from "../services/prune-step.js";
|
|
23
|
+
export { PublishStep } from "../services/publish-step.js";
|
|
24
|
+
export { SourceStep } from "../services/source-step.js";
|
|
25
|
+
export { TagStep } from "../services/tag-step.js";
|
|
26
|
+
export { Tar } from "../services/tar.js";
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
package/api/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAKtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Exception } from "@noldova/context.exceptions";
|
|
9
|
+
export class PipelineException extends Exception {
|
|
10
|
+
constructor(message, options) {
|
|
11
|
+
super(message, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=pipeline.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.exception.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/exceptions/pipeline.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAgB,iBAAkB,SAAQ,SAAS;IACvD,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { PipelineException } from "./pipeline.exception.js";
|
|
10
|
+
export class ProcessException extends PipelineException {
|
|
11
|
+
program;
|
|
12
|
+
constructor(program, message = Resources.formatProgramFailed(program), options) {
|
|
13
|
+
super(message, options);
|
|
14
|
+
this.program = program;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=process.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process.exception.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/exceptions/process.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IACrC,OAAO,CAAS;IAEhC,YAAmB,OAAe,EAAE,OAAO,GAAW,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,OAA0B;QACtH,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAExB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { PipelineException } from "./pipeline.exception.js";
|
|
10
|
+
export class VersionException extends PipelineException {
|
|
11
|
+
constructor(message = Resources.versionInvalid, options) {
|
|
12
|
+
super(message, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=version.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.exception.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/exceptions/version.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IACrD,YAAmB,OAAO,GAAW,SAAS,CAAC,cAAc,EAAE,OAA0B;QACvF,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-registry-host.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-registry-host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-step-output.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-step-output.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-step.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-step.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-tag-host.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-tag-host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class ArchiveCheck {
|
|
9
|
+
result;
|
|
10
|
+
archives;
|
|
11
|
+
constructor(result, archives) {
|
|
12
|
+
this.result = result;
|
|
13
|
+
this.archives = archives;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=archive-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-check.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/archive-check.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,OAAO,YAAY;IACP,MAAM,CAAa;IACnB,QAAQ,CAA4B;IAEpD,YAAmB,MAAkB,EAAE,QAAmC;QACxE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class PackageArchive {
|
|
9
|
+
packageName;
|
|
10
|
+
filePath;
|
|
11
|
+
constructor(packageName, filePath) {
|
|
12
|
+
this.packageName = packageName;
|
|
13
|
+
this.filePath = filePath;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=package-archive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-archive.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/package-archive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,cAAc;IACT,WAAW,CAAS;IACpB,QAAQ,CAAS;IAEjC,YAAmB,WAAmB,EAAE,QAAgB;QACtD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
export class ProcessResult {
|
|
10
|
+
exitCode;
|
|
11
|
+
output;
|
|
12
|
+
errorOutput;
|
|
13
|
+
constructor(exitCode, output, errorOutput) {
|
|
14
|
+
this.exitCode = exitCode;
|
|
15
|
+
this.output = output;
|
|
16
|
+
this.errorOutput = errorOutput;
|
|
17
|
+
}
|
|
18
|
+
get isSuccessful() {
|
|
19
|
+
return this.exitCode === Resources.successExitCode;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=process-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-result.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/process-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAa;IACR,QAAQ,CAAgB;IACxB,MAAM,CAAS;IACf,WAAW,CAAS;IAEpC,YAAmB,QAAuB,EAAE,MAAc,EAAE,WAAmB;QAC7E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,eAAe,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export class StepResult {
|
|
9
|
+
isSuccessful;
|
|
10
|
+
message;
|
|
11
|
+
constructor(isSuccessful, message) {
|
|
12
|
+
this.isSuccessful = isSuccessful;
|
|
13
|
+
this.message = message;
|
|
14
|
+
}
|
|
15
|
+
static succeeded(message) {
|
|
16
|
+
return new StepResult(true, message);
|
|
17
|
+
}
|
|
18
|
+
static failed(message) {
|
|
19
|
+
return new StepResult(false, message);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=step-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-result.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/step-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,UAAU;IACL,YAAY,CAAU;IACtB,OAAO,CAAS;IAEhC,YAAoB,YAAqB,EAAE,OAAe;QACxD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,OAAe;QACrC,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,OAAe;QAClC,OAAO,IAAI,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;CACF"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { VersionException } from "../exceptions/version.exception.js";
|
|
9
|
+
import { Resources } from "../resources.js";
|
|
10
|
+
export class Version {
|
|
11
|
+
major;
|
|
12
|
+
minor;
|
|
13
|
+
patch;
|
|
14
|
+
nightlyDate;
|
|
15
|
+
constructor(major, minor, patch, nightlyDate = null) {
|
|
16
|
+
Version.checkPart(Resources.majorPartName, major);
|
|
17
|
+
Version.checkPart(Resources.minorPartName, minor);
|
|
18
|
+
Version.checkPart(Resources.patchPartName, patch);
|
|
19
|
+
if (nightlyDate !== null)
|
|
20
|
+
Version.checkNightlyDate(nightlyDate);
|
|
21
|
+
this.major = major;
|
|
22
|
+
this.minor = minor;
|
|
23
|
+
this.patch = patch;
|
|
24
|
+
this.nightlyDate = nightlyDate;
|
|
25
|
+
}
|
|
26
|
+
static parse(text) {
|
|
27
|
+
const match = Resources.versionPattern.exec(text);
|
|
28
|
+
if (match === null)
|
|
29
|
+
throw new VersionException(Resources.formatVersionInvalid(text));
|
|
30
|
+
const problem = Version.validateMatch(match);
|
|
31
|
+
if (problem !== null)
|
|
32
|
+
throw new VersionException(problem);
|
|
33
|
+
return new Version(Number(match[1]), Number(match[2]), Number(match[3]), match[4] ?? null);
|
|
34
|
+
}
|
|
35
|
+
static validate(text) {
|
|
36
|
+
const match = Resources.versionPattern.exec(text);
|
|
37
|
+
return match === null ? Resources.formatVersionInvalid(text) : Version.validateMatch(match);
|
|
38
|
+
}
|
|
39
|
+
compareTo(other) {
|
|
40
|
+
const order = Math.sign(this.major - other.major || this.minor - other.minor || this.patch - other.patch);
|
|
41
|
+
if (order !== 0 || this.nightlyDate === other.nightlyDate)
|
|
42
|
+
return order;
|
|
43
|
+
if (this.nightlyDate === null)
|
|
44
|
+
return 1;
|
|
45
|
+
if (other.nightlyDate === null)
|
|
46
|
+
return -1;
|
|
47
|
+
return this.nightlyDate < other.nightlyDate ? -1 : 1;
|
|
48
|
+
}
|
|
49
|
+
equals(other) {
|
|
50
|
+
return this.compareTo(other) === 0;
|
|
51
|
+
}
|
|
52
|
+
toString() {
|
|
53
|
+
const release = [this.major, this.minor, this.patch].join(Resources.versionPartSeparator);
|
|
54
|
+
return this.nightlyDate === null ? release : `${release}${Resources.nightlySeparator}${this.nightlyDate}`;
|
|
55
|
+
}
|
|
56
|
+
static checkPart(partName, value) {
|
|
57
|
+
if (!Number.isSafeInteger(value) || value < 0)
|
|
58
|
+
throw new VersionException(Resources.formatVersionPartInvalid(partName, String(value)));
|
|
59
|
+
}
|
|
60
|
+
static validateMatch(match) {
|
|
61
|
+
return Version.validatePart(Resources.majorPartName, match[1])
|
|
62
|
+
?? Version.validatePart(Resources.minorPartName, match[2])
|
|
63
|
+
?? Version.validatePart(Resources.patchPartName, match[3])
|
|
64
|
+
?? (match[4] === undefined ? null : Version.validateNightlyDate(match[4]));
|
|
65
|
+
}
|
|
66
|
+
static validatePart(partName, text) {
|
|
67
|
+
return Number.isSafeInteger(Number(text)) ? null : Resources.formatVersionPartInvalid(partName, String(text));
|
|
68
|
+
}
|
|
69
|
+
static checkNightlyDate(value) {
|
|
70
|
+
const problem = Version.validateNightlyDate(value);
|
|
71
|
+
if (problem !== null)
|
|
72
|
+
throw new VersionException(problem);
|
|
73
|
+
}
|
|
74
|
+
static validateNightlyDate(value) {
|
|
75
|
+
const match = Resources.nightlyDatePattern.exec(value);
|
|
76
|
+
if (match === null || !Version.isCalendarDate(Number(match[1]), Number(match[2]), Number(match[3])))
|
|
77
|
+
return Resources.formatNightlyDateInvalid(value);
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
static isCalendarDate(year, month, day) {
|
|
81
|
+
const date = new Date(Date.UTC(year, month - 1, day));
|
|
82
|
+
return date.getUTCMonth() === month - 1 && date.getUTCDate() === day;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/version.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,OAAO;IACF,KAAK,CAAS;IACd,KAAK,CAAS;IACd,KAAK,CAAS;IACd,WAAW,CAAgB;IAE3C,YAAmB,KAAa,EAAE,KAAa,EAAE,KAAa,EAAE,WAAW,GAAkB,IAAI;QAC/F,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAClD,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAClD,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAClD,IAAI,WAAW,KAAK,IAAI;YACtB,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAExC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,IAAY;QAC9B,MAAM,KAAK,GAA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GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,CAAC;IACvE,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noldova/tools.pipelines",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "api/index.js",
|
|
6
|
+
"types": "api/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/noldova-com/tools.git",
|
|
11
|
+
"directory": "src/noldova.tools.pipelines"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/noldova-com/tools#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/noldova-com/tools/issues"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@noldova/context.exceptions": "0.0.3",
|
|
23
|
+
"@noldova/context.json": "0.0.3"
|
|
24
|
+
},
|
|
25
|
+
"gitHead": "88191d48b554e81284f6c9662fd1752a861b4f28"
|
|
26
|
+
}
|