@ceramicnetwork/3id-did-resolver
Advanced tools
Comparing version 0.4.4 to 0.4.5-alpha.0
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.4.5-alpha.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/3id-did-resolver@0.4.4...@ceramicnetwork/3id-did-resolver@0.4.5-alpha.0) (2020-10-13) | ||
### Bug Fixes | ||
* properly handle versions and key rotations ([#399](https://github.com/ceramicnetwork/js-ceramic/issues/399)) ([c70f04c](https://github.com/ceramicnetwork/js-ceramic/commit/c70f04c037929568e796cf4b7e523679c81818e1)) | ||
## [0.4.4](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/3id-did-resolver@0.4.4-alpha.1...@ceramicnetwork/3id-did-resolver@0.4.4) (2020-10-07) | ||
@@ -8,0 +19,0 @@ |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.wrapDocument = void 0; | ||
const bs58_1 = __importDefault(require("bs58")); | ||
@@ -94,3 +95,4 @@ function wrapDocument(content, did) { | ||
'3': (did, parsed) => __awaiter(void 0, void 0, void 0, function* () { | ||
const doctype = yield ceramic.loadDocument(`/ceramic/${parsed.id}`); | ||
const version = (parsed.query || '').replace('version-id', '?version'); | ||
const doctype = yield ceramic.loadDocument(`/ceramic/${parsed.id}${version}`); | ||
return wrapDocument(doctype.content, did); | ||
@@ -97,0 +99,0 @@ }) |
{ | ||
"name": "@ceramicnetwork/3id-did-resolver", | ||
"version": "0.4.4", | ||
"version": "0.4.5-alpha.0", | ||
"description": "DID Resolver for the 3ID method", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ceramicnetwork/ceramic-common": "^0.10.0", | ||
"@ceramicnetwork/ceramic-common": "^0.10.1-alpha.0", | ||
"bs58": "^4.0.1" | ||
@@ -55,3 +55,3 @@ }, | ||
}, | ||
"gitHead": "8b87a86651c4a3bd4441c09b13c38ce8ed342e3c" | ||
"gitHead": "ff8e5231fcffec78592c83d9f3bbc3a305956921" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23615
112