@rocketh/signer 0.10.7 → 0.10.9

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { handleSignerProtocol } from 'rocketh';
2
+ import { EIP1193LocalSigner } from 'eip-1193-signer';
3
+ handleSignerProtocol('privateKey', async (str) => {
4
+ const [proto, privateKey] = str.split(':');
5
+ return { type: 'signerOnly', signer: new EIP1193LocalSigner(privateKey) };
6
+ });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEnD,oBAAoB,CAAC,YAAY,EAAE,KAAK,EAAE,GAAW,EAAE,EAAE;IACxD,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO,EAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,kBAAkB,CAAC,UAA2B,CAAC,EAAC,CAAC;AAC1F,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,37 +1,35 @@
1
1
  {
2
2
  "name": "@rocketh/signer",
3
- "version": "0.10.7",
3
+ "version": "0.10.9",
4
4
  "description": "add signer to rocketh",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "type": "module",
9
- "main": "dist/index.cjs",
10
- "module": "dist/index.mjs",
11
- "types": "dist/index.d.ts",
9
+ "module": "dist/esm/index.js",
10
+ "types": "dist/esm/index.d.ts",
12
11
  ".": {
13
- "require": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/index.cjs"
16
- },
17
12
  "import": {
18
- "types": "./dist/index.d.ts",
19
- "default": "./dist/index.mjs"
13
+ "types": "./dist/esm/index.d.ts",
14
+ "default": "./dist/esm/index.js"
20
15
  }
21
16
  },
17
+ "files": [
18
+ "dist"
19
+ ],
22
20
  "devDependencies": {
21
+ "as-soon": "^0.0.11",
23
22
  "eip-1193": "^0.5.0",
24
23
  "eip-1193-signer": "^0.0.3",
25
- "pkgroll": "^2.1.1",
26
24
  "rimraf": "^5.0.7",
27
25
  "typescript": "^5.5.2",
28
- "rocketh": "0.10.15"
26
+ "rocketh": "0.10.16"
29
27
  },
30
28
  "peerDependencies": {
31
- "rocketh": "0.10.15"
29
+ "rocketh": "0.10.16"
32
30
  },
33
31
  "scripts": {
34
- "build": "rimraf dist && pkgroll --sourcemap",
35
- "dev": "pkgroll --watch"
32
+ "build": "tsc --project tsconfig.json",
33
+ "dev": "as-soon -w src pnpm build"
36
34
  }
37
35
  }
package/.prettierignore DELETED
@@ -1,3 +0,0 @@
1
- dist/
2
- node_modules/
3
- package.json
package/.prettierrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "useTabs": true,
3
- "singleQuote": true,
4
-
5
- "printWidth": 120,
6
- "bracketSpacing": false
7
- }
package/CHANGELOG.md DELETED
@@ -1,52 +0,0 @@
1
- # @rocketh/signer
2
-
3
- ## 0.10.7
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies
8
- - rocketh@0.10.15
9
-
10
- ## 0.10.6
11
-
12
- ### Patch Changes
13
-
14
- - latest dependencies
15
- - Updated dependencies
16
- - rocketh@0.10.14
17
-
18
- ## 0.10.5
19
-
20
- ### Patch Changes
21
-
22
- - Updated dependencies
23
- - rocketh@0.10.13
24
-
25
- ## 0.10.4
26
-
27
- ### Patch Changes
28
-
29
- - Updated dependencies
30
- - rocketh@0.10.12
31
-
32
- ## 0.10.3
33
-
34
- ### Patch Changes
35
-
36
- - Updated dependencies
37
- - rocketh@0.10.11
38
-
39
- ## 0.10.2
40
-
41
- ### Patch Changes
42
-
43
- - Updated dependencies
44
- - rocketh@0.10.10
45
-
46
- ## 0.10.1
47
-
48
- ### Patch Changes
49
-
50
- - use pkgroll and @rocketh namespace
51
- - Updated dependencies
52
- - rocketh@0.10.9
package/src/index.ts DELETED
@@ -1,7 +0,0 @@
1
- import {handleSignerProtocol} from 'rocketh';
2
- import {EIP1193LocalSigner} from 'eip-1193-signer';
3
-
4
- handleSignerProtocol('privateKey', async (str: string) => {
5
- const [proto, privateKey] = str.split(':');
6
- return {type: 'signerOnly', signer: new EIP1193LocalSigner(privateKey as `0x${string}`)};
7
- });
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "moduleResolution": "Node",
4
- "lib": ["ES2020", "dom"],
5
- "target": "ES2020",
6
- "declaration": true,
7
- "declarationMap": true,
8
- "sourceMap": true,
9
- "strict": true,
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "resolveJsonModule": true,
13
- "module": "ES6"
14
- }
15
- }