mnemonica 0.9.93 → 0.9.98

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.
Files changed (53) hide show
  1. package/README.md +40 -13
  2. package/build/api/errors/bindedMethodErrorHandler.js +52 -51
  3. package/build/api/errors/exceptionConstructor.js +98 -98
  4. package/build/api/errors/index.d.ts +1 -1
  5. package/build/api/errors/index.js +51 -48
  6. package/build/api/errors/throwModificationError.js +96 -95
  7. package/build/api/hooks/flowCheckers.d.ts +1 -1
  8. package/build/api/hooks/flowCheckers.js +11 -10
  9. package/build/api/hooks/index.js +7 -7
  10. package/build/api/hooks/invokeHook.js +46 -45
  11. package/build/api/hooks/registerHook.js +19 -18
  12. package/build/api/index.d.ts +1 -1
  13. package/build/api/index.js +9 -9
  14. package/build/api/types/InstanceCreator.d.ts +2 -4
  15. package/build/api/types/InstanceCreator.js +237 -239
  16. package/build/api/types/InstanceModificator.js +10 -8
  17. package/build/api/types/Mnemosyne.d.ts +3 -2
  18. package/build/api/types/Mnemosyne.js +127 -111
  19. package/build/api/types/TypeProxy.js +132 -132
  20. package/build/api/types/addProps.d.ts +1 -0
  21. package/build/api/types/addProps.js +68 -0
  22. package/build/api/types/compileNewModificatorFunctionBody.d.ts +1 -1
  23. package/build/api/types/compileNewModificatorFunctionBody.js +37 -27
  24. package/build/api/types/createInstanceModificator.js +26 -24
  25. package/build/api/types/createInstanceModificator200XthWay.js +29 -28
  26. package/build/api/types/index.js +161 -159
  27. package/build/api/types/obeyConstructor.d.ts +1 -0
  28. package/build/api/types/obeyConstructor.js +30 -0
  29. package/build/api/utils/index.d.ts +20 -8
  30. package/build/api/utils/index.js +122 -122
  31. package/build/constants/index.d.ts +2 -0
  32. package/build/constants/index.js +62 -57
  33. package/build/descriptors/errors/index.js +7 -7
  34. package/build/descriptors/index.js +5 -5
  35. package/build/descriptors/namespaces/index.js +70 -70
  36. package/build/descriptors/types/index.js +141 -141
  37. package/build/index.d.ts +39 -5
  38. package/build/index.js +63 -31
  39. package/build/types/index.d.ts +16 -17
  40. package/build/types/index.js +1 -1
  41. package/build/utils/collectConstructors.js +52 -51
  42. package/build/utils/defineStackCleaner.js +9 -8
  43. package/build/utils/extract.js +16 -15
  44. package/build/utils/hop.js +3 -2
  45. package/build/utils/index.js +27 -27
  46. package/build/utils/merge.js +15 -14
  47. package/build/utils/parent.js +17 -16
  48. package/build/utils/parse.js +42 -41
  49. package/build/utils/pick.js +21 -20
  50. package/build/utils/toJSON.js +27 -26
  51. package/package.json +92 -92
  52. package/build/api/types/InstanceCreatorProto.d.ts +0 -3
  53. package/build/api/types/InstanceCreatorProto.js +0 -88
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defineStackCleaner = void 0;
4
- const errors_1 = require('../descriptors/errors');
5
- const errors_2 = require('../api/errors');
4
+ const errors_1 = require("../descriptors/errors");
5
+ const errors_2 = require("../api/errors");
6
6
  const { WRONG_STACK_CLEANER } = errors_1.ErrorsTypes;
7
- exports.defineStackCleaner = (regexp) => {
8
- if (!(regexp instanceof RegExp)) {
9
- throw new WRONG_STACK_CLEANER;
10
- }
11
- errors_2.stackCleaners.push(regexp);
7
+ const defineStackCleaner = (regexp) => {
8
+ if (!(regexp instanceof RegExp)) {
9
+ throw new WRONG_STACK_CLEANER;
10
+ }
11
+ errors_2.stackCleaners.push(regexp);
12
12
  };
13
+ exports.defineStackCleaner = defineStackCleaner;
@@ -1,19 +1,20 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.extract = void 0;
4
- const errors_1 = require('../descriptors/errors');
4
+ const errors_1 = require("../descriptors/errors");
5
5
  const { WRONG_INSTANCE_INVOCATION } = errors_1.ErrorsTypes;
6
- const hop_1 = require('./hop');
7
- exports.extract = (instance) => {
8
- if (instance !== Object(instance)) {
9
- throw new WRONG_INSTANCE_INVOCATION;
10
- }
11
- const extracted = {};
12
- for (const name in instance) {
13
- if (name === 'constructor' && !hop_1.hop(instance, name)) {
14
- continue;
15
- }
16
- extracted[name] = instance[name];
17
- }
18
- return extracted;
6
+ const hop_1 = require("./hop");
7
+ const extract = (instance) => {
8
+ if (instance !== Object(instance)) {
9
+ throw new WRONG_INSTANCE_INVOCATION;
10
+ }
11
+ const extracted = {};
12
+ for (const name in instance) {
13
+ if (name === 'constructor' && !(0, hop_1.hop)(instance, name)) {
14
+ continue;
15
+ }
16
+ extracted[name] = instance[name];
17
+ }
18
+ return extracted;
19
19
  };
20
+ exports.extract = extract;
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hop = void 0;
4
- exports.hop = (o, p) => Object.prototype.hasOwnProperty.call(o, p);
4
+ const hop = (o, p) => Object.prototype.hasOwnProperty.call(o, p);
5
+ exports.hop = hop;
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defineStackCleaner = exports.utils = void 0;
4
- const collectConstructors_1 = require('./collectConstructors');
5
- const extract_1 = require('./extract');
6
- const parent_1 = require('./parent');
7
- const pick_1 = require('./pick');
8
- const toJSON_1 = require('./toJSON');
9
- const parse_1 = require('./parse');
10
- const merge_1 = require('./merge');
4
+ const collectConstructors_1 = require("./collectConstructors");
5
+ const extract_1 = require("./extract");
6
+ const parent_1 = require("./parent");
7
+ const pick_1 = require("./pick");
8
+ const toJSON_1 = require("./toJSON");
9
+ const parse_1 = require("./parse");
10
+ const merge_1 = require("./merge");
11
11
  const utilsUnWrapped = {
12
- extract : extract_1.extract,
13
- pick : pick_1.pick,
14
- parent : parent_1.parent,
15
- toJSON : toJSON_1.toJSON,
16
- parse : parse_1.parse,
17
- merge : merge_1.merge,
18
- get collectConstructors () {
19
- return collectConstructors_1.collectConstructors;
20
- },
12
+ extract: extract_1.extract,
13
+ pick: pick_1.pick,
14
+ parent: parent_1.parent,
15
+ toJSON: toJSON_1.toJSON,
16
+ parse: parse_1.parse,
17
+ merge: merge_1.merge,
18
+ get collectConstructors() {
19
+ return collectConstructors_1.collectConstructors;
20
+ },
21
21
  };
22
22
  const wrapThis = (method) => {
23
- return function (instance, ...args) {
24
- return method(instance !== undefined ? instance : this, ...args);
25
- };
23
+ return function (instance, ...args) {
24
+ return method(instance !== undefined ? instance : this, ...args);
25
+ };
26
26
  };
27
27
  exports.utils = Object.assign({}, Object.entries(utilsUnWrapped)
28
- .reduce((methods, util) => {
29
- const [name, fn] = util;
30
- methods[name] = wrapThis(fn);
31
- return methods;
32
- }, {}));
33
- var defineStackCleaner_1 = require('./defineStackCleaner');
34
- Object.defineProperty(exports, 'defineStackCleaner', { enumerable : true, get : function () { return defineStackCleaner_1.defineStackCleaner; } });
28
+ .reduce((methods, util) => {
29
+ const [name, fn] = util;
30
+ methods[name] = wrapThis(fn);
31
+ return methods;
32
+ }, {}));
33
+ var defineStackCleaner_1 = require("./defineStackCleaner");
34
+ Object.defineProperty(exports, "defineStackCleaner", { enumerable: true, get: function () { return defineStackCleaner_1.defineStackCleaner; } });
@@ -1,18 +1,19 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.merge = void 0;
4
- const errors_1 = require('../descriptors/errors');
4
+ const errors_1 = require("../descriptors/errors");
5
5
  const { WRONG_ARGUMENTS_USED } = errors_1.ErrorsTypes;
6
- exports.merge = (a, b, ...args) => {
7
- if (a !== Object(a)) {
8
- throw new WRONG_ARGUMENTS_USED('A should be an object');
9
- }
10
- if (b !== Object(b)) {
11
- throw new WRONG_ARGUMENTS_USED('B should be an object');
12
- }
13
- if (typeof a.fork !== 'function') {
14
- throw new WRONG_ARGUMENTS_USED('A should have A.fork()');
15
- }
16
- const aa = a.fork.call(b, ...args);
17
- return aa;
6
+ const merge = (a, b, ...args) => {
7
+ if (a !== Object(a)) {
8
+ throw new WRONG_ARGUMENTS_USED('A should be an object');
9
+ }
10
+ if (b !== Object(b)) {
11
+ throw new WRONG_ARGUMENTS_USED('B should be an object');
12
+ }
13
+ if (typeof a.fork !== 'function') {
14
+ throw new WRONG_ARGUMENTS_USED('A should have A.fork()');
15
+ }
16
+ const aa = a.fork.call(b, ...args);
17
+ return aa;
18
18
  };
19
+ exports.merge = merge;
@@ -1,20 +1,21 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parent = void 0;
4
- const errors_1 = require('../descriptors/errors');
4
+ const errors_1 = require("../descriptors/errors");
5
5
  const { WRONG_INSTANCE_INVOCATION } = errors_1.ErrorsTypes;
6
- exports.parent = (instance, path) => {
7
- if (instance !== Object(instance)) {
8
- throw new WRONG_INSTANCE_INVOCATION;
9
- }
10
- const { __parent__: p } = instance;
11
- if (!p) {
12
- return;
13
- }
14
- if (!path) {
15
- return p;
16
- }
17
- const { constructor: { name } } = p;
18
- return name === path ?
19
- p : exports.parent(p, path);
6
+ const parent = (instance, path) => {
7
+ if (instance !== Object(instance)) {
8
+ throw new WRONG_INSTANCE_INVOCATION;
9
+ }
10
+ const { __parent__: p } = instance;
11
+ if (!p) {
12
+ return;
13
+ }
14
+ if (!path) {
15
+ return p;
16
+ }
17
+ const { constructor: { name } } = p;
18
+ return name === path ?
19
+ p : (0, exports.parent)(p, path);
20
20
  };
21
+ exports.parent = parent;
@@ -1,46 +1,47 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parse = void 0;
4
- const errors_1 = require('../descriptors/errors');
4
+ const errors_1 = require("../descriptors/errors");
5
5
  const { WRONG_MODIFICATION_PATTERN, WRONG_ARGUMENTS_USED } = errors_1.ErrorsTypes;
6
- const constants_1 = require('../constants');
6
+ const constants_1 = require("../constants");
7
7
  const { SymbolGaia } = constants_1.constants;
8
- const extract_1 = require('./extract');
9
- const hop_1 = require('./hop');
10
- exports.parse = (self) => {
11
- if (!self || !self.constructor) {
12
- throw new WRONG_MODIFICATION_PATTERN;
13
- }
14
- const proto = Reflect.getPrototypeOf(self);
15
- if (self.constructor.name !== proto.constructor.name) {
16
- throw new WRONG_ARGUMENTS_USED(`have to use "instance" itself: '${self.constructor.name}' vs '${proto.constructor.name}'`);
17
- }
18
- const protoProto = Reflect.getPrototypeOf(proto);
19
- if (protoProto && proto.constructor.name !== protoProto.constructor.name) {
20
- throw new WRONG_ARGUMENTS_USED(`have to use "instance" itself: '${proto.constructor.name}' vs '${protoProto.constructor.name}'`);
21
- }
22
- const { name } = proto.constructor;
23
- const props = extract_1.extract(Object.assign({}, self));
24
- delete props.constructor;
25
- const joint = extract_1.extract(Object.assign({}, proto));
26
- delete joint.constructor;
27
- let parent;
28
- let gaia;
29
- if (hop_1.hop(protoProto, SymbolGaia)) {
30
- parent = protoProto;
31
- gaia = self[SymbolGaia];
32
- }
33
- else {
34
- parent = exports.parse(Reflect.getPrototypeOf(protoProto));
35
- gaia = parent.gaia;
36
- }
37
- return {
38
- name,
39
- props,
40
- self,
41
- proto,
42
- joint,
43
- parent,
44
- gaia
45
- };
8
+ const extract_1 = require("./extract");
9
+ const hop_1 = require("./hop");
10
+ const parse = (self) => {
11
+ if (!self || !self.constructor) {
12
+ throw new WRONG_MODIFICATION_PATTERN;
13
+ }
14
+ const proto = Reflect.getPrototypeOf(self);
15
+ if (self.constructor.name !== proto.constructor.name) {
16
+ throw new WRONG_ARGUMENTS_USED(`have to use "instance" itself: '${self.constructor.name}' vs '${proto.constructor.name}'`);
17
+ }
18
+ const protoProto = Reflect.getPrototypeOf(proto);
19
+ if (protoProto && proto.constructor.name !== protoProto.constructor.name) {
20
+ throw new WRONG_ARGUMENTS_USED(`have to use "instance" itself: '${proto.constructor.name}' vs '${protoProto.constructor.name}'`);
21
+ }
22
+ const { name } = proto.constructor;
23
+ const props = (0, extract_1.extract)(Object.assign({}, self));
24
+ delete props.constructor;
25
+ const joint = (0, extract_1.extract)(Object.assign({}, proto));
26
+ delete joint.constructor;
27
+ let parent;
28
+ let gaia;
29
+ if ((0, hop_1.hop)(protoProto, SymbolGaia)) {
30
+ parent = protoProto;
31
+ gaia = self[SymbolGaia];
32
+ }
33
+ else {
34
+ parent = (0, exports.parse)(Reflect.getPrototypeOf(protoProto));
35
+ gaia = parent.gaia;
36
+ }
37
+ return {
38
+ name,
39
+ props,
40
+ self,
41
+ proto,
42
+ joint,
43
+ parent,
44
+ gaia
45
+ };
46
46
  };
47
+ exports.parse = parse;
@@ -1,24 +1,25 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pick = void 0;
4
- const errors_1 = require('../descriptors/errors');
4
+ const errors_1 = require("../descriptors/errors");
5
5
  const { WRONG_INSTANCE_INVOCATION } = errors_1.ErrorsTypes;
6
- exports.pick = (instance, ...args) => {
7
- if (instance !== Object(instance)) {
8
- throw new WRONG_INSTANCE_INVOCATION;
9
- }
10
- const props = args.reduce((arr, el) => {
11
- if (Array.isArray(el)) {
12
- arr.push(...el);
13
- }
14
- else {
15
- arr.push(el);
16
- }
17
- return arr;
18
- }, []);
19
- const picked = props.reduce((obj, name) => {
20
- obj[name] = instance[name];
21
- return obj;
22
- }, {});
23
- return picked;
6
+ const pick = (instance, ...args) => {
7
+ if (instance !== Object(instance)) {
8
+ throw new WRONG_INSTANCE_INVOCATION;
9
+ }
10
+ const props = args.reduce((arr, el) => {
11
+ if (Array.isArray(el)) {
12
+ arr.push(...el);
13
+ }
14
+ else {
15
+ arr.push(el);
16
+ }
17
+ return arr;
18
+ }, []);
19
+ const picked = props.reduce((obj, name) => {
20
+ obj[name] = instance[name];
21
+ return obj;
22
+ }, {});
23
+ return picked;
24
24
  };
25
+ exports.pick = pick;
@@ -1,29 +1,30 @@
1
1
  'use strict';
2
- Object.defineProperty(exports, '__esModule', { value : true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toJSON = void 0;
4
- const extract_1 = require('./extract');
5
- exports.toJSON = (instance) => {
6
- const extracted = extract_1.extract(instance);
7
- return Object.entries(extracted).reduce((o, entry) => {
8
- const [name, _value] = entry;
9
- if ([null, undefined].includes(_value)) {
10
- return o;
11
- }
12
- let value;
13
- try {
14
- value = JSON.stringify(_value);
15
- }
16
- catch (error) {
17
- const description = 'This value type is not supported by JSON.stringify';
18
- const { stack, message } = error;
19
- value = JSON.stringify({
20
- description,
21
- stack,
22
- message
23
- });
24
- }
25
- o += `"${name}":${value},`;
26
- return o;
27
- }, '{')
28
- .replace(/,$/, '}');
4
+ const extract_1 = require("./extract");
5
+ const toJSON = (instance) => {
6
+ const extracted = (0, extract_1.extract)(instance);
7
+ return Object.entries(extracted).reduce((o, entry) => {
8
+ const [name, _value] = entry;
9
+ if ([null, undefined].includes(_value)) {
10
+ return o;
11
+ }
12
+ let value;
13
+ try {
14
+ value = JSON.stringify(_value);
15
+ }
16
+ catch (error) {
17
+ const description = 'This value type is not supported by JSON.stringify';
18
+ const { stack, message } = error;
19
+ value = JSON.stringify({
20
+ description,
21
+ stack,
22
+ message
23
+ });
24
+ }
25
+ o += `"${name}":${value},`;
26
+ return o;
27
+ }, '{')
28
+ .replace(/,$/, '}');
29
29
  };
30
+ exports.toJSON = toJSON;
package/package.json CHANGED
@@ -1,94 +1,94 @@
1
1
  {
2
- "name": "mnemonica",
3
- "version": "0.9.93",
4
- "description": "abstract technique that aids information retention : instance inheritance system",
5
- "type": "commonjs",
6
- "main": "./build/index.js",
7
- "exports": {
8
- ".": "./build/index.js",
9
- "./module": {
10
- "import": "./module/index.js",
11
- "browser": "./module/index.js",
12
- "require": "./build/index.js",
13
- "default": "./build/index.js"
14
- }
15
- },
16
- "files": [
17
- "README.md",
18
- "LICENSE",
19
- "module",
20
- "build"
21
- ],
22
- "directories": {
23
- "build": "build/",
24
- "module": "module/"
25
- },
26
- "contributors": [
27
- "laplandin <laplandin.denis@gmail.com>",
28
- "petrgrishin <iam@petrgrishin.com>",
29
- "Goodluckhf <Goodluckhf@yandex.ru>"
30
- ],
31
- "scripts": {
32
- "build": "rm -rf ./build && npx tsc --pretty && npm run lint && npm run lint:test",
33
- "watch": "npx tsc --pretty -w",
34
- "test": "npm run build && mocha --allow-uncaught test/index.js",
35
- "test:cov:dev": "npm run build && nyc --reporter=text mocha --allow-uncaught --ui bdd --reporter spec ./test/index.js",
36
- "test:cov": "npm run build && nyc --reporter=lcov mocha --allow-uncaught --ui bdd --reporter spec ./test/index.js",
37
- "test:mjs": "npm run build && node --experimental-modules ./test/test.mjs",
38
- "debug": "npx tsc --pretty --sourceMap && npx mocha --allow-uncaught --reporter spec --inspect-brk test/index",
39
- "report-coverage": "cat coverage/lcov.info | coveralls",
40
- "example": "npm run build && node ./test/example.js",
41
- "lint": "npx eslint --fix --ignore-path .gitignore ./build",
42
- "lint:test": "npx eslint --fix --ignore-path .gitignore ./test",
43
- "ts:example": "npx tsc ./test-ts/*.ts && npx eslint --fix ./test-ts/*.js && node ./test-ts/test-no-types.js && node ./test-ts/test-with-types.js",
44
- "ts:lint": "npx tslint --fix --ignore-path .gitignore ./src"
45
- },
46
- "repository": {
47
- "type": "git",
48
- "url": "git+https://github.com/wentout/mnemonica.git"
49
- },
50
- "keywords": [
51
- "ETL",
52
- "DFD",
53
- "inheritance",
54
- "mnemonica"
55
- ],
56
- "author": "went.out@gmail.com",
57
- "license": "MIT",
58
- "bugs": {
59
- "url": "https://github.com/wentout/mnemonica/issues"
60
- },
61
- "lint-staged": {
62
- "*.js": "eslint --fix --ignore-path .gitignore"
63
- },
64
- "homepage": "https://github.com/wentout/mnemonica#readme",
65
- "devDependencies": {
66
- "@types/node": "^13.13.21",
67
- "@typescript-eslint/eslint-plugin": "^2.33.0",
68
- "@typescript-eslint/parser": "^2.33.0",
69
- "chai": "^4.2.0",
70
- "coveralls": "^3.1.0",
71
- "eslint": "^6.8.0",
72
- "eslint-config-prettier": "^6.11.0",
73
- "eslint-plugin-import": "^2.22.0",
74
- "eslint-plugin-mocha": "^5.2.0",
75
- "eslint-plugin-no-arrow-this": "^1.2.0",
76
- "eslint-plugin-prettier": "^3.1.4",
77
- "husky": "^3.0.5",
78
- "lint-staged": "^9.2.5",
79
- "mocha": "^7.2.0",
80
- "mocha-lcov-reporter": "^1.3.0",
81
- "nyc": "^14.1.1",
82
- "tslint": "^6.1.3",
83
- "typescript": "^4.0.3"
84
- },
85
- "engines": {
86
- "node": ">=8.7"
87
- },
88
- "husky": {
89
- "hooks": {
90
- "pre-commit": "lint-staged"
91
- }
92
- },
93
- "dependencies": {}
2
+ "name": "mnemonica",
3
+ "version": "0.9.98",
4
+ "description": "abstract technique that aids information retention : instance inheritance system",
5
+ "type": "commonjs",
6
+ "main": "./build/index.js",
7
+ "exports": {
8
+ ".": "./build/index.js",
9
+ "./module": {
10
+ "import": "./module/index.js",
11
+ "browser": "./module/index.js",
12
+ "require": "./build/index.js",
13
+ "default": "./build/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "README.md",
18
+ "LICENSE",
19
+ "module",
20
+ "build"
21
+ ],
22
+ "directories": {
23
+ "build": "build/",
24
+ "module": "module/"
25
+ },
26
+ "contributors": [
27
+ "laplandin <laplandin.denis@gmail.com>",
28
+ "petrgrishin <iam@petrgrishin.com>",
29
+ "Goodluckhf <Goodluckhf@yandex.ru>"
30
+ ],
31
+ "scripts": {
32
+ "build": "rm -rf ./build && npx tsc --pretty && npm run lint && npm run lint:test",
33
+ "example": "npm run build && node ./test/example.js",
34
+ "example:ts": "npx tsc ./test-ts/*.ts && npx eslint --fix ./test-ts/*.js && node ./test-ts/test-no-types.js && node ./test-ts/test-with-types.js",
35
+ "lint": "npx eslint --fix",
36
+ "lint:test": "npx eslint --fix ./test",
37
+ "test": "npm run build && mocha --allow-uncaught test/index.js",
38
+ "test:cov": "npm run build && nyc --reporter=lcov mocha --allow-uncaught --ui bdd --reporter spec ./test/index.js",
39
+ "test:debug": "npx tsc --pretty --sourceMap && npx mocha --allow-uncaught --reporter spec --inspect-brk test/index",
40
+ "test:jest": "npx jest",
41
+ "test:jest:cov": "npx jest --collectCoverage",
42
+ "test:jest:debug": "npx --node-arg=--inspect-brk jest",
43
+ "test:mjs": "npm run build && node --experimental-modules ./test/test.mjs",
44
+ "watch": "npx tsc --pretty -w"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/wentout/mnemonica.git"
49
+ },
50
+ "keywords": [
51
+ "ETL",
52
+ "DFD",
53
+ "inheritance",
54
+ "mnemonica"
55
+ ],
56
+ "author": "went.out@gmail.com",
57
+ "license": "MIT",
58
+ "bugs": {
59
+ "url": "https://github.com/wentout/mnemonica/issues"
60
+ },
61
+ "lint-staged": {
62
+ "*.js": "eslint --fix"
63
+ },
64
+ "homepage": "https://github.com/wentout/mnemonica#readme",
65
+ "devDependencies": {
66
+ "@types/jest": "^29.5.8",
67
+ "@types/node": "^18.18.9",
68
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
69
+ "@typescript-eslint/parser": "^5.62.0",
70
+ "chai": "^4.3.10",
71
+ "eslint": "^8.53.0",
72
+ "eslint-plugin-import": "^2.29.0",
73
+ "eslint-plugin-mocha": "^10.2.0",
74
+ "eslint-plugin-no-arrow-this": "^1.2.0",
75
+ "husky": "^8.0.3",
76
+ "jest": "^29.7.0",
77
+ "json5": "^2.2.3",
78
+ "lint-staged": "^13.3.0",
79
+ "mocha": "^10.2.0",
80
+ "mocha-lcov-reporter": "^1.3.0",
81
+ "nyc": "^15.1.0",
82
+ "ts-jest": "^29.1.1",
83
+ "typescript": "^5.2.2",
84
+ "yaml": "^2.3.4"
85
+ },
86
+ "engines": {
87
+ "node": ">=14"
88
+ },
89
+ "husky": {
90
+ "hooks": {
91
+ "pre-commit": "lint-staged"
92
+ }
93
+ }
94
94
  }
@@ -1,3 +0,0 @@
1
- export declare const addProps: (this: any) => void;
2
- export declare const undefineParentSubTypes: (this: any) => void;
3
- export declare const proceedProto: (this: any) => void;