@sw-tsdk/core 2.11.2-next.8 → 2.12.0
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/lib/base.d.ts +1 -1
- package/lib/base.js +1 -1
- package/lib/base.js.map +1 -1
- package/lib/models/cipher.d.ts +1 -1
- package/lib/models/config.d.ts +2 -2
- package/lib/utils/streams.d.ts +1 -1
- package/lib/utils/streams.js +11 -7
- package/lib/utils/streams.js.map +1 -1
- package/package.json +5 -6
package/lib/base.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare abstract class Base extends Command {
|
|
|
4
4
|
sdkConfig: ConfigType;
|
|
5
5
|
environment: string | null;
|
|
6
6
|
static BaseFlags: {
|
|
7
|
-
'log-level': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
'log-level': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
init(): Promise<void>;
|
|
10
10
|
catch(error: Error & {
|
package/lib/base.js
CHANGED
|
@@ -15,7 +15,7 @@ class Base extends core_1.Command {
|
|
|
15
15
|
const entry = this.config.configDir;
|
|
16
16
|
const { flags } = (await this.parse(this.constructor));
|
|
17
17
|
if (flags['log-level'] === 'debug') {
|
|
18
|
-
core_2.
|
|
18
|
+
core_2.ux.config.outputLevel = 'debug';
|
|
19
19
|
}
|
|
20
20
|
const configService = new config_service_1.ConfigService(entry);
|
|
21
21
|
const config = (await configService.loadConfig()) || {};
|
package/lib/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":";;;AAAA,sCAA0C;AAE1C,qDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":";;;AAAA,sCAA0C;AAE1C,qDAA8C;AAC9C,sCAA8B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aAAa,CAAC,UAAU,EAAE,IAAI,EAAE,CAAA;QAE3D,IAAI,CAAC,YAAY,EAAE;YACjB,OAAM;SACP;QAED,YAAY,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;QAEzB,MAAM,aAAa,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;IAC9C,CAAC;IAES,KAAK,CAAC,SAAS,CAA4B,GAAW;QAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAA;QACnC,MAAM,aAAa,GAAG,IAAI,8BAAa,CAAC,KAAK,CAAC,CAAA;QAC9C,MAAM,YAAY,GAAG,MAAM,aAAa,CAAC,UAAU,EAAE,IAAI,EAAE,CAAA;QAC3D,OAAO,YAAY,CAAC,GAAG,CAAM,CAAA;IAC/B,CAAC;;AA1DH,oBA2DC;AAtDQ,cAAS,GAAG;IACjB,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC;CAC9D,AAFe,CAEf"}
|
package/lib/models/cipher.d.ts
CHANGED
package/lib/models/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ConfigType = {
|
|
2
2
|
[key: string]: ConfigTypeValue;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type ConfigTypeValue = string | Date | undefined | Record<string, unknown>;
|
package/lib/utils/streams.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export interface ReadableStreamOptions extends Omit<ReadableNodeStreamOptions, '
|
|
|
11
11
|
*/
|
|
12
12
|
readonly size?: number;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type WritableStreamOptions = Omit<WritableNodeStreamOptions, 'write'>;
|
|
15
15
|
export declare function readableNoopStream({ size, ...options }: ReadableStreamOptions): NodeJS.ReadableStream;
|
|
16
16
|
export declare function writableNoopStream(options?: WritableStreamOptions): NodeJS.WritableStream;
|
package/lib/utils/streams.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writableNoopStream = exports.readableNoopStream = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const node_stream_1 = require("node:stream");
|
|
6
5
|
const node_buffer_1 = require("node:buffer");
|
|
7
6
|
// noinspection JSUnusedGlobalSymbols
|
|
8
|
-
function readableNoopStream(
|
|
9
|
-
var { size = 0 } = _a, options = tslib_1.__rest(_a, ["size"]);
|
|
7
|
+
function readableNoopStream({ size = 0, ...options }) {
|
|
10
8
|
let producedSize = 0;
|
|
11
|
-
return new node_stream_1.Readable(
|
|
9
|
+
return new node_stream_1.Readable({
|
|
10
|
+
...options,
|
|
11
|
+
read(readSize) {
|
|
12
12
|
let shouldEnd = false;
|
|
13
13
|
if ((producedSize + readSize) >= size) {
|
|
14
14
|
readSize = size - producedSize;
|
|
@@ -24,14 +24,18 @@ function readableNoopStream(_a) {
|
|
|
24
24
|
this.push(null);
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
|
+
});
|
|
28
29
|
}
|
|
29
30
|
exports.readableNoopStream = readableNoopStream;
|
|
30
31
|
// noinspection JSUnusedGlobalSymbols
|
|
31
32
|
function writableNoopStream(options) {
|
|
32
|
-
return new node_stream_1.Writable(
|
|
33
|
+
return new node_stream_1.Writable({
|
|
34
|
+
...options,
|
|
35
|
+
write(chunk, encding, callback) {
|
|
33
36
|
setImmediate(callback);
|
|
34
|
-
}
|
|
37
|
+
},
|
|
38
|
+
});
|
|
35
39
|
}
|
|
36
40
|
exports.writableNoopStream = writableNoopStream;
|
|
37
41
|
//# sourceMappingURL=streams.js.map
|
package/lib/utils/streams.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../src/utils/streams.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../src/utils/streams.ts"],"names":[],"mappings":";;;AAAA,6CAGoB;AACpB,6CAAkC;AAoBlC,qCAAqC;AACrC,SAAgB,kBAAkB,CAAC,EAAC,IAAI,GAAG,CAAC,EAAE,GAAG,OAAO,EAAwB;IAC9E,IAAI,YAAY,GAAG,CAAC,CAAA;IAEpB,OAAO,IAAI,sBAAc,CAAC;QACxB,GAAG,OAAO;QACV,IAAI,CAAC,QAAQ;YACX,IAAI,SAAS,GAAG,KAAK,CAAA;YAErB,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE;gBACrC,QAAQ,GAAG,IAAI,GAAG,YAAY,CAAA;gBAC9B,SAAS,GAAG,IAAI,CAAA;aACjB;YAED,YAAY,CAAC,GAAG,EAAE;gBAChB,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;iBAChB;gBAED,YAAY,IAAI,QAAQ,CAAA;gBACxB,IAAI,CAAC,IAAI,CAAC,oBAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;gBAEjC,IAAI,SAAS,EAAE;oBACb,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;iBAChB;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AA3BD,gDA2BC;AAED,qCAAqC;AACrC,SAAgB,kBAAkB,CAAC,OAA+B;IAChE,OAAO,IAAI,sBAAc,CAAC;QACxB,GAAG,OAAO;QACV,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ;YAC5B,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxB,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAPD,gDAOC"}
|
package/package.json
CHANGED
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
"url": "https://github.com/swimlane/turbine-sdk/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@oclif/core": "
|
|
8
|
-
"
|
|
9
|
-
"fs-extra": "10.0.1",
|
|
7
|
+
"@oclif/core": "2.8.5",
|
|
8
|
+
"fs-extra": "11.1.1",
|
|
10
9
|
"git-credential-node": "1.1.0",
|
|
11
10
|
"netrc-parser": "3.1.6",
|
|
12
|
-
"npmlog": "
|
|
11
|
+
"npmlog": "7.0.1"
|
|
13
12
|
},
|
|
14
13
|
"description": "Core library for sw-tsdk",
|
|
15
14
|
"directories": {
|
|
@@ -39,6 +38,6 @@
|
|
|
39
38
|
"test": "jest --passWithNoTests"
|
|
40
39
|
},
|
|
41
40
|
"types": "lib/index.d.ts",
|
|
42
|
-
"version": "2.
|
|
43
|
-
"gitHead": "
|
|
41
|
+
"version": "2.12.0",
|
|
42
|
+
"gitHead": "dcbfca7d6fbdec0fa5dce268045effb16e434c01"
|
|
44
43
|
}
|