From c8b2be80908019fb9382b4fc1e3863fab78fd0f5 Mon Sep 17 00:00:00 2001 From: Dmitri Zagidulin Date: Fri, 29 Dec 2023 21:05:16 -0500 Subject: [PATCH] Update to latest rdf-canonize and http-client deps. --- lib/NQuads.js | 2 +- lib/jsonld.js | 2 +- lib/util.js | 2 +- package.json | 6 +++--- tests/test-common.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/NQuads.js b/lib/NQuads.js index 22006e77..9c4d03e6 100644 --- a/lib/NQuads.js +++ b/lib/NQuads.js @@ -4,4 +4,4 @@ 'use strict'; // TODO: move `NQuads` to its own package -module.exports = require('@digitalcredentials/rdf-canonize').NQuads; +module.exports = require('rdf-canonize').NQuads; diff --git a/lib/jsonld.js b/lib/jsonld.js index 823bdbd8..fdc4a1c4 100644 --- a/lib/jsonld.js +++ b/lib/jsonld.js @@ -33,7 +33,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -const canonize = require('@digitalcredentials/rdf-canonize'); +const canonize = require('rdf-canonize'); const platform = require('./platform'); const util = require('./util'); const ContextResolver = require('./ContextResolver'); diff --git a/lib/util.js b/lib/util.js index 23cfe64d..1458005a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -6,7 +6,7 @@ const graphTypes = require('./graphTypes'); const types = require('./types'); // TODO: move `IdentifierIssuer` to its own package -const IdentifierIssuer = require('@digitalcredentials/rdf-canonize').IdentifierIssuer; +const IdentifierIssuer = require('rdf-canonize').IdentifierIssuer; const JsonLdError = require('./JsonLdError'); // constants diff --git a/package.json b/package.json index 32043f3a..faf8e418 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@digitalcredentials/jsonld", + "name": "jsonld", "version": "6.0.0", "description": "A JSON-LD Processor and API implementation in JavaScript.", "homepage": "https://github.com/digitalcredentials/jsonld.js", @@ -16,8 +16,8 @@ "lib/**/*.js" ], "dependencies": { - "@digitalcredentials/http-client": "^1.0.0", - "@digitalcredentials/rdf-canonize": "^1.0.0", + "@digitalcredentials/http-client": "digitalcredentials/http-client#react-native", + "rdf-canonize": "^4.0.1", "canonicalize": "^1.0.1", "lru-cache": "^6.0.0" }, diff --git a/tests/test-common.js b/tests/test-common.js index bb6c8c7f..9cc520c7 100644 --- a/tests/test-common.js +++ b/tests/test-common.js @@ -5,7 +5,7 @@ const EarlReport = require('./earl-report'); const benchmark = require('benchmark'); const join = require('join-path-js'); -const rdfCanonize = require('@digitalcredentials/rdf-canonize'); +const rdfCanonize = require('rdf-canonize'); const {prependBase} = require('../lib/url'); module.exports = function(options) {