pack-crx 1.0.0 → 1.0.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.
package/bun.lockb ADDED
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "pack-crx",
3
3
  "module": "src/index.ts",
4
4
  "type": "module",
5
- "version": "1.0.0",
5
+ "version": "1.0.2",
6
6
  "devDependencies": {
7
7
  "@types/bun": "latest",
8
8
  "@types/node-rsa": "^1.1.4"
@@ -12,5 +12,15 @@
12
12
  "node-rsa": "^1.1.1",
13
13
  "pbf": "^4.0.1"
14
14
  },
15
- "types": "src/index.d.ts"
15
+ "types": "src/index.d.ts",
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/Ant-Throw-Pology/pack-crx.git"
20
+ },
21
+ "homepage": "https://github.com/Ant-Throw-Pology/pack-crx",
22
+ "bugs": {
23
+ "url": "https://github.com/Ant-Throw-Pology/pack-crx"
24
+ },
25
+ "keywords": ["crx", "crx3", "chrome", "extension"]
16
26
  }
package/src/index.d.ts CHANGED
@@ -257,14 +257,14 @@ export interface PackInput {
257
257
  type SetKeys<A extends object, B extends object> = {[x in keyof A | keyof B]: x extends keyof B ? unknown extends B[x] ? x extends keyof A ? A[x] : never : B[x] : x extends keyof A ? A[x] : never};
258
258
 
259
259
  export type TransformPack<I extends PackInput> =
260
- I["publicKey"] extends string ?
260
+ I["privateKey"] extends string ?
261
261
  TransformPack<SetKeys<I, {
262
- publicKey: Uint8Array | undefined;
262
+ privateKey: Uint8Array | undefined;
263
263
  rsa: NodeRSA;
264
264
  }>>
265
- : I["privateKey"] extends string ?
265
+ : I["publicKey"] extends string ?
266
266
  TransformPack<SetKeys<I, {
267
- privateKey: Uint8Array | undefined;
267
+ publicKey: Uint8Array | undefined;
268
268
  }>>
269
269
  : I["updateXML"] extends null ?
270
270
  undefined extends I["crxUrl"] ? never : TransformPack<SetKeys<I, {
package/src/index.ts CHANGED
@@ -504,14 +504,14 @@ export interface PackInput {
504
504
  type SetKeys<A extends object, B extends object> = {[x in keyof A | keyof B]: x extends keyof B ? unknown extends B[x] ? x extends keyof A ? A[x] : never : B[x] : x extends keyof A ? A[x] : never};
505
505
 
506
506
  export type TransformPack<I extends PackInput> =
507
- I["publicKey"] extends string ?
507
+ I["privateKey"] extends string ?
508
508
  TransformPack<SetKeys<I, {
509
- publicKey: Uint8Array | undefined;
509
+ privateKey: Uint8Array | undefined;
510
510
  rsa: RSA;
511
511
  }>>
512
- : I["privateKey"] extends string ?
512
+ : I["publicKey"] extends string ?
513
513
  TransformPack<SetKeys<I, {
514
- privateKey: Uint8Array | undefined;
514
+ publicKey: Uint8Array | undefined;
515
515
  }>>
516
516
  : I["updateXML"] extends null ?
517
517
  undefined extends I["crxUrl"] ? never : TransformPack<SetKeys<I, {