constructs
Advanced tools
Comparing version 10.4.0 to 10.4.1
23
API.md
@@ -69,3 +69,2 @@ # API Reference <a name="API Reference" id="api-reference"></a> | ||
| --- | --- | | ||
| <code><a href="#constructs.Construct.createRoot">createRoot</a></code> | Creates a new root construct node. | | ||
| <code><a href="#constructs.Construct.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. | | ||
@@ -75,24 +74,2 @@ | ||
##### `createRoot` <a name="createRoot" id="constructs.Construct.createRoot"></a> | ||
```typescript | ||
import { Construct } from 'constructs' | ||
Construct.createRoot(id?: string) | ||
``` | ||
Creates a new root construct node. | ||
###### `id`<sup>Optional</sup> <a name="id" id="constructs.Construct.createRoot.parameter.id"></a> | ||
- *Type:* string | ||
The scoped construct ID. | ||
Must be unique amongst siblings. If | ||
the ID includes a path separator (`/`), then it will be replaced by double | ||
dash `--`. | ||
--- | ||
##### `isConstruct` <a name="isConstruct" id="constructs.Construct.isConstruct"></a> | ||
@@ -99,0 +76,0 @@ |
@@ -264,10 +264,2 @@ import { IDependable } from './dependency'; | ||
/** | ||
* Creates a new root construct node. | ||
* | ||
* @param id The scoped construct ID. Must be unique amongst siblings. If | ||
* the ID includes a path separator (`/`), then it will be replaced by double | ||
* dash `--`. | ||
*/ | ||
static createRoot(id?: string): Construct; | ||
/** | ||
* The tree node. | ||
@@ -274,0 +266,0 @@ */ |
@@ -367,3 +367,3 @@ "use strict"; | ||
_a = JSII_RTTI_SYMBOL_1; | ||
Node[_a] = { fqn: "constructs.Node", version: "10.4.0" }; | ||
Node[_a] = { fqn: "constructs.Node", version: "10.4.1" }; | ||
/** | ||
@@ -404,12 +404,2 @@ * Separator used to delimit construct path components. | ||
/** | ||
* Creates a new root construct node. | ||
* | ||
* @param id The scoped construct ID. Must be unique amongst siblings. If | ||
* the ID includes a path separator (`/`), then it will be replaced by double | ||
* dash `--`. | ||
*/ | ||
static createRoot(id) { | ||
return new Construct(undefined, id ?? ''); | ||
} | ||
/** | ||
* Creates a new construct node. | ||
@@ -438,3 +428,3 @@ * | ||
_b = JSII_RTTI_SYMBOL_1; | ||
Construct[_b] = { fqn: "constructs.Construct", version: "10.4.0" }; | ||
Construct[_b] = { fqn: "constructs.Construct", version: "10.4.1" }; | ||
/** | ||
@@ -468,2 +458,2 @@ * In what order to return constructs | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RydWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnN0cnVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZDQUF1RDtBQUV2RCx1REFBMEQ7QUFDMUQsaURBQStDO0FBRS9DLE1BQU0sYUFBYSxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsc0JBQXNCLENBQUMsQ0FBQztBQVl6RDs7R0FFRztBQUNILE1BQWEsSUFBSTtJQU1mOzs7OztPQUtHO0lBQ0ksTUFBTSxDQUFDLEVBQUUsQ0FBQyxTQUFxQjtRQUNwQyxPQUFPLFNBQVMsQ0FBQyxJQUFJLENBQUM7SUFDeEIsQ0FBQztJQXlCRCxZQUFvQyxJQUFlLEVBQUUsS0FBaUIsRUFBRSxFQUFVO1FBQTlDLFNBQUksR0FBSixJQUFJLENBQVc7UUFUM0MsWUFBTyxHQUFHLEtBQUssQ0FBQyxDQUFDLHdDQUF3QztRQUNoRCxjQUFTLEdBQWlDLEVBQUcsQ0FBQztRQUM5QyxhQUFRLEdBQTJCLEVBQUcsQ0FBQztRQUN2QyxjQUFTLEdBQUcsSUFBSSxLQUFLLEVBQWlCLENBQUM7UUFDdkMsa0JBQWEsR0FBRyxJQUFJLEdBQUcsRUFBZSxDQUFDO1FBRXZDLGlCQUFZLEdBQUcsSUFBSSxLQUFLLEVBQWUsQ0FBQztRQUl2RCxFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDLHdDQUF3QztRQUV2RCxJQUFJLENB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phdmFTY3JpcHQgZnVuY3Rpb24gdG8gYmVnaW4gdHJhY2luZyBmcm9tLlxuICAgKlxuICAgKiBUaGlzIG9wdGlvbiBpcyBpZ25vcmVkIHVubGVzcyBgc3RhY2tUcmFjZWAgaXMgYHRydWVgLlxuICAgKlxuICAgKiBAZGVmYXVsdCBhZGRNZXRhZGF0YSgpXG4gICAqL1xuICByZWFkb25seSB0cmFjZUZyb21GdW5jdGlvbj86IGFueTtcbn1cblxuLy8gTWFyayBhbGwgaW5zdGFuY2VzIG9mICdDb25zdHJ1Y3QnXG5PYmplY3QuZGVmaW5lUHJvcGVydHkoQ29uc3RydWN0LnByb3RvdHlwZSwgQ09OU1RSVUNUX1NZTSwge1xuICB2YWx1ZTogdHJ1ZSxcbiAgZW51bWVyYWJsZTogZmFsc2UsXG4gIHdyaXRhYmxlOiBmYWxzZSxcbn0pO1xuIl19 |
@@ -36,3 +36,3 @@ "use strict"; | ||
_a = JSII_RTTI_SYMBOL_1; | ||
DependencyGroup[_a] = { fqn: "constructs.DependencyGroup", version: "10.4.0" }; | ||
DependencyGroup[_a] = { fqn: "constructs.DependencyGroup", version: "10.4.1" }; | ||
const DEPENDABLE_SYMBOL = Symbol.for('@aws-cdk/core.DependableTrait'); | ||
@@ -88,3 +88,3 @@ /** | ||
_b = JSII_RTTI_SYMBOL_1; | ||
Dependable[_b] = { fqn: "constructs.Dependable", version: "10.4.0" }; | ||
Dependable[_b] = { fqn: "constructs.Dependable", version: "10.4.1" }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwZW5kZW5jeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kZXBlbmRlbmN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBaUJBOzs7OztHQUtHO0FBQ0gsTUFBYSxlQUFlO0lBRzFCLFlBQVksR0FBRyxJQUFtQjtRQUZqQixVQUFLLE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luc3RhbmNlLlxuICAgKiBAZGVwcmVjYXRlZCB1c2UgYG9mYFxuICAgKi9cbiAgcHVibGljIHN0YXRpYyBnZXQoaW5zdGFuY2U6IElEZXBlbmRhYmxlKTogRGVwZW5kYWJsZSB7XG4gICAgcmV0dXJuIHRoaXMub2YoaW5zdGFuY2UpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRoZSBzZXQgb2YgY29uc3RydWN0cyB0aGF0IGZvcm0gdGhlIHJvb3Qgb2YgdGhpcyBkZXBlbmRhYmxlXG4gICAqXG4gICAqIEFsbCByZXNvdXJjZXMgdW5kZXIgYWxsIHJldHVybmVkIGNvbnN0cnVjdHMgYXJlIGluY2x1ZGVkIGluIHRoZSBvcmRlcmluZ1xuICAgKiBkZXBlbmRlbmN5LlxuICAgKi9cbiAgcHVibGljIGFic3RyYWN0IHJlYWRvbmx5IGRlcGVuZGVuY3lSb290czogSUNvbnN0cnVjdFtdO1xufVxuIl19 |
@@ -78,3 +78,3 @@ { | ||
}, | ||
"version": "10.4.0", | ||
"version": "10.4.1", | ||
"jest": { | ||
@@ -81,0 +81,0 @@ "coverageProvider": "v8", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183222
1044