prototype-helper 0.3.9 → 0.3.11

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 (44) hide show
  1. package/.vscode/settings.json +6 -6
  2. package/LICENSE +21 -21
  3. package/README.md +198 -198
  4. package/dist/extension/array.d.ts +1 -1
  5. package/dist/extension/array.js +103 -103
  6. package/dist/extension/index.d.ts +4 -4
  7. package/dist/extension/index.js +6 -6
  8. package/dist/extension/number.d.ts +1 -1
  9. package/dist/extension/number.js +71 -71
  10. package/dist/extension/number.test.d.ts +3 -3
  11. package/dist/extension/number.test.js +21 -21
  12. package/dist/extension/object.d.ts +1 -1
  13. package/dist/extension/object.js +12 -12
  14. package/dist/extension/string.d.ts +22 -18
  15. package/dist/extension/string.js +44 -38
  16. package/dist/extension/string.js.map +1 -1
  17. package/dist/extension/string.test.d.ts +2 -2
  18. package/dist/extension/string.test.js +17 -17
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +5 -5
  21. package/dist/interface/array.d.ts +19 -19
  22. package/dist/interface/array.js +1 -1
  23. package/dist/interface/index.d.ts +3 -3
  24. package/dist/interface/index.js +5 -5
  25. package/dist/interface/number.d.ts +23 -23
  26. package/dist/interface/number.js +1 -1
  27. package/dist/interface/object.js +5 -5
  28. package/dist/override/console.d.ts +17 -17
  29. package/dist/override/console.js +70 -70
  30. package/dist/override/index.d.ts +3 -3
  31. package/dist/override/index.js +5 -5
  32. package/dist/override/linq.d.ts +1 -1
  33. package/dist/override/linq.js +2 -2
  34. package/dist/override/math.d.ts +10 -10
  35. package/dist/override/math.js +38 -38
  36. package/dist/test.d.ts +1 -1
  37. package/dist/test.js +115 -105
  38. package/dist/test.js.map +1 -1
  39. package/package.json +12 -11
  40. package/pnpm-lock.yaml +4329 -0
  41. package/tsconfig.json +32 -32
  42. package/dist/utils/deepCopy.d.ts +0 -2
  43. package/dist/utils/deepCopy.js +0 -14
  44. package/dist/utils/deepCopy.js.map +0 -1
package/tsconfig.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "outDir": "./dist",
5
- "target": "ES2016",
6
- "module": "commonjs",
7
- "moduleResolution": "Node",
8
- "sourceMap": true,
9
- "lib": ["es2016"],
10
- "paths": {
11
- "@/*": ["/src/*"],
12
- "~/*": ["/src/*"]
13
- },
14
- "noImplicitAny": false,
15
- "esModuleInterop": true,
16
- "experimentalDecorators": true,
17
- "emitDecoratorMetadata": true,
18
- "strict": true,
19
- "allowSyntheticDefaultImports": true,
20
- "resolveJsonModule": true,
21
- "declaration": true
22
- },
23
- "include": ["./src/**/*.ts"],
24
- "exclude": ["node_modules", "**/*.spec.ts"],
25
- "typeRoots": ["./node_modules/@types"],
26
- "types": ["@types/node"],
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/k22pr/ts-proto"
30
- },
31
- "license": "MIT"
32
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "outDir": "./dist",
5
+ "target": "ES2016",
6
+ "module": "commonjs",
7
+ "moduleResolution": "Node",
8
+ "sourceMap": true,
9
+ "lib": ["es2016"],
10
+ "paths": {
11
+ "@/*": ["/src/*"],
12
+ "~/*": ["/src/*"]
13
+ },
14
+ "noImplicitAny": false,
15
+ "esModuleInterop": true,
16
+ "experimentalDecorators": true,
17
+ "emitDecoratorMetadata": true,
18
+ "strict": true,
19
+ "allowSyntheticDefaultImports": true,
20
+ "resolveJsonModule": true,
21
+ "declaration": true
22
+ },
23
+ "include": ["./src/**/*.ts"],
24
+ "exclude": ["node_modules", "**/*.spec.ts"],
25
+ "typeRoots": ["./node_modules/@types"],
26
+ "types": ["@types/node"],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/k22pr/ts-proto"
30
+ },
31
+ "license": "MIT"
32
+ }
@@ -1,2 +0,0 @@
1
- declare function deepClone(obj: any): any;
2
- export default deepClone;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function deepClone(obj) {
4
- if (obj === null || typeof obj !== "object") {
5
- return obj;
6
- }
7
- const result = Array.isArray(obj) ? [] : {};
8
- for (let key of Object.keys(obj)) {
9
- result[key] = deepClone(obj[key]);
10
- }
11
- return result;
12
- }
13
- exports.default = deepClone;
14
- //# sourceMappingURL=deepCopy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deepCopy.js","sourceRoot":"","sources":["../../src/utils/deepCopy.ts"],"names":[],"mappings":";;AAAA,SAAS,SAAS,CAAC,GAAQ;IACzB,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3C,OAAO,GAAG,CAAC;KACZ;IAED,MAAM,MAAM,GAAQ,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjD,KAAK,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAChC,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KACnC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,kBAAe,SAAS,CAAC"}