@jsii/kernel 1.112.0 → 1.114.1
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/api.d.ts +4 -4
- package/lib/api.js +8 -8
- package/lib/disk-cache/digest-file.d.ts +0 -2
- package/lib/disk-cache/digest-file.js +1 -2
- package/lib/disk-cache/disk-cache.d.ts +0 -2
- package/lib/disk-cache/disk-cache.js +13 -13
- package/lib/kernel.js +2 -2
- package/lib/link.js +1 -2
- package/lib/objects.js +4 -4
- package/lib/on-exit.js +1 -2
- package/lib/recording.js +2 -3
- package/lib/serialization.d.ts +5 -5
- package/lib/serialization.js +6 -3
- package/lib/tar-cache/default-cache-root.js +1 -2
- package/lib/tar-cache/index.d.ts +1 -1
- package/lib/tar-cache/index.js +3 -4
- package/package.json +6 -6
package/lib/api.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface WireStruct {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
export declare function isWireStruct(value: any): value is WireStruct;
|
|
36
|
-
export
|
|
36
|
+
export type Override = MethodOverride | PropertyOverride;
|
|
37
37
|
export interface MethodOverride {
|
|
38
38
|
readonly method: string;
|
|
39
39
|
readonly cookie?: string;
|
|
@@ -108,7 +108,7 @@ export interface CreateRequest {
|
|
|
108
108
|
*/
|
|
109
109
|
readonly overrides?: Override[];
|
|
110
110
|
}
|
|
111
|
-
export
|
|
111
|
+
export type CreateResponse = ObjRef;
|
|
112
112
|
export interface DelRequest {
|
|
113
113
|
readonly objref: ObjRef;
|
|
114
114
|
}
|
|
@@ -193,8 +193,8 @@ export interface StatsRequest {
|
|
|
193
193
|
export interface StatsResponse {
|
|
194
194
|
readonly objectCount: number;
|
|
195
195
|
}
|
|
196
|
-
export
|
|
197
|
-
export
|
|
196
|
+
export type KernelRequest = LoadRequest | CreateRequest | DelRequest | GetRequest | SetRequest | InvokeRequest | BeginRequest | EndRequest | CallbacksRequest | CompleteRequest | NamingRequest | StatsRequest;
|
|
197
|
+
export type KernelResponse = HelloResponse | LoadResponse | CreateResponse | DelResponse | GetResponse | SetResponse | InvokeResponse | BeginResponse | EndResponse | CallbacksResponse | CompleteResponse | NamingResponse | StatsResponse;
|
|
198
198
|
export interface OkayResponse {
|
|
199
199
|
readonly ok: any;
|
|
200
200
|
}
|
package/lib/api.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TOKEN_STRUCT = exports.TOKEN_MAP = exports.TOKEN_ENUM = exports.TOKEN_DATE = exports.TOKEN_INTERFACES = exports.TOKEN_REF = void 0;
|
|
4
|
+
exports.isObjRef = isObjRef;
|
|
5
|
+
exports.isWireDate = isWireDate;
|
|
6
|
+
exports.isWireEnum = isWireEnum;
|
|
7
|
+
exports.isWireMap = isWireMap;
|
|
8
|
+
exports.isWireStruct = isWireStruct;
|
|
9
|
+
exports.isMethodOverride = isMethodOverride;
|
|
10
|
+
exports.isPropertyOverride = isPropertyOverride;
|
|
4
11
|
exports.TOKEN_REF = '$jsii.byref';
|
|
5
12
|
exports.TOKEN_INTERFACES = '$jsii.interfaces';
|
|
6
13
|
exports.TOKEN_DATE = '$jsii.date';
|
|
@@ -10,29 +17,22 @@ exports.TOKEN_STRUCT = '$jsii.struct';
|
|
|
10
17
|
function isObjRef(value) {
|
|
11
18
|
return typeof value === 'object' && value !== null && exports.TOKEN_REF in value;
|
|
12
19
|
}
|
|
13
|
-
exports.isObjRef = isObjRef;
|
|
14
20
|
function isWireDate(value) {
|
|
15
21
|
return typeof value === 'object' && value !== null && exports.TOKEN_DATE in value;
|
|
16
22
|
}
|
|
17
|
-
exports.isWireDate = isWireDate;
|
|
18
23
|
function isWireEnum(value) {
|
|
19
24
|
return typeof value === 'object' && value !== null && exports.TOKEN_ENUM in value;
|
|
20
25
|
}
|
|
21
|
-
exports.isWireEnum = isWireEnum;
|
|
22
26
|
function isWireMap(value) {
|
|
23
27
|
return typeof value === 'object' && value !== null && exports.TOKEN_MAP in value;
|
|
24
28
|
}
|
|
25
|
-
exports.isWireMap = isWireMap;
|
|
26
29
|
function isWireStruct(value) {
|
|
27
30
|
return typeof value === 'object' && value !== null && exports.TOKEN_STRUCT in value;
|
|
28
31
|
}
|
|
29
|
-
exports.isWireStruct = isWireStruct;
|
|
30
32
|
function isMethodOverride(value) {
|
|
31
33
|
return value.method != null; // Python passes "null"
|
|
32
34
|
}
|
|
33
|
-
exports.isMethodOverride = isMethodOverride;
|
|
34
35
|
function isPropertyOverride(value) {
|
|
35
36
|
return value.property != null; // Python passes "null"
|
|
36
37
|
}
|
|
37
|
-
exports.isPropertyOverride = isPropertyOverride;
|
|
38
38
|
//# sourceMappingURL=api.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.digestFile =
|
|
3
|
+
exports.digestFile = digestFile;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
5
|
const fs_1 = require("fs");
|
|
6
6
|
const ALGORITHM = 'sha256';
|
|
@@ -23,5 +23,4 @@ function digestFile(path, ...comments) {
|
|
|
23
23
|
(0, fs_1.closeSync)(fd);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.digestFile = digestFile;
|
|
27
26
|
//# sourceMappingURL=digest-file.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
2
7
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
8
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
9
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
11
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
12
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
13
|
var _DiskCache_instances, _a, _DiskCache_CACHE, _DiskCache_root, _DiskCache_entries, _Entry_instances, _Entry_lockFile_get, _Entry_markerFile_get, _Entry_touchMarkerFile;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Entry = exports.DiskCache = void 0;
|
|
@@ -23,12 +23,6 @@ const PRUNE_AFTER_MILLISECONDS = process.env.JSII_RUNTIME_PACKAGE_CACHE_TTL
|
|
|
23
23
|
? parseInt(process.env.JSII_RUNTIME_PACKAGE_CACHE_TTL, 10) * ONE_DAY_IN_MS
|
|
24
24
|
: 30 * ONE_DAY_IN_MS;
|
|
25
25
|
class DiskCache {
|
|
26
|
-
constructor(root) {
|
|
27
|
-
_DiskCache_instances.add(this);
|
|
28
|
-
_DiskCache_root.set(this, void 0);
|
|
29
|
-
__classPrivateFieldSet(this, _DiskCache_root, root, "f");
|
|
30
|
-
process.once('beforeExit', () => this.pruneExpiredEntries());
|
|
31
|
-
}
|
|
32
26
|
static inDirectory(path) {
|
|
33
27
|
const didCreate = (0, fs_1.mkdirSync)(path, { recursive: true }) != null;
|
|
34
28
|
if (didCreate && process.platform === 'darwin') {
|
|
@@ -40,10 +34,16 @@ class DiskCache {
|
|
|
40
34
|
}
|
|
41
35
|
path = (0, fs_1.realpathSync)(path);
|
|
42
36
|
if (!__classPrivateFieldGet(this, _a, "f", _DiskCache_CACHE).has(path)) {
|
|
43
|
-
__classPrivateFieldGet(this, _a, "f", _DiskCache_CACHE).set(path, new
|
|
37
|
+
__classPrivateFieldGet(this, _a, "f", _DiskCache_CACHE).set(path, new _a(path));
|
|
44
38
|
}
|
|
45
39
|
return __classPrivateFieldGet(this, _a, "f", _DiskCache_CACHE).get(path);
|
|
46
40
|
}
|
|
41
|
+
constructor(root) {
|
|
42
|
+
_DiskCache_instances.add(this);
|
|
43
|
+
_DiskCache_root.set(this, void 0);
|
|
44
|
+
__classPrivateFieldSet(this, _DiskCache_root, root, "f");
|
|
45
|
+
process.once('beforeExit', () => this.pruneExpiredEntries());
|
|
46
|
+
}
|
|
47
47
|
entry(...key) {
|
|
48
48
|
if (key.length === 0) {
|
|
49
49
|
throw new Error(`Cache entry key must contain at least 1 element!`);
|
|
@@ -110,8 +110,8 @@ _a = DiskCache, _DiskCache_root = new WeakMap(), _DiskCache_instances = new Weak
|
|
|
110
110
|
_DiskCache_CACHE = { value: new Map() };
|
|
111
111
|
class Entry {
|
|
112
112
|
constructor(path) {
|
|
113
|
-
this.path = path;
|
|
114
113
|
_Entry_instances.add(this);
|
|
114
|
+
this.path = path;
|
|
115
115
|
}
|
|
116
116
|
get atime() {
|
|
117
117
|
try {
|
package/lib/kernel.js
CHANGED
|
@@ -48,8 +48,8 @@ class Kernel {
|
|
|
48
48
|
* result (or throw an error).
|
|
49
49
|
*/
|
|
50
50
|
constructor(callbackHandler) {
|
|
51
|
-
this.callbackHandler = callbackHandler;
|
|
52
51
|
_Kernel_instances.add(this);
|
|
52
|
+
this.callbackHandler = callbackHandler;
|
|
53
53
|
/**
|
|
54
54
|
* Set to true for verbose debugging.
|
|
55
55
|
*/
|
|
@@ -366,7 +366,7 @@ _Kernel_assemblies = new WeakMap(), _Kernel_objects = new WeakMap(), _Kernel_cbs
|
|
|
366
366
|
// untar the archive to its final location
|
|
367
367
|
const { cache } = __classPrivateFieldGet(this, _Kernel_instances, "m", _Kernel_debugTime).call(this, () => tar.extract(req.tarball, packageDir, {
|
|
368
368
|
strict: true,
|
|
369
|
-
strip: 1,
|
|
369
|
+
strip: 1, // Removes the 'package/' path element from entries
|
|
370
370
|
unlink: true,
|
|
371
371
|
}, req.name, req.version), `tar.extract(${req.tarball}) => ${packageDir}`);
|
|
372
372
|
if (cache != null) {
|
package/lib/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.link =
|
|
3
|
+
exports.link = link;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const os = require("os");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -56,5 +56,4 @@ function link(existingRoot, destinationRoot) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
exports.link = link;
|
|
60
59
|
//# sourceMappingURL=link.js.map
|
package/lib/objects.js
CHANGED
|
@@ -12,7 +12,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
};
|
|
13
13
|
var _ObjectTable_instances, _ObjectTable_resolveType, _ObjectTable_objects, _ObjectTable_nextid, _ObjectTable_makeId, _ObjectTable_removeRedundant, _InterfaceCollection_resolveType, _InterfaceCollection_interfaces;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ObjectTable =
|
|
15
|
+
exports.ObjectTable = void 0;
|
|
16
|
+
exports.jsiiTypeFqn = jsiiTypeFqn;
|
|
17
|
+
exports.objectReference = objectReference;
|
|
18
|
+
exports.tagJsiiConstructor = tagJsiiConstructor;
|
|
16
19
|
const spec = require("@jsii/spec");
|
|
17
20
|
const assert = require("assert");
|
|
18
21
|
const api = require("./api");
|
|
@@ -64,7 +67,6 @@ function jsiiTypeFqn(obj, isVisibleType) {
|
|
|
64
67
|
}
|
|
65
68
|
return undefined;
|
|
66
69
|
}
|
|
67
|
-
exports.jsiiTypeFqn = jsiiTypeFqn;
|
|
68
70
|
/**
|
|
69
71
|
* If this object was previously serialized under a given reference, return the same reference
|
|
70
72
|
*
|
|
@@ -80,7 +82,6 @@ function objectReference(obj) {
|
|
|
80
82
|
}
|
|
81
83
|
return undefined;
|
|
82
84
|
}
|
|
83
|
-
exports.objectReference = objectReference;
|
|
84
85
|
function tagObject(obj, objid, interfaces) {
|
|
85
86
|
const privateField = {
|
|
86
87
|
// Make sure the field does not show in `JSON.stringify` outputs, and is not
|
|
@@ -118,7 +119,6 @@ function tagJsiiConstructor(constructor, fqn) {
|
|
|
118
119
|
// should be considering it's FQN as a valid exported type.
|
|
119
120
|
RESOLVED_TYPE_FQN.set(constructor, fqn);
|
|
120
121
|
}
|
|
121
|
-
exports.tagJsiiConstructor = tagJsiiConstructor;
|
|
122
122
|
/**
|
|
123
123
|
* Table of JSII objects
|
|
124
124
|
*
|
package/lib/on-exit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeSync =
|
|
3
|
+
exports.removeSync = removeSync;
|
|
4
4
|
const fs = require("fs-extra");
|
|
5
5
|
const process = require("process");
|
|
6
6
|
const removeSyncPaths = new Array();
|
|
@@ -8,7 +8,6 @@ function removeSync(path) {
|
|
|
8
8
|
registerIfNeeded();
|
|
9
9
|
removeSyncPaths.push(path);
|
|
10
10
|
}
|
|
11
|
-
exports.removeSync = removeSync;
|
|
12
11
|
let registered = false;
|
|
13
12
|
/**
|
|
14
13
|
* Registers the exist handler if it has not been registered already. This is done exactly ocne per
|
package/lib/recording.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.closeRecording = closeRecording;
|
|
4
|
+
exports.recordInteraction = recordInteraction;
|
|
4
5
|
const fs = require("fs-extra");
|
|
5
6
|
const kernel_1 = require("./kernel");
|
|
6
7
|
async function closeRecording(kernel) {
|
|
@@ -15,7 +16,6 @@ async function closeRecording(kernel) {
|
|
|
15
16
|
});
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
|
-
exports.closeRecording = closeRecording;
|
|
19
19
|
/**
|
|
20
20
|
* Start recording all interaction with the kernel object.
|
|
21
21
|
*
|
|
@@ -73,5 +73,4 @@ function recordInteraction(kernel, inputOutputLogPath) {
|
|
|
73
73
|
logfile.write(`< ${JSON.stringify(obj)}\n`);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
exports.recordInteraction = recordInteraction;
|
|
77
76
|
//# sourceMappingURL=recording.js.map
|
package/lib/serialization.d.ts
CHANGED
|
@@ -38,11 +38,11 @@ import { ObjectTable } from './objects';
|
|
|
38
38
|
* (*) As in, declaration of a method looks like { returns?: TypeReference }
|
|
39
39
|
* and the absence of a type means it returns 'void'.
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export type Void = 'void';
|
|
42
42
|
/**
|
|
43
43
|
* A type instance, or Void
|
|
44
44
|
*/
|
|
45
|
-
export
|
|
45
|
+
export type OptionalValueOrVoid = spec.OptionalValue | Void;
|
|
46
46
|
/**
|
|
47
47
|
* A special FQN that can be used to create empty javascript objects.
|
|
48
48
|
*/
|
|
@@ -63,9 +63,9 @@ export declare const enum SerializationClass {
|
|
|
63
63
|
ReferenceType = "RefType",
|
|
64
64
|
Any = "Any"
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
type FindSymbol = (fqn: spec.FQN) => any;
|
|
67
|
+
type IsVisibleType = (fqn: spec.FQN) => boolean;
|
|
68
|
+
type LookupType = (fqn: spec.FQN) => spec.Type;
|
|
69
69
|
export interface SerializerHost {
|
|
70
70
|
readonly objects: ObjectTable;
|
|
71
71
|
debug(...args: any[]): void;
|
package/lib/serialization.js
CHANGED
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
* - /R(t) recurse with declared type t
|
|
28
28
|
*/
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.SerializationError = exports.
|
|
30
|
+
exports.SerializationError = exports.SERIALIZERS = exports.SYMBOL_WIRE_TYPE = exports.EMPTY_OBJECT_FQN = void 0;
|
|
31
|
+
exports.serializationType = serializationType;
|
|
32
|
+
exports.process = process;
|
|
31
33
|
const spec = require("@jsii/spec");
|
|
32
34
|
const assert = require("assert");
|
|
33
35
|
const util_1 = require("util");
|
|
@@ -545,6 +547,9 @@ function serializationType(typeRef, lookup) {
|
|
|
545
547
|
}
|
|
546
548
|
return compoundTypes.sort((l, r) => compareSerializationClasses(l.serializationClass, r.serializationClass));
|
|
547
549
|
}
|
|
550
|
+
if (spec.isIntersectionTypeReference(typeRef.type)) {
|
|
551
|
+
throw new Error(`Intersection types cannot be serialized`);
|
|
552
|
+
}
|
|
548
553
|
// The next part of the conversion is lookup-dependent
|
|
549
554
|
const type = lookup(typeRef.type.fqn);
|
|
550
555
|
if (spec.isEnumType(type)) {
|
|
@@ -555,7 +560,6 @@ function serializationType(typeRef, lookup) {
|
|
|
555
560
|
}
|
|
556
561
|
return [{ serializationClass: "RefType" /* SerializationClass.ReferenceType */, typeRef }];
|
|
557
562
|
}
|
|
558
|
-
exports.serializationType = serializationType;
|
|
559
563
|
function nullAndOk(x, type, host) {
|
|
560
564
|
if (x != null) {
|
|
561
565
|
return false;
|
|
@@ -729,7 +733,6 @@ function process(host, serde, value, type, context) {
|
|
|
729
733
|
return [first.toUpperCase(), ...rest].join('');
|
|
730
734
|
}
|
|
731
735
|
}
|
|
732
|
-
exports.process = process;
|
|
733
736
|
class SerializationError extends Error {
|
|
734
737
|
constructor(message, value, { isVisibleType }, causes = [], { renderValue = false } = {}) {
|
|
735
738
|
super([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultCacheRoot =
|
|
3
|
+
exports.defaultCacheRoot = defaultCacheRoot;
|
|
4
4
|
const os_1 = require("os");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
function defaultCacheRoot() {
|
|
@@ -23,5 +23,4 @@ function defaultCacheRoot() {
|
|
|
23
23
|
}
|
|
24
24
|
return (0, path_1.join)((0, os_1.tmpdir)(), 'aws-jsii-package-cache');
|
|
25
25
|
}
|
|
26
|
-
exports.defaultCacheRoot = defaultCacheRoot;
|
|
27
26
|
//# sourceMappingURL=default-cache-root.js.map
|
package/lib/tar-cache/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tar from 'tar';
|
|
2
|
-
export
|
|
2
|
+
export type ExtractOptions = Omit<tar.ExtractOptions & tar.FileOptions, 'file' | 'cwd'>;
|
|
3
3
|
export interface ExtractResult {
|
|
4
4
|
/**
|
|
5
5
|
* When `'hit'`, the data was already present in cache and was returned from
|
package/lib/tar-cache/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a, _b;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.extract = extract;
|
|
5
|
+
exports.getPackageCacheEnabled = getPackageCacheEnabled;
|
|
6
|
+
exports.setPackageCacheEnabled = setPackageCacheEnabled;
|
|
5
7
|
const fs_1 = require("fs");
|
|
6
8
|
const tar = require("tar");
|
|
7
9
|
const disk_cache_1 = require("../disk-cache");
|
|
@@ -27,7 +29,6 @@ function extract(file, outDir, options, ...comments) {
|
|
|
27
29
|
throw err;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
|
-
exports.extract = extract;
|
|
31
32
|
/**
|
|
32
33
|
* Extract the tarball into a cached directory, symlink that directory into the target location
|
|
33
34
|
*/
|
|
@@ -72,10 +73,8 @@ function untarInto(options) {
|
|
|
72
73
|
function getPackageCacheEnabled() {
|
|
73
74
|
return packageCacheEnabled;
|
|
74
75
|
}
|
|
75
|
-
exports.getPackageCacheEnabled = getPackageCacheEnabled;
|
|
76
76
|
/** @internal */
|
|
77
77
|
function setPackageCacheEnabled(value) {
|
|
78
78
|
packageCacheEnabled = value;
|
|
79
79
|
}
|
|
80
|
-
exports.setPackageCacheEnabled = setPackageCacheEnabled;
|
|
81
80
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.114.1",
|
|
4
4
|
"description": "kernel for jsii execution environment",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"main": "lib/index.js",
|
|
23
23
|
"types": "lib/index.d.ts",
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "tsc --build &&
|
|
25
|
+
"build": "tsc --build && yarn lint",
|
|
26
26
|
"watch": "tsc --build -w",
|
|
27
27
|
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
|
|
28
28
|
"lint:fix": "yarn lint --fix",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"package": "package-js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jsii/spec": "
|
|
34
|
+
"@jsii/spec": "1.114.1",
|
|
35
35
|
"fs-extra": "^10.1.0",
|
|
36
36
|
"lockfile": "^1.0.4",
|
|
37
37
|
"tar": "^6.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@scope/jsii-calc-base": "^1.
|
|
41
|
-
"@scope/jsii-calc-lib": "^1.
|
|
40
|
+
"@scope/jsii-calc-base": "^1.114.1",
|
|
41
|
+
"@scope/jsii-calc-lib": "^1.114.1",
|
|
42
42
|
"@types/fs-extra": "^9.0.13",
|
|
43
43
|
"@types/lockfile": "^1.0.4",
|
|
44
44
|
"@types/tar": "^6.1.13",
|
|
45
45
|
"jest-expect-message": "^1.1.3",
|
|
46
|
-
"jsii-build-tools": "^1.
|
|
46
|
+
"jsii-build-tools": "^1.114.1",
|
|
47
47
|
"jsii-calc": "^3.20.120"
|
|
48
48
|
}
|
|
49
49
|
}
|