mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-18 04:06:19 +00:00
refactor: update dependencies
This commit is contained in:
855
package-lock.json
generated
855
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@@ -17,19 +17,19 @@
|
||||
"description": "Node.js library to interact with the StApps backend service",
|
||||
"dependencies": {
|
||||
"@krlwlfrt/async-pool": "0.5.0",
|
||||
"@openstapps/core": "0.43.0",
|
||||
"@openstapps/core-tools": "0.19.0",
|
||||
"@openstapps/core": "0.45.0",
|
||||
"@openstapps/core-tools": "0.20.0",
|
||||
"@openstapps/logger": "0.6.0",
|
||||
"@types/cli-progress": "3.9.1",
|
||||
"@types/express": "4.17.11",
|
||||
"@types/morgan": "1.9.2",
|
||||
"@types/node": "14.14.37",
|
||||
"@types/node": "14.14.41",
|
||||
"@types/traverse": "0.6.32",
|
||||
"@types/uuid": "3.4.9",
|
||||
"@types/wait-on": "4.0.0",
|
||||
"@types/uuid": "8.3.0",
|
||||
"@types/wait-on": "5.2.0",
|
||||
"body-parser": "1.19.0",
|
||||
"cli-progress": "3.9.0",
|
||||
"commander": "6.2.1",
|
||||
"commander": "7.2.0",
|
||||
"express": "4.17.1",
|
||||
"fast-clone": "1.5.13",
|
||||
"got": "11.8.2",
|
||||
@@ -37,8 +37,8 @@
|
||||
"moment": "2.29.1",
|
||||
"morgan": "1.10.0",
|
||||
"traverse": "0.6.6",
|
||||
"uuid": "3.4.0",
|
||||
"wait-on": "4.0.2"
|
||||
"uuid": "8.3.2",
|
||||
"wait-on": "5.3.0"
|
||||
},
|
||||
"license": "GPL-3.0-only",
|
||||
"devDependencies": {
|
||||
@@ -47,19 +47,19 @@
|
||||
"@types/chai": "4.2.16",
|
||||
"@types/chai-as-promised": "7.1.3",
|
||||
"@types/chai-spies": "1.0.3",
|
||||
"@types/fs-extra": "8.1.1",
|
||||
"@types/fs-extra": "9.0.11",
|
||||
"@types/mocha": "8.2.2",
|
||||
"chai": "4.3.4",
|
||||
"chai-as-promised": "7.1.1",
|
||||
"chai-spies": "1.0.0",
|
||||
"conventional-changelog-cli": "2.1.1",
|
||||
"fs-extra": "8.1.0",
|
||||
"fs-extra": "9.1.0",
|
||||
"mocha": "8.3.2",
|
||||
"nock": "13.0.11",
|
||||
"nyc": "15.1.0",
|
||||
"prepend-file-cli": "1.0.6",
|
||||
"rimraf": "3.0.2",
|
||||
"ts-node": "8.10.2",
|
||||
"ts-node": "9.1.1",
|
||||
"tslint": "6.1.3",
|
||||
"typedoc": "0.18.0",
|
||||
"typescript": "3.8.3"
|
||||
@@ -75,7 +75,7 @@
|
||||
"Wieland Schöbl <wulkanat@gmail.com>"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@openstapps/core": "~0.43.0"
|
||||
"@openstapps/core": "~0.45.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -27,23 +27,11 @@ import {
|
||||
} from '@openstapps/core';
|
||||
import clone = require('fast-clone');
|
||||
import moment from 'moment';
|
||||
import {v5} from 'uuid';
|
||||
import {Bulk} from './bulk';
|
||||
import {Client} from './client';
|
||||
import {EmptyBulkError, NamespaceNotDefinedError} from './errors';
|
||||
|
||||
const V5_VERSION = 0x50;
|
||||
|
||||
/* tslint:disable:no-var-requires */
|
||||
/**
|
||||
* The package @types/uuid unfortunately doesn't expose the browser versions of the hashing functions.
|
||||
* That's why we need to use a little trickery to get to it.
|
||||
*/
|
||||
const v35 = require('uuid/lib/v35');
|
||||
const sha1Browser = require('uuid/lib/sha1-browser');
|
||||
const v5 = v35('v5', V5_VERSION, sha1Browser);
|
||||
|
||||
/* tslint:enable:no-var-requires */
|
||||
|
||||
/**
|
||||
* StApps-API client
|
||||
*/
|
||||
@@ -81,7 +69,7 @@ export class ConnectorClient extends Client {
|
||||
throw new NamespaceNotDefinedError(namespaceId);
|
||||
}
|
||||
|
||||
return v5(uid.toString(), SCNamespaces[namespaceId]);
|
||||
return v5(uid.toString(), SCNamespaces[namespaceId]!);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user