@gammarers/aws-sns-slack-message-lambda-subscription 1.0.17 → 1.0.19

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 CHANGED
@@ -3971,7 +3971,7 @@
3971
3971
  "stability": "stable"
3972
3972
  },
3973
3973
  "homepage": "https://github.com/gammarers/aws-sns-slack-message-lambda-subscription.git",
3974
- "jsiiVersion": "5.8.18 (build f5c30fc)",
3974
+ "jsiiVersion": "5.8.22 (build 160a3ef)",
3975
3975
  "keywords": [
3976
3976
  "aws",
3977
3977
  "aws-cdk",
@@ -4192,6 +4192,6 @@
4192
4192
  "symbolId": "src/index:SNSSlackMessageLambdaSubscriptionProps"
4193
4193
  }
4194
4194
  },
4195
- "version": "1.0.17",
4196
- "fingerprint": "4QxTfjijc42CD3HOtrHcNI6+W6x23VYDwunHmd2KTPY="
4195
+ "version": "1.0.19",
4196
+ "fingerprint": "tag37tavBMEq/VbLZRCOIxunSQm9GAN9Qf2H87zkuGM="
4197
4197
  }
package/API.md CHANGED
@@ -62,7 +62,7 @@ Returns a string representation of this construct.
62
62
 
63
63
  ---
64
64
 
65
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@gammarers/aws-sns-slack-message-lambda-subscription.SNSSlackMessageLambdaSubscription.isConstruct"></a>
65
+ ##### `isConstruct` <a name="isConstruct" id="@gammarers/aws-sns-slack-message-lambda-subscription.SNSSlackMessageLambdaSubscription.isConstruct"></a>
66
66
 
67
67
  ```typescript
68
68
  import { SNSSlackMessageLambdaSubscription } from '@gammarers/aws-sns-slack-message-lambda-subscription'
@@ -72,6 +72,20 @@ SNSSlackMessageLambdaSubscription.isConstruct(x: any)
72
72
 
73
73
  Checks if `x` is a construct.
74
74
 
75
+ Use this method instead of `instanceof` to properly detect `Construct`
76
+ instances, even when the construct library is symlinked.
77
+
78
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
79
+ disk are seen as independent, completely different libraries. As a
80
+ consequence, the class `Construct` in each copy of the `constructs` library
81
+ is seen as a different class, and an instance of one class will not test as
82
+ `instanceof` the other class. `npm install` will not create installations
83
+ like this, but users may manually symlink construct libraries together or
84
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
85
+ library can be accidentally installed, and `instanceof` will behave
86
+ unpredictably. It is safest to avoid using `instanceof`, and using
87
+ this type-testing method instead.
88
+
75
89
  ###### `x`<sup>Required</sup> <a name="x" id="@gammarers/aws-sns-slack-message-lambda-subscription.SNSSlackMessageLambdaSubscription.isConstruct.parameter.x"></a>
76
90
 
77
91
  - *Type:* any