@pdg/crypto 1.0.4 → 1.0.6

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.
package/dist/sha1.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { BinaryToTextEncoding } from 'crypto';
1
+ import { type BinaryToTextEncoding } from 'crypto';
2
2
  export declare function sha1(text: string, encoding?: BinaryToTextEncoding): string;
3
3
  export default sha1;
package/dist/sha256.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { BinaryToTextEncoding } from 'crypto';
1
+ import { type BinaryToTextEncoding } from 'crypto';
2
2
  export declare function sha256(text: string, encoding?: BinaryToTextEncoding): string;
3
3
  export default sha256;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pdg/crypto",
3
3
  "title": "Typescript Crypto Module",
4
4
  "description": "Typescript Crypto Module",
5
- "version": "1.0.4",
5
+ "version": "1.0.6",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.esm.js",
@@ -29,14 +29,16 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "dev": "cd examples && npm run dev",
32
- "build": "npm run test && npm run lint && rollup -c --bundleConfigAsCjs",
32
+ "watchman:del": "watchman watch-del \"${PWD}\" ; watchman watch-project \"${PWD}\"",
33
+ "build": "npm run watchman:del && npm run test && rollup -c --bundleConfigAsCjs",
33
34
  "git:commit": "node .git-commit.cjs",
34
35
  "git:push": "git push",
35
36
  "git:commit:push": "npm run git:commit && npm run git:push",
36
37
  "git:merge:mirror": "node .git-merge.cjs mirror main",
37
38
  "reset:gitignore": "git rm -r --cached . && git add .",
38
- "pub": "npm i && npm run build && npm publish --access=public && rm ./.git/hooks/pre-commit",
39
+ "pub": "npm i && npm run build && npm publish --access=public && [ -f ./.git/hooks/pre-commit ] && rm ./.git/hooks/pre-commit || true",
39
40
  "lint": "eslint './src/**/*.ts'",
41
+ "tsc": "tsc --noEmit",
40
42
  "reinstall": "npm run reinstall:module",
41
43
  "reinstall:module": "rm -rf node_modules && rm -f package-lock.json && npm i",
42
44
  "test": "jest"
@@ -49,15 +51,10 @@
49
51
  "typescript",
50
52
  "javascript"
51
53
  ],
52
- "dependencies": {
53
- "base-64": "^1.0.0",
54
- "md5": "^2.3.0",
55
- "sha.js": "^2.4.12",
56
- "utf8": "^3.0.0"
57
- },
58
54
  "devDependencies": {
59
55
  "@eslint/js": "9.39.1",
60
56
  "@rollup/plugin-commonjs": "29.0.0",
57
+ "@rollup/plugin-eslint": "^9.2.0",
61
58
  "@rollup/plugin-node-resolve": "16.0.3",
62
59
  "@types/base-64": "^1.0.2",
63
60
  "@types/jest": "29.5.14",
@@ -67,18 +64,22 @@
67
64
  "@types/utf8": "3.0.3",
68
65
  "@types/uuid": "10.0.0",
69
66
  "@typescript-eslint/parser": "8.49.0",
67
+ "base-64": "^1.0.0",
70
68
  "eslint": "9.39.1",
71
69
  "eslint-config-prettier": "10.1.8",
72
70
  "eslint-plugin-prettier": "5.5.4",
73
71
  "jest": "29.7.0",
72
+ "md5": "^2.3.0",
74
73
  "prettier": "3.7.4",
75
74
  "rollup": "4.53.3",
76
75
  "rollup-plugin-delete": "2.2.0",
77
76
  "rollup-plugin-peer-deps-external": "2.2.4",
78
77
  "rollup-plugin-typescript2": "0.36.0",
78
+ "sha.js": "^2.4.12",
79
79
  "ts-jest": "29.4.6",
80
80
  "ts-node": "10.9.2",
81
81
  "typescript": "5.9.3",
82
- "typescript-eslint": "8.49.0"
82
+ "typescript-eslint": "8.49.0",
83
+ "utf8": "^3.0.0"
83
84
  }
84
85
  }
File without changes