pack-crx 1.0.0 → 1.0.1

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 (2) hide show
  1. package/package.json +12 -2
  2. package/src/index.ts +4 -4
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.1",
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.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, {