jsii-reflect 1.110.0 → 1.112.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/assembly.js
CHANGED
|
@@ -280,9 +280,7 @@ class SubmoduleBuilder {
|
|
|
280
280
|
this.fullName.split('.').length === other.fullName.split('.').length + 1);
|
|
281
281
|
}
|
|
282
282
|
build() {
|
|
283
|
-
|
|
284
|
-
this._built = new submodule_1.Submodule(this.system, this.spec, this.fullName, mapValues(this.findSubmoduleBuilders(), (b) => b.build()), this.types);
|
|
285
|
-
}
|
|
283
|
+
this._built ?? (this._built = new submodule_1.Submodule(this.system, this.spec, this.fullName, mapValues(this.findSubmoduleBuilders(), (b) => b.build()), this.types));
|
|
286
284
|
return this._built;
|
|
287
285
|
}
|
|
288
286
|
/**
|
package/lib/type-system.js
CHANGED
|
@@ -115,7 +115,7 @@ class TypeSystem {
|
|
|
115
115
|
const root = this.addAssembly(asm, { isRoot });
|
|
116
116
|
// Using || instead of ?? because npmjs.com will alter the package.json file and possibly put `false` in pkg.bundleDependencies.
|
|
117
117
|
// This is actually non compliant to the package.json specification, but that's how it is...
|
|
118
|
-
const bundled = pkg.bundledDependencies
|
|
118
|
+
const bundled = pkg.bundledDependencies ?? pkg.bundleDependencies ?? [];
|
|
119
119
|
for (const name of dependenciesOf(pkg)) {
|
|
120
120
|
if (bundled.includes(name)) {
|
|
121
121
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsii-reflect",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.112.0",
|
|
4
4
|
"description": "strongly-typed reflection library and tools for jsii",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"package": "package-js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jsii/check-node": "1.
|
|
38
|
-
"@jsii/spec": "^1.
|
|
37
|
+
"@jsii/check-node": "1.112.0",
|
|
38
|
+
"@jsii/spec": "^1.112.0",
|
|
39
39
|
"chalk": "^4",
|
|
40
40
|
"fs-extra": "^10.1.0",
|
|
41
|
-
"oo-ascii-tree": "^1.
|
|
41
|
+
"oo-ascii-tree": "^1.112.0",
|
|
42
42
|
"yargs": "^16.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@scope/jsii-calc-lib": "^1.
|
|
45
|
+
"@scope/jsii-calc-lib": "^1.112.0",
|
|
46
46
|
"@types/fs-extra": "^9.0.13",
|
|
47
47
|
"jsii": "^5.8.0",
|
|
48
|
-
"jsii-build-tools": "^1.
|
|
48
|
+
"jsii-build-tools": "^1.112.0",
|
|
49
49
|
"jsii-calc": "^3.20.120"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -2204,7 +2204,12 @@ exports[`jsii-tree --all 1`] = `
|
|
|
2204
2204
|
│ │ ├─┬ static method() method (stable)
|
|
2205
2205
|
│ │ │ ├── static
|
|
2206
2206
|
│ │ │ └── returns: void
|
|
2207
|
-
│ │
|
|
2207
|
+
│ │ ├─┬ static property property (stable)
|
|
2208
|
+
│ │ │ ├── immutable
|
|
2209
|
+
│ │ │ ├── static
|
|
2210
|
+
│ │ │ └── type: number
|
|
2211
|
+
│ │ └─┬ static PROPERTY property (stable)
|
|
2212
|
+
│ │ ├── const
|
|
2208
2213
|
│ │ ├── immutable
|
|
2209
2214
|
│ │ ├── static
|
|
2210
2215
|
│ │ └── type: number
|
|
@@ -2214,7 +2219,12 @@ exports[`jsii-tree --all 1`] = `
|
|
|
2214
2219
|
│ │ ├─┬ static method() method (stable)
|
|
2215
2220
|
│ │ │ ├── static
|
|
2216
2221
|
│ │ │ └── returns: void
|
|
2217
|
-
│ │
|
|
2222
|
+
│ │ ├─┬ static property property (stable)
|
|
2223
|
+
│ │ │ ├── immutable
|
|
2224
|
+
│ │ │ ├── static
|
|
2225
|
+
│ │ │ └── type: number
|
|
2226
|
+
│ │ └─┬ static PROPERTY property (stable)
|
|
2227
|
+
│ │ ├── const
|
|
2218
2228
|
│ │ ├── immutable
|
|
2219
2229
|
│ │ ├── static
|
|
2220
2230
|
│ │ └── type: number
|
|
@@ -5272,12 +5282,14 @@ exports[`jsii-tree --members 1`] = `
|
|
|
5272
5282
|
│ ├─┬ class StaticHelloChild
|
|
5273
5283
|
│ │ └─┬ members
|
|
5274
5284
|
│ │ ├── static method() method
|
|
5275
|
-
│ │
|
|
5285
|
+
│ │ ├── static property property
|
|
5286
|
+
│ │ └── static PROPERTY property
|
|
5276
5287
|
│ ├─┬ class StaticHelloParent
|
|
5277
5288
|
│ │ └─┬ members
|
|
5278
5289
|
│ │ ├── <initializer>() initializer
|
|
5279
5290
|
│ │ ├── static method() method
|
|
5280
|
-
│ │
|
|
5291
|
+
│ │ ├── static property property
|
|
5292
|
+
│ │ └── static PROPERTY property
|
|
5281
5293
|
│ ├─┬ class Statics
|
|
5282
5294
|
│ │ └─┬ members
|
|
5283
5295
|
│ │ ├── <initializer>(value) initializer
|
|
@@ -2381,7 +2381,12 @@ exports[`showAll 1`] = `
|
|
|
2381
2381
|
│ │ ├─┬ static method() method
|
|
2382
2382
|
│ │ │ ├── static
|
|
2383
2383
|
│ │ │ └── returns: void
|
|
2384
|
-
│ │
|
|
2384
|
+
│ │ ├─┬ static property property
|
|
2385
|
+
│ │ │ ├── immutable
|
|
2386
|
+
│ │ │ ├── static
|
|
2387
|
+
│ │ │ └── type: number
|
|
2388
|
+
│ │ └─┬ static PROPERTY property
|
|
2389
|
+
│ │ ├── const
|
|
2385
2390
|
│ │ ├── immutable
|
|
2386
2391
|
│ │ ├── static
|
|
2387
2392
|
│ │ └── type: number
|
|
@@ -2391,7 +2396,12 @@ exports[`showAll 1`] = `
|
|
|
2391
2396
|
│ │ ├─┬ static method() method
|
|
2392
2397
|
│ │ │ ├── static
|
|
2393
2398
|
│ │ │ └── returns: void
|
|
2394
|
-
│ │
|
|
2399
|
+
│ │ ├─┬ static property property
|
|
2400
|
+
│ │ │ ├── immutable
|
|
2401
|
+
│ │ │ ├── static
|
|
2402
|
+
│ │ │ └── type: number
|
|
2403
|
+
│ │ └─┬ static PROPERTY property
|
|
2404
|
+
│ │ ├── const
|
|
2395
2405
|
│ │ ├── immutable
|
|
2396
2406
|
│ │ ├── static
|
|
2397
2407
|
│ │ └── type: number
|
package/test/tree.test.js
CHANGED
|
@@ -43,7 +43,12 @@ class StringWriter {
|
|
|
43
43
|
this.buffer = Buffer.alloc(0);
|
|
44
44
|
}
|
|
45
45
|
write(chunk, _encoding, cb) {
|
|
46
|
-
|
|
46
|
+
if (Buffer.isBuffer(chunk)) {
|
|
47
|
+
this.buffer = Buffer.concat([this.buffer, chunk]);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.buffer = Buffer.concat([this.buffer, Buffer.from(chunk)]);
|
|
51
|
+
}
|
|
47
52
|
if (cb != null) {
|
|
48
53
|
cb();
|
|
49
54
|
}
|