gs2-cdk 1.0.40 → 1.0.41

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.
@@ -6,7 +6,7 @@ export default class SlotWithSignature {
6
6
  private readonly body;
7
7
  private readonly signature;
8
8
  private readonly metadata;
9
- constructor(name: string, propertyType: SlotWithSignaturePropertyType, body: string, signature: string, options?: SlotWithSignatureOptions | null);
9
+ constructor(name: string, propertyType: SlotWithSignaturePropertyType, options?: SlotWithSignatureOptions | null);
10
10
  properties(): {
11
11
  [name: string]: any;
12
12
  };
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class SlotWithSignature {
4
- constructor(name, propertyType, body, signature, options = null) {
5
- var _a;
4
+ constructor(name, propertyType, options = null) {
5
+ var _a, _b, _c;
6
+ this.body = null;
7
+ this.signature = null;
6
8
  this.metadata = null;
7
9
  this.name = name;
8
10
  this.propertyType = propertyType;
9
- this.body = body;
10
- this.signature = signature;
11
- this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
11
+ this.body = (_a = options === null || options === void 0 ? void 0 : options.body) !== null && _a !== void 0 ? _a : null;
12
+ this.signature = (_b = options === null || options === void 0 ? void 0 : options.signature) !== null && _b !== void 0 ? _b : null;
13
+ this.metadata = (_c = options === null || options === void 0 ? void 0 : options.metadata) !== null && _c !== void 0 ? _c : null;
12
14
  }
13
15
  properties() {
14
16
  let properties = {};
@@ -1 +1 @@
1
- {"version":3,"file":"SlotWithSignature.js","sourceRoot":"","sources":["SlotWithSignature.ts"],"names":[],"mappings":";;AAkBA,MAAqB,iBAAiB;IAOlC,YACI,IAAY,EACZ,YAA2C,EAC3C,IAAY,EACZ,SAAiB,EACjB,UAAyC,IAAI;;QAPhC,aAAQ,GAAgB,IAAI,CAAC;QAS1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,YAAY,G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;QACjC,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzCD,oCAyCC"}
@@ -19,21 +19,19 @@ import { SlotWithSignaturePropertyType } from "./enum/SlotWithSignaturePropertyT
19
19
  export default class SlotWithSignature {
20
20
  private readonly name: string;
21
21
  private readonly propertyType: SlotWithSignaturePropertyType;
22
- private readonly body: string;
23
- private readonly signature: string;
22
+ private readonly body: string|null = null;
23
+ private readonly signature: string|null = null;
24
24
  private readonly metadata: string|null = null;
25
25
 
26
26
  public constructor(
27
27
  name: string,
28
28
  propertyType: SlotWithSignaturePropertyType,
29
- body: string,
30
- signature: string,
31
29
  options: SlotWithSignatureOptions|null = null,
32
30
  ) {
33
31
  this.name = name;
34
32
  this.propertyType = propertyType;
35
- this.body = body;
36
- this.signature = signature;
33
+ this.body = options?.body ?? null;
34
+ this.signature = options?.signature ?? null;
37
35
  this.metadata = options?.metadata ?? null;
38
36
  }
39
37
 
@@ -1,3 +1,5 @@
1
1
  export interface SlotWithSignatureOptions {
2
+ body?: string | null;
3
+ signature?: string | null;
2
4
  metadata?: string | null;
3
5
  }
@@ -16,6 +16,8 @@
16
16
  import { SlotWithSignaturePropertyType } from "../enum/SlotWithSignaturePropertyType";
17
17
 
18
18
  export interface SlotWithSignatureOptions {
19
+ body?: string|null;
20
+ signature?: string|null;
19
21
  metadata?: string|null;
20
22
  }
21
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"