@atcute/lexicons 1.2.2 → 1.2.3
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/syntax/did.d.ts +1 -0
- package/dist/syntax/did.d.ts.map +1 -1
- package/dist/syntax/did.js.map +1 -1
- package/lib/syntax/did.ts +2 -0
- package/package.json +4 -4
package/dist/syntax/did.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export type Did<Method extends string = string> = `did:${Method}:${string}`;
|
|
|
6
6
|
* represents a decentralized identifier with methods supported in atproto
|
|
7
7
|
*/
|
|
8
8
|
export type AtprotoDid = Did<'plc' | 'web'>;
|
|
9
|
+
export type AtprotoAudience = `${AtprotoDid}#${string}`;
|
|
9
10
|
export declare const isDid: (input: unknown) => input is Did;
|
|
10
11
|
//# sourceMappingURL=did.d.ts.map
|
package/dist/syntax/did.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../lib/syntax/did.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,GAAG,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI,OAAO,MAAM,IAAI,MAAM,EAAE,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../lib/syntax/did.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,GAAG,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI,OAAO,MAAM,IAAI,MAAM,EAAE,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,GAAG,UAAU,IAAI,MAAM,EAAE,CAAC;AAKxD,eAAO,MAAM,KAAK,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,GAE/C,CAAC"}
|
package/dist/syntax/did.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"did.js","sourceRoot":"","sources":["../../lib/syntax/did.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"did.js","sourceRoot":"","sources":["../../lib/syntax/did.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,GAAG,oDAAoD,CAAC;AAEpE,uBAAuB;AACvB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAc,EAAgB,EAAE;IACrD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrG,CAAC,CAAC"}
|
package/lib/syntax/did.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type Did<Method extends string = string> = `did:${Method}:${string}`;
|
|
|
8
8
|
*/
|
|
9
9
|
export type AtprotoDid = Did<'plc' | 'web'>;
|
|
10
10
|
|
|
11
|
+
export type AtprotoAudience = `${AtprotoDid}#${string}`;
|
|
12
|
+
|
|
11
13
|
const DID_RE = /^did:([a-z]+):([a-zA-Z0-9._:%\-]*[a-zA-Z0-9._\-])$/;
|
|
12
14
|
|
|
13
15
|
// #__NO_SIDE_EFFECTS__
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/lexicons",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"description": "AT Protocol core lexicon types and schema validations",
|
|
6
6
|
"license": "0BSD",
|
|
7
7
|
"repository": {
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@vitest/coverage-v8": "^
|
|
27
|
-
"vitest": "^
|
|
26
|
+
"@vitest/coverage-v8": "^4.0.7",
|
|
27
|
+
"vitest": "^4.0.7",
|
|
28
28
|
"@atcute/multibase": "^1.1.6",
|
|
29
|
-
"@atcute/cbor": "^2.2.
|
|
29
|
+
"@atcute/cbor": "^2.2.7"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@standard-schema/spec": "^1.0.0",
|