protoobject 2.1.1 → 2.1.2

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 (60) hide show
  1. package/package.json +21 -18
  2. /package/{lib → dist}/cjs/browser.js +0 -0
  3. /package/{lib → dist}/cjs/classes/proto-object-crypto.js +0 -0
  4. /package/{lib → dist}/cjs/classes/proto-object-fs.js +0 -0
  5. /package/{lib → dist}/cjs/classes/proto-object-sqlite.js +0 -0
  6. /package/{lib → dist}/cjs/classes/proto-object-stream.js +0 -0
  7. /package/{lib → dist}/cjs/classes/proto-object-tcp.js +0 -0
  8. /package/{lib → dist}/cjs/classes/proto-object.js +0 -0
  9. /package/{lib → dist}/cjs/decorators/static-implements.js +0 -0
  10. /package/{lib → dist}/cjs/index.js +0 -0
  11. /package/{lib → dist}/cjs/package.json +0 -0
  12. /package/{lib → dist}/cjs/types/any-object.js +0 -0
  13. /package/{lib → dist}/cjs/types/browser-storage.js +0 -0
  14. /package/{lib → dist}/cjs/types/collection-transformer.js +0 -0
  15. /package/{lib → dist}/cjs/types/dynamic-methods.js +0 -0
  16. /package/{lib → dist}/cjs/types/record-transformer.js +0 -0
  17. /package/{lib → dist}/cjs/types/static-methods.js +0 -0
  18. /package/{lib → dist}/cjs/types/unknown-object.js +0 -0
  19. /package/{lib → dist}/cjs/types/validator-function.js +0 -0
  20. /package/{lib → dist}/cjs/utils/protoobject-browser-storage.js +0 -0
  21. /package/{lib → dist}/cjs/utils/protoobject-factory.js +0 -0
  22. /package/{lib → dist}/esm/browser.js +0 -0
  23. /package/{lib → dist}/esm/classes/proto-object-crypto.js +0 -0
  24. /package/{lib → dist}/esm/classes/proto-object-fs.js +0 -0
  25. /package/{lib → dist}/esm/classes/proto-object-sqlite.js +0 -0
  26. /package/{lib → dist}/esm/classes/proto-object-stream.js +0 -0
  27. /package/{lib → dist}/esm/classes/proto-object-tcp.js +0 -0
  28. /package/{lib → dist}/esm/classes/proto-object.js +0 -0
  29. /package/{lib → dist}/esm/decorators/static-implements.js +0 -0
  30. /package/{lib → dist}/esm/index.js +0 -0
  31. /package/{lib → dist}/esm/package.json +0 -0
  32. /package/{lib → dist}/esm/types/any-object.js +0 -0
  33. /package/{lib → dist}/esm/types/browser-storage.js +0 -0
  34. /package/{lib → dist}/esm/types/collection-transformer.js +0 -0
  35. /package/{lib → dist}/esm/types/dynamic-methods.js +0 -0
  36. /package/{lib → dist}/esm/types/record-transformer.js +0 -0
  37. /package/{lib → dist}/esm/types/static-methods.js +0 -0
  38. /package/{lib → dist}/esm/types/unknown-object.js +0 -0
  39. /package/{lib → dist}/esm/types/validator-function.js +0 -0
  40. /package/{lib → dist}/esm/utils/protoobject-browser-storage.js +0 -0
  41. /package/{lib → dist}/esm/utils/protoobject-factory.js +0 -0
  42. /package/{lib → dist/types}/browser.d.ts +0 -0
  43. /package/{lib → dist/types}/classes/proto-object-crypto.d.ts +0 -0
  44. /package/{lib → dist/types}/classes/proto-object-fs.d.ts +0 -0
  45. /package/{lib → dist/types}/classes/proto-object-sqlite.d.ts +0 -0
  46. /package/{lib → dist/types}/classes/proto-object-stream.d.ts +0 -0
  47. /package/{lib → dist/types}/classes/proto-object-tcp.d.ts +0 -0
  48. /package/{lib → dist/types}/classes/proto-object.d.ts +0 -0
  49. /package/{lib → dist/types}/decorators/static-implements.d.ts +0 -0
  50. /package/{lib → dist/types}/index.d.ts +0 -0
  51. /package/{lib → dist/types}/types/any-object.d.ts +0 -0
  52. /package/{lib → dist/types}/types/browser-storage.d.ts +0 -0
  53. /package/{lib → dist/types}/types/collection-transformer.d.ts +0 -0
  54. /package/{lib → dist/types}/types/dynamic-methods.d.ts +0 -0
  55. /package/{lib → dist/types}/types/record-transformer.d.ts +0 -0
  56. /package/{lib → dist/types}/types/static-methods.d.ts +0 -0
  57. /package/{lib → dist/types}/types/unknown-object.d.ts +0 -0
  58. /package/{lib → dist/types}/types/validator-function.d.ts +0 -0
  59. /package/{lib → dist/types}/utils/protoobject-browser-storage.d.ts +0 -0
  60. /package/{lib → dist/types}/utils/protoobject-factory.d.ts +0 -0
package/package.json CHANGED
@@ -1,36 +1,40 @@
1
1
  {
2
2
  "name": "protoobject",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "A universal class for creating any JSON objects and simple manipulations with them.",
5
- "main": "./lib/cjs/index.js",
6
- "module": "./lib/esm/index.js",
7
- "types": "./lib/index.d.ts",
5
+ "main": "./dist/cjs/index.js",
6
+ "module": "./dist/esm/index.js",
7
+ "types": "./dist/types/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": {
11
- "types": "./lib/index.d.ts",
12
- "default": "./lib/esm/index.js"
11
+ "types": "./dist/types/index.d.ts",
12
+ "default": "./dist/esm/index.js"
13
13
  },
14
14
  "require": {
15
- "types": "./lib/index.d.ts",
16
- "default": "./lib/cjs/index.js"
15
+ "types": "./dist/types/index.d.ts",
16
+ "default": "./dist/cjs/index.js"
17
17
  }
18
18
  },
19
19
  "./browser": {
20
20
  "import": {
21
- "types": "./lib/browser.d.ts",
22
- "default": "./lib/esm/browser.js"
21
+ "types": "./dist/types/browser.d.ts",
22
+ "default": "./dist/esm/browser.js"
23
23
  },
24
24
  "require": {
25
- "types": "./lib/browser.d.ts",
26
- "default": "./lib/cjs/browser.js"
25
+ "types": "./dist/types/browser.d.ts",
26
+ "default": "./dist/cjs/browser.js"
27
27
  }
28
28
  },
29
29
  "./package.json": "./package.json"
30
30
  },
31
- "browser": "./lib/esm/browser.js",
31
+ "browser": "./dist/esm/browser.js",
32
32
  "files": [
33
- "lib/**/*"
33
+ "dist/esm/**/*.js{,on}",
34
+ "dist/cjs/**/*.js{,on}",
35
+ "dist/types/**/*",
36
+ "README.md",
37
+ "LICENSE"
34
38
  ],
35
39
  "scripts": {
36
40
  "test": "npm run test:ts && npm run test:js && npm run test:sql && npm run test:sqlite && npm run test:stream && npm run test:crypto && npm run test:fs && npm run test:tcp && npm run test:browser-node && npm run test:transformers",
@@ -48,13 +52,12 @@
48
52
  "cov": "./node_modules/.bin/nyc npm run test:ts",
49
53
  "lint": "./node_modules/.bin/eslint src/**/*.ts",
50
54
  "prebuild": "npm run lint",
51
- "build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types && npm run build:package-json && npm run build:fix-esm",
52
- "build:clean": "rm -rf lib",
55
+ "build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types && npm run build:package-json",
56
+ "build:clean": "rm -rf dist",
53
57
  "build:cjs": "./node_modules/.bin/tsc -p tsconfig.cjs.json",
54
58
  "build:esm": "./node_modules/.bin/tsc -p tsconfig.esm.json",
55
59
  "build:types": "./node_modules/.bin/tsc -p tsconfig.types.json",
56
- "build:package-json": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
57
- "build:fix-esm": "node fix-esm-imports.js",
60
+ "build:package-json": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json && echo '{\"type\":\"module\"}' > dist/esm/package.json",
58
61
  "example:stream-chat:server": "node --import=tsx examples/stream-chat/server.ts",
59
62
  "example:stream-chat:client": "node --import=tsx examples/stream-chat/client.ts",
60
63
  "update": "eval \"$(node -e 'const t = require(`./package.json`);const ignore = require(`./ignoreUpdatesModules.json`);console.log(`npm i ${(Object.keys(t.dependencies || {}).filter((e)=>ignore.base.indexOf(e) === -1).map((e)=>(`${e}@latest`)).join(` `))} --save&&npm i ${(Object.keys(t.devDependencies || {}).filter((e)=>ignore.dev.indexOf(e) === -1).map((e)=>(`${e}@latest`)).join(` `))} --save-dev`);')\""
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes