iso-ucan 0.3.0 → 0.4.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.
- package/dist/src/client.d.ts +0 -6
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/server.d.ts +0 -4
- package/dist/src/server.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/client.js +1 -1
- package/src/varsig.js +2 -2
package/dist/src/client.d.ts
CHANGED
|
@@ -38,10 +38,4 @@ import type { RouteOutput } from './types';
|
|
|
38
38
|
import type { InferProtocol } from './types';
|
|
39
39
|
import type { ClientOptions } from './types';
|
|
40
40
|
import type { RouterClient } from './types';
|
|
41
|
-
import type { StandardSchemaV1 as StandardSchemaV1_1 } from './types';
|
|
42
|
-
import type { Capability as Capability_1 } from './capability';
|
|
43
|
-
import type { RouteOutput as RouteOutput_1 } from './types';
|
|
44
|
-
import type { InferProtocol as InferProtocol_1 } from './types';
|
|
45
|
-
import type { ClientOptions as ClientOptions_1 } from './types';
|
|
46
|
-
import type { RouterClient as RouterClient_1 } from './types';
|
|
47
41
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/src/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH;;;;GAIG;AACH,6BAJiG,CAAC,SAArF,cAAe,MAAM,CAAC,MAAM,EAAE,YAAY,WAAW,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAE,WACrF,aAAa,GACX,aAAa,CAAC,CAAC,CAgC3B;;;;sBA5C0D,CAAC,SAA/C;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;CAAG;SAEhD,MAAM;kBACN,WAAW,gBAAgB,EAAE,MAAM,CAAC,EAAE;YACtC,cAAc,MAAM,CAAC,MAAM,EAAE,YAAY,WAAW,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;aACjF,aAAa;kBACb,aAAa,CAAC,CAAC;;sCAZmE,SAAS;gCACxE,cAAc;iCADiD,SAAS;mCAAT,SAAS;mCAAT,SAAS;kCAAT,SAAS
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH;;;;GAIG;AACH,6BAJiG,CAAC,SAArF,cAAe,MAAM,CAAC,MAAM,EAAE,YAAY,WAAW,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAE,WACrF,aAAa,GACX,aAAa,CAAC,CAAC,CAgC3B;;;;sBA5C0D,CAAC,SAA/C;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;CAAG;SAEhD,MAAM;kBACN,WAAW,gBAAgB,EAAE,MAAM,CAAC,EAAE;YACtC,cAAc,MAAM,CAAC,MAAM,EAAE,YAAY,WAAW,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;aACjF,aAAa;kBACb,aAAa,CAAC,CAAC;;sCAZmE,SAAS;gCACxE,cAAc;iCADiD,SAAS;mCAAT,SAAS;mCAAT,SAAS;kCAAT,SAAS"}
|
package/dist/src/server.d.ts
CHANGED
|
@@ -34,9 +34,5 @@ import type { StandardSchemaV1 } from './types';
|
|
|
34
34
|
import type { Capability } from './capability';
|
|
35
35
|
import type { RouteOptions } from './types';
|
|
36
36
|
import type { RouteOutput } from './types';
|
|
37
|
-
import type { StandardSchemaV1 as StandardSchemaV1_1 } from './types';
|
|
38
|
-
import type { Capability as Capability_1 } from './capability';
|
|
39
|
-
import type { RouteOutput as RouteOutput_1 } from './types';
|
|
40
|
-
import type { RouteOptions as RouteOptions_1 } from './types';
|
|
41
37
|
import type { RouteHandlerOptions } from './types';
|
|
42
38
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/src/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.js"],"names":[],"mappings":"AAIA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,sBALa,MAAM,EACyB,GAAG,SAAlC,WAAY,gBAAgB,CAAE,WAChC,aAAa,GAAG,EAAE,MAAM,CAAC,GACvB,YAAY,GAAG,EAAE,MAAM,CAAC,CAqBpC;;;;sBAnCmD,CAAC,SAAxC,WAAY,gBAAgB,EAAE,MAAM,CAAE,EACtC,MAAM;SAET,MAAM;kBACN,WAAW,gBAAgB,EAAE,MAAM,CAAC,EAAE;YACtC,YAAY,CAAC,EAAE,MAAM,CAAC;aACtB,aAAa,CAAC,EAAE,MAAM,CAAC;kBACvB,mBAAmB;;sCAbuD,SAAS;gCAChE,cAAc;kCADyC,SAAS;iCAAT,SAAS;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.js"],"names":[],"mappings":"AAIA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,sBALa,MAAM,EACyB,GAAG,SAAlC,WAAY,gBAAgB,CAAE,WAChC,aAAa,GAAG,EAAE,MAAM,CAAC,GACvB,YAAY,GAAG,EAAE,MAAM,CAAC,CAqBpC;;;;sBAnCmD,CAAC,SAAxC,WAAY,gBAAgB,EAAE,MAAM,CAAE,EACtC,MAAM;SAET,MAAM;kBACN,WAAW,gBAAgB,EAAE,MAAM,CAAC,EAAE;YACtC,YAAY,CAAC,EAAE,MAAM,CAAC;aACtB,aAAa,CAAC,EAAE,MAAM,CAAC;kBACvB,mBAAmB;;sCAbuD,SAAS;gCAChE,cAAc;kCADyC,SAAS;iCAAT,SAAS;yCAAT,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iso-ucan",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "Isomorphic UCAN",
|
|
6
6
|
"author": "Hugo Dias <hugomrdias@gmail.com> (hugodias.me)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -102,24 +102,24 @@
|
|
|
102
102
|
"dist/src/**/*.d.ts.map"
|
|
103
103
|
],
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@ipld/dag-cbor": "^9.2.
|
|
105
|
+
"@ipld/dag-cbor": "^9.2.5",
|
|
106
106
|
"@standard-schema/spec": "^1.0.0",
|
|
107
107
|
"@standard-schema/utils": "^0.3.0",
|
|
108
108
|
"iobuffer": "^6.0.1",
|
|
109
|
-
"iso-kv": "^3.0
|
|
110
|
-
"iso-web": "^1.
|
|
109
|
+
"iso-kv": "^3.1.0",
|
|
110
|
+
"iso-web": "^1.3.0",
|
|
111
111
|
"it-merge": "^3.0.12",
|
|
112
|
-
"multiformats": "^13.4.
|
|
112
|
+
"multiformats": "^13.4.1",
|
|
113
113
|
"zod": "^3.25.0",
|
|
114
|
-
"iso-
|
|
115
|
-
"iso-
|
|
116
|
-
"iso-did": "^2.
|
|
114
|
+
"iso-signatures": "^0.5.1",
|
|
115
|
+
"iso-base": "^4.2.1",
|
|
116
|
+
"iso-did": "^2.1.1"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@types/node": "^24.2
|
|
119
|
+
"@types/node": "^24.5.2",
|
|
120
120
|
"delay": "^6.0.0",
|
|
121
121
|
"playwright-test": "^14.1.12",
|
|
122
|
-
"typescript": "5.
|
|
122
|
+
"typescript": "5.9.2"
|
|
123
123
|
},
|
|
124
124
|
"publishConfig": {
|
|
125
125
|
"provenance": true
|
package/src/client.js
CHANGED
package/src/varsig.js
CHANGED
|
@@ -71,7 +71,7 @@ export function encode(options) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* @param {Uint8Array
|
|
74
|
+
* @param {Uint8Array} bytes
|
|
75
75
|
*/
|
|
76
76
|
function getEncoding(bytes) {
|
|
77
77
|
const [code] = varint.decode(bytes)
|
|
@@ -83,7 +83,7 @@ function getEncoding(bytes) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* @param {Uint8Array
|
|
86
|
+
* @param {Uint8Array} bytes
|
|
87
87
|
* @param {import('./types.js').VarsigAlgorithm[]} presets
|
|
88
88
|
*/
|
|
89
89
|
function getPreset(bytes, presets) {
|