@dxos/crypto 0.8.4-main.f5c0578 → 0.8.4-main.fbb7a13

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/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@dxos/crypto",
3
- "version": "0.8.4-main.f5c0578",
3
+ "version": "0.8.4-main.fbb7a13",
4
4
  "description": "Basic cross-platform crypto utils.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
- "sideEffects": true,
13
+ "sideEffects": false,
10
14
  "type": "module",
11
15
  "imports": {
12
- "#hypercore-crypto": {
13
- "workerd": "./vendor/hypercore-crypto-stub.mjs",
14
- "default": "hypercore-crypto"
15
- },
16
16
  "#subtle": {
17
17
  "types": "./vendor/subtle.d.ts",
18
18
  "node": "./vendor/subtle-node.mjs",
@@ -37,10 +37,10 @@
37
37
  "vendor"
38
38
  ],
39
39
  "dependencies": {
40
- "hypercore-crypto": "^2.3.0",
41
- "@dxos/invariant": "0.8.4-main.f5c0578",
42
- "@dxos/keys": "0.8.4-main.f5c0578",
43
- "@dxos/node-std": "0.8.4-main.f5c0578"
40
+ "@dxos/invariant": "0.8.4-main.fbb7a13",
41
+ "@dxos/keys": "0.8.4-main.fbb7a13",
42
+ "@dxos/node-std": "0.8.4-main.fbb7a13",
43
+ "@dxos/vendor-hypercore": "0.8.4-main.fbb7a13"
44
44
  },
45
45
  "devDependencies": {},
46
46
  "publishConfig": {
package/src/keys.ts CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  import { invariant } from '@dxos/invariant';
6
6
  import { type KeyPair, PUBLIC_KEY_LENGTH, PublicKey, type PublicKeyLike, SECRET_KEY_LENGTH } from '@dxos/keys';
7
-
8
- import crypto from '#hypercore-crypto';
7
+ import crypto from '@dxos/vendor-hypercore/hypercore-crypto';
9
8
 
10
9
  export const SIGNATURE_LENGTH = 64;
11
10
 
package/src/validator.ts CHANGED
@@ -3,8 +3,7 @@
3
3
  //
4
4
 
5
5
  import { PublicKey } from '@dxos/keys';
6
-
7
- import { verify } from '#hypercore-crypto';
6
+ import { verify } from '@dxos/vendor-hypercore/hypercore-crypto';
8
7
 
9
8
  /**
10
9
  * Generator for signature validation function.
package/src/shims.d.ts DELETED
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
-
5
- // https://nodejs.org/api/packages.html#imports
6
- declare module '#hypercore-crypto';
@@ -1,11 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
-
5
- export {};
6
-
7
- export const verify = () => {
8
- throw new Error('hypercore-crypto is not available on this platform');
9
- };
10
-
11
- export default {};