eth-crypto-ts 0.0.1 → 0.0.3

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 (43) hide show
  1. package/dist/constants/index.d.ts +2 -0
  2. package/dist/index.cjs.js +215 -0
  3. package/dist/index.cjs.js.map +1 -0
  4. package/{src/index.ts → dist/index.d.ts} +4 -2
  5. package/dist/index.esm.js +196 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/index.js +196 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/lib/cipher/index.d.ts +11 -0
  10. package/dist/lib/compress-public-key.d.ts +1 -0
  11. package/dist/lib/create-identity.d.ts +16 -0
  12. package/dist/lib/decompress-public-key.d.ts +1 -0
  13. package/dist/lib/decrypt-with-private-key.d.ts +2 -0
  14. package/dist/lib/encrypt-with-private-key.d.ts +2 -0
  15. package/dist/lib/hash/index.d.ts +4 -0
  16. package/dist/lib/public-key-by-private-key.d.ts +8 -0
  17. package/dist/lib/recover-public-key.d.ts +7 -0
  18. package/dist/lib/sign.d.ts +8 -0
  19. package/dist/lib/utils.d.ts +4 -0
  20. package/dist/types/index.d.ts +10 -0
  21. package/package.json +16 -2
  22. package/.eslintrc.js +0 -21
  23. package/.github/workflows/cd.yml +0 -43
  24. package/.github/workflows/ci.yml +0 -37
  25. package/.nvmrc +0 -1
  26. package/.prettierrc +0 -7
  27. package/.releaserc.json +0 -22
  28. package/audit-ci.jsonc +0 -7
  29. package/rollup.config.js +0 -76
  30. package/src/constants/index.ts +0 -3
  31. package/src/lib/cipher/index.ts +0 -46
  32. package/src/lib/compress-public-key.ts +0 -10
  33. package/src/lib/create-identity.ts +0 -41
  34. package/src/lib/decompress-public-key.ts +0 -14
  35. package/src/lib/decrypt-with-private-key.ts +0 -23
  36. package/src/lib/encrypt-with-private-key.ts +0 -23
  37. package/src/lib/hash/index.ts +0 -20
  38. package/src/lib/public-key-by-private-key.ts +0 -18
  39. package/src/lib/recover-public-key.ts +0 -30
  40. package/src/lib/sign.ts +0 -24
  41. package/src/lib/utils.ts +0 -19
  42. package/src/types/index.ts +0 -11
  43. package/tsconfig.json +0 -25
package/tsconfig.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "preventAssignment": true,
3
- "include": ["src", "src/types"],
4
- "exclude": ["node_modules", "**/*spec.ts", "**/*test.ts", "/test", "/tests", "test", "**/*__mocks__/*"],
5
- "compilerOptions": {
6
- "target": "ESNext",
7
- "moduleResolution": "node", // use Node's module resolution algorithm, instead of the legacy TS one
8
- "module": "esnext",
9
- "lib": ["dom", "esnext"],
10
- "rootDir": "./src",
11
- "baseUrl": "./",
12
- "outDir": "./dist",
13
- "sourceMap": true,
14
- "declaration": true, // output .d.ts declaration files for consumers
15
- "allowJs": true,
16
- "importHelpers": true,
17
- "strict": true, // stricter type-checking for stronger correctness. Recommended by TS
18
- "noImplicitReturns": true, // linter checks for common issues
19
- "noFallthroughCasesInSwitch": true,
20
- "noUnusedParameters": true,
21
- "esModuleInterop": true, // interop between ESM and CJS modules. Recommended by TS
22
- "skipLibCheck": true, // significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS
23
- "forceConsistentCasingInFileNames": true // error out if import and file system have a casing mismatch. Recommended by TS
24
- }
25
- }