@gammarers/aws-bucket-object-created-notifier 0.0.46 → 0.0.47
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/.jsii +2 -2
- package/API.md +15 -1
- package/lib/index.js +1 -1
- package/package.json +4 -4
package/.jsii
CHANGED
|
@@ -3729,6 +3729,6 @@
|
|
|
3729
3729
|
"symbolId": "src/index:BukectObjectCreatedNotifier"
|
|
3730
3730
|
}
|
|
3731
3731
|
},
|
|
3732
|
-
"version": "0.0.
|
|
3733
|
-
"fingerprint": "
|
|
3732
|
+
"version": "0.0.47",
|
|
3733
|
+
"fingerprint": "bQBY5XQBd0U7IbNsaQ08/kFOT56rp4y5ORG+B1mzMfg="
|
|
3734
3734
|
}
|
package/API.md
CHANGED
|
@@ -55,7 +55,7 @@ Returns a string representation of this construct.
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
-
#####
|
|
58
|
+
##### `isConstruct` <a name="isConstruct" id="@gammarers/aws-bucket-object-created-notifier.BukectObjectCreatedNotifier.isConstruct"></a>
|
|
59
59
|
|
|
60
60
|
```typescript
|
|
61
61
|
import { BukectObjectCreatedNotifier } from '@gammarers/aws-bucket-object-created-notifier'
|
|
@@ -65,6 +65,20 @@ BukectObjectCreatedNotifier.isConstruct(x: any)
|
|
|
65
65
|
|
|
66
66
|
Checks if `x` is a construct.
|
|
67
67
|
|
|
68
|
+
Use this method instead of `instanceof` to properly detect `Construct`
|
|
69
|
+
instances, even when the construct library is symlinked.
|
|
70
|
+
|
|
71
|
+
Explanation: in JavaScript, multiple copies of the `constructs` library on
|
|
72
|
+
disk are seen as independent, completely different libraries. As a
|
|
73
|
+
consequence, the class `Construct` in each copy of the `constructs` library
|
|
74
|
+
is seen as a different class, and an instance of one class will not test as
|
|
75
|
+
`instanceof` the other class. `npm install` will not create installations
|
|
76
|
+
like this, but users may manually symlink construct libraries together or
|
|
77
|
+
use a monorepo tool: in those cases, multiple copies of the `constructs`
|
|
78
|
+
library can be accidentally installed, and `instanceof` will behave
|
|
79
|
+
unpredictably. It is safest to avoid using `instanceof`, and using
|
|
80
|
+
this type-testing method instead.
|
|
81
|
+
|
|
68
82
|
###### `x`<sup>Required</sup> <a name="x" id="@gammarers/aws-bucket-object-created-notifier.BukectObjectCreatedNotifier.isConstruct.parameter.x"></a>
|
|
69
83
|
|
|
70
84
|
- *Type:* any
|
package/lib/index.js
CHANGED
|
@@ -11,5 +11,5 @@ class BukectObjectCreatedNotifier extends constructs_1.Construct {
|
|
|
11
11
|
}
|
|
12
12
|
exports.BukectObjectCreatedNotifier = BukectObjectCreatedNotifier;
|
|
13
13
|
_a = JSII_RTTI_SYMBOL_1;
|
|
14
|
-
BukectObjectCreatedNotifier[_a] = { fqn: "@gammarers/aws-bucket-object-created-notifier.BukectObjectCreatedNotifier", version: "0.0.
|
|
14
|
+
BukectObjectCreatedNotifier[_a] = { fqn: "@gammarers/aws-bucket-object-created-notifier.BukectObjectCreatedNotifier", version: "0.0.47" };
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSwyQ0FBdUM7QUFFdkMsTUFBYSwyQkFBNEIsU0FBUSxzQkFBUztJQUN4RCxZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ25CLENBQUM7O0FBSEgsa0VBSUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcblxuZXhwb3J0IGNsYXNzIEJ1a2VjdE9iamVjdENyZWF0ZWROb3RpZmllciBleHRlbmRzIENvbnN0cnVjdCB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuICB9XG59Il19
|
package/package.json
CHANGED
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"jest": "^29.7.0",
|
|
49
49
|
"jest-junit": "^16",
|
|
50
50
|
"jsii": "5.5.x",
|
|
51
|
-
"jsii-diff": "^1.
|
|
51
|
+
"jsii-diff": "^1.118.0",
|
|
52
52
|
"jsii-docgen": "^10.5.0",
|
|
53
|
-
"jsii-pacmak": "^1.
|
|
53
|
+
"jsii-pacmak": "^1.118.0",
|
|
54
54
|
"jsii-rosetta": "5.5.x",
|
|
55
|
-
"projen": "^0.98.
|
|
55
|
+
"projen": "^0.98.6",
|
|
56
56
|
"ts-jest": "^29.4.5",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
58
|
"typescript": "5.5.x"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"version": "0.0.
|
|
75
|
+
"version": "0.0.47",
|
|
76
76
|
"jest": {
|
|
77
77
|
"coverageProvider": "v8",
|
|
78
78
|
"testMatch": [
|