@blackglory/structures 0.2.6 → 0.2.7

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.
@@ -0,0 +1,6 @@
1
+ export declare class Box<T> {
2
+ #private;
3
+ constructor(value: T);
4
+ set(value: T): void;
5
+ get(): T;
6
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Box_value;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Box = void 0;
16
+ class Box {
17
+ constructor(value) {
18
+ _Box_value.set(this, void 0);
19
+ __classPrivateFieldSet(this, _Box_value, value, "f");
20
+ }
21
+ set(value) {
22
+ __classPrivateFieldSet(this, _Box_value, value, "f");
23
+ }
24
+ get() {
25
+ return __classPrivateFieldGet(this, _Box_value, "f");
26
+ }
27
+ }
28
+ exports.Box = Box;
29
+ _Box_value = new WeakMap();
30
+ //# sourceMappingURL=box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.js","sourceRoot":"","sources":["../../src/box.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,MAAa,GAAG;IAGd,YAAY,KAAQ;QAFpB,6BAAS;QAGP,uBAAA,IAAI,cAAU,KAAK,MAAA,CAAA;IACrB,CAAC;IAED,GAAG,CAAC,KAAQ;QACV,uBAAA,IAAI,cAAU,KAAK,MAAA,CAAA;IACrB,CAAC;IAED,GAAG;QACD,OAAO,uBAAA,IAAI,kBAAO,CAAA;IACpB,CAAC;CACF;AAdD,kBAcC"}
@@ -1,3 +1,4 @@
1
+ export * from './box';
1
2
  export * from './cons';
2
3
  export * from './emitter';
3
4
  export * from './hash-map';
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./box"), exports);
13
14
  __exportStar(require("./cons"), exports);
14
15
  __exportStar(require("./emitter"), exports);
15
16
  __exportStar(require("./hash-map"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,0CAAuB;AACvB,4CAAyB;AACzB,kDAA+B;AAC/B,6CAA0B;AAC1B,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,0CAAuB;AACvB,4CAAyB;AACzB,kDAA+B;AAC/B,6CAA0B;AAC1B,6CAA0B"}
@@ -0,0 +1,6 @@
1
+ export declare class Box<T> {
2
+ #private;
3
+ constructor(value: T);
4
+ set(value: T): void;
5
+ get(): T;
6
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _Box_value;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Box = void 0;
16
+ class Box {
17
+ constructor(value) {
18
+ _Box_value.set(this, void 0);
19
+ __classPrivateFieldSet(this, _Box_value, value, "f");
20
+ }
21
+ set(value) {
22
+ __classPrivateFieldSet(this, _Box_value, value, "f");
23
+ }
24
+ get() {
25
+ return __classPrivateFieldGet(this, _Box_value, "f");
26
+ }
27
+ }
28
+ exports.Box = Box;
29
+ _Box_value = new WeakMap();
30
+ //# sourceMappingURL=box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.js","sourceRoot":"","sources":["../../src/box.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,MAAa,GAAG;IAGd,YAAY,KAAQ;QAFpB,6BAAS;QAGP,uBAAA,IAAI,cAAU,KAAK,MAAA,CAAA;IACrB,CAAC;IAED,GAAG,CAAC,KAAQ;QACV,uBAAA,IAAI,cAAU,KAAK,MAAA,CAAA;IACrB,CAAC;IAED,GAAG;QACD,OAAO,uBAAA,IAAI,kBAAO,CAAA;IACpB,CAAC;CACF;AAdD,kBAcC"}
@@ -1,3 +1,4 @@
1
+ export * from './box';
1
2
  export * from './cons';
2
3
  export * from './emitter';
3
4
  export * from './hash-map';
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./box"), exports);
13
14
  __exportStar(require("./cons"), exports);
14
15
  __exportStar(require("./emitter"), exports);
15
16
  __exportStar(require("./hash-map"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,0CAAuB;AACvB,4CAAyB;AACzB,kDAA+B;AAC/B,6CAA0B;AAC1B,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,0CAAuB;AACvB,4CAAyB;AACzB,kDAA+B;AAC/B,6CAA0B;AAC1B,6CAA0B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackglory/structures",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib",
@@ -13,8 +13,8 @@
13
13
  "license": "MIT",
14
14
  "scripts": {
15
15
  "lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src __tests__",
16
- "test": "jest --config jest.config.js",
17
- "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
16
+ "test": "jest --runInBand --config jest.config.js",
17
+ "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --config jest.config.js",
18
18
  "test:coverage": "jest --coverage --config jest.config.js",
19
19
  "prepublishOnly": "run-s clean build bundle",
20
20
  "clean": "run-p clean:*",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "husky": {
34
34
  "hooks": {
35
- "pre-commit": "run-s lint test",
35
+ "pre-commit": "run-s lint build test",
36
36
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
37
37
  }
38
38
  },
@@ -41,36 +41,36 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@blackglory/jest-matchers": "^0.1.21",
44
- "@commitlint/cli": "^13.2.1",
45
- "@commitlint/config-conventional": "^13.2.0",
46
- "@rollup/plugin-commonjs": "^21.0.0",
44
+ "@commitlint/cli": "^15.0.0",
45
+ "@commitlint/config-conventional": "^15.0.0",
46
+ "@rollup/plugin-commonjs": "^21.0.1",
47
47
  "@rollup/plugin-json": "^4.1.0",
48
- "@rollup/plugin-node-resolve": "^13.0.5",
48
+ "@rollup/plugin-node-resolve": "^13.0.6",
49
49
  "@rollup/plugin-replace": "^3.0.0",
50
- "@rollup/plugin-typescript": "^8.2.5",
51
- "@types/jest": "^27.0.2",
52
- "@types/node": "^16.10.9",
53
- "@typescript-eslint/eslint-plugin": "^5.0.0",
54
- "@typescript-eslint/parser": "^5.0.0",
55
- "eslint": "^8.0.1",
56
- "extra-promise": "^0.19.0",
50
+ "@rollup/plugin-typescript": "^8.3.0",
51
+ "@types/jest": "^27.0.3",
52
+ "@types/node": "^16.11.12",
53
+ "@typescript-eslint/eslint-plugin": "^5.6.0",
54
+ "@typescript-eslint/parser": "^5.6.0",
55
+ "eslint": "^8.4.1",
56
+ "extra-promise": "^0.19.4",
57
57
  "husky": "^4.3.8",
58
58
  "iterable-operator": "^0.14.4",
59
- "jest": "^27.2.5",
59
+ "jest": "^27.4.4",
60
60
  "npm-run-all": "^4.1.5",
61
61
  "rimraf": "^3.0.2",
62
- "rollup": "^2.58.0",
62
+ "rollup": "^2.61.1",
63
63
  "rollup-plugin-analyzer": "^4.0.0",
64
64
  "rollup-plugin-terser": "^7.0.2",
65
- "standard-version": "^9.3.1",
66
- "ts-jest": "^27.0.5",
65
+ "standard-version": "^9.3.2",
66
+ "ts-jest": "^27.1.1",
67
67
  "tscpaths": "^0.0.9",
68
68
  "tslib": "^2.3.1",
69
- "typescript": "^4.4.4"
69
+ "typescript": "^4.5.3"
70
70
  },
71
71
  "dependencies": {
72
72
  "@blackglory/errors": "^1.1.2",
73
- "extra-timers": "^0.2.2",
73
+ "extra-timers": "^0.2.4",
74
74
  "justypes": "^0.1.6"
75
75
  }
76
76
  }