@atcute/identity 1.1.2 → 1.1.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/did.js +1 -1
- package/dist/did.js.map +1 -1
- package/lib/did.ts +1 -1
- package/package.json +2 -2
package/dist/did.js
CHANGED
|
@@ -16,7 +16,7 @@ export const isAtprotoAudience = (input) => {
|
|
|
16
16
|
if (isep === -1) {
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
19
|
-
return FRAGMENT_RE.test(input.slice(isep + 1)) &&
|
|
19
|
+
return FRAGMENT_RE.test(input.slice(isep + 1)) && isAtprotoDid(input.slice(0, isep));
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* returns the DID's method
|
package/dist/did.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"did.js","sourceRoot":"","sources":["../lib/did.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,GAAG,yDAAyD,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAuB,EAAE;IAClE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAA4B,EAAE;IAC5E,mBAAmB;IACnB,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACpC,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;QACjB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,WA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AACpB,CAAC,CAAC"}
|
package/lib/did.ts
CHANGED
|
@@ -23,7 +23,7 @@ export const isAtprotoAudience = (input: string): input is AtprotoAudience => {
|
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
return FRAGMENT_RE.test(input.slice(isep + 1)) &&
|
|
26
|
+
return FRAGMENT_RE.test(input.slice(isep + 1)) && isAtprotoDid(input.slice(0, isep));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/identity",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"description": "syntax, type definitions and schemas for atproto handles, DIDs and DID documents",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atproto",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@badrap/valita": "^0.4.6",
|
|
30
|
-
"@atcute/lexicons": "^1.2.
|
|
30
|
+
"@atcute/lexicons": "^1.2.4"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsc --project tsconfig.build.json",
|