gs2-cdk 1.0.19 → 1.0.20

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.
@@ -3,9 +3,8 @@ import { ScopedValueResetType } from "./enum/ScopedValueResetType";
3
3
  export default class ScopedValue {
4
4
  private readonly resetType;
5
5
  private readonly value;
6
- private readonly updatedAt;
7
6
  private readonly nextResetAt;
8
- constructor(resetType: ScopedValueResetType, value: number, updatedAt: number, options?: ScopedValueOptions | null);
7
+ constructor(resetType: ScopedValueResetType, value: number, options?: ScopedValueOptions | null);
9
8
  properties(): {
10
9
  [name: string]: any;
11
10
  };
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class ScopedValue {
4
- constructor(resetType, value, updatedAt, options = null) {
4
+ constructor(resetType, value, options = null) {
5
5
  var _a;
6
6
  this.nextResetAt = null;
7
7
  this.resetType = resetType;
8
8
  this.value = value;
9
- this.updatedAt = updatedAt;
10
9
  this.nextResetAt = (_a = options === null || options === void 0 ? void 0 : options.nextResetAt) !== null && _a !== void 0 ? _a : null;
11
10
  }
12
11
  properties() {
@@ -20,9 +19,6 @@ class ScopedValue {
20
19
  if (this.nextResetAt != null) {
21
20
  properties["nextResetAt"] = this.nextResetAt;
22
21
  }
23
- if (this.updatedAt != null) {
24
- properties["updatedAt"] = this.updatedAt;
25
- }
26
22
  return properties;
27
23
  }
28
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScopedValue.js","sourceRoot":"","sources":["ScopedValue.ts"],"names":[],"mappings":";;AAkBA,MAAqB,WAAW;IAM5B,YACI,SAA+B,EAC/B,KAAa,EACb,SAAiB,EACjB,UAAmC,IAAI;;QAN1B,gBAAW,GAAgB,IAAI,CAAC;QAQ7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAA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AAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA/BD,8BA+BC"}
@@ -19,18 +19,15 @@ import { ScopedValueResetType } from "./enum/ScopedValueResetType";
19
19
  export default class ScopedValue {
20
20
  private readonly resetType: ScopedValueResetType;
21
21
  private readonly value: number;
22
- private readonly updatedAt: number;
23
22
  private readonly nextResetAt: number|null = null;
24
23
 
25
24
  public constructor(
26
25
  resetType: ScopedValueResetType,
27
26
  value: number,
28
- updatedAt: number,
29
27
  options: ScopedValueOptions|null = null,
30
28
  ) {
31
29
  this.resetType = resetType;
32
30
  this.value = value;
33
- this.updatedAt = updatedAt;
34
31
  this.nextResetAt = options?.nextResetAt ?? null;
35
32
  }
36
33
 
@@ -47,9 +44,6 @@ export default class ScopedValue {
47
44
  if (this.nextResetAt != null) {
48
45
  properties["nextResetAt"] = this.nextResetAt;
49
46
  }
50
- if (this.updatedAt != null) {
51
- properties["updatedAt"] = this.updatedAt;
52
- }
53
47
 
54
48
  return properties;
55
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"