Skip to content

Commit 5560033

Browse files
aleksxorAVVS
authored andcommitted
chore(pkgs): upgrage package versions
1 parent d2c3196 commit 5560033

File tree

4 files changed

+773
-544
lines changed

4 files changed

+773
-544
lines changed

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,36 @@
3636
"node": ">= 12.14.0"
3737
},
3838
"devDependencies": {
39-
"@babel/cli": "^7.8.3",
40-
"@babel/core": "^7.8.3",
39+
"@babel/cli": "^7.8.4",
40+
"@babel/core": "^7.9.6",
4141
"@babel/plugin-proposal-class-properties": "^7.8.3",
42-
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
42+
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
4343
"@babel/plugin-transform-strict-mode": "^7.8.3",
44-
"@babel/register": "^7.8.3",
45-
"@makeomatic/deploy": "^10.0.1",
44+
"@babel/register": "^7.9.0",
45+
"@makeomatic/deploy": "^10.1.4",
4646
"babel-plugin-istanbul": "^6.0.0",
47-
"codecov": "^3.6.2",
48-
"cross-env": "^6.0.3",
47+
"codecov": "^3.6.5",
48+
"cross-env": "^7.0.2",
4949
"eslint": "^6.8.0",
50-
"eslint-config-makeomatic": "^4.0.0",
51-
"eslint-plugin-import": "^2.20.0",
52-
"eslint-plugin-mocha": "^6.2.2",
50+
"eslint-config-makeomatic": "^5.0.0",
51+
"eslint-plugin-import": "^2.20.2",
52+
"eslint-plugin-mocha": "^6.3.0",
5353
"eslint-plugin-promise": "^4.2.1",
54-
"ioredis": "^4.14.1",
55-
"mocha": "^7.0.0",
56-
"nyc": "^15.0.0",
57-
"rimraf": "^3.0.0"
54+
"ioredis": "^4.16.3",
55+
"mocha": "^7.1.2",
56+
"nyc": "^15.0.1",
57+
"rimraf": "^3.0.2"
5858
},
5959
"dependencies": {
60-
"@hapi/joi": "^17.1.0",
60+
"@hapi/joi": "^17.1.1",
6161
"base64-url": "^2.3.3",
6262
"chance": "^1.1.4",
6363
"get-value": "^3.0.1",
6464
"glob": "^7.1.6",
6565
"is": "^3.3.0",
6666
"lodash.compact": "^3.0.1",
6767
"lodash.omit": "^4.5.0",
68-
"uuid": "^3.4.0"
68+
"uuid": "^8.0.0"
6969
},
7070
"files": [
7171
"src/",

src/actions/create.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const Joi = require('@hapi/joi');
2-
const uuid = require('uuid');
2+
const { v4: uuidv4 } = require('uuid');
33
const crypto = require('../utils/crypto');
44

55
// actual data schema
@@ -100,7 +100,7 @@ module.exports = async function create(args) {
100100

101101
const { action, id, ttl, metadata, legacy } = opts;
102102
const throttle = getThrottle(opts.throttle, ttl);
103-
const uid = opts.regenerate ? uuid.v4() : false;
103+
const uid = opts.regenerate ? uuidv4() : false;
104104
const secret = getSecret(opts.secret);
105105

106106
const settings = {

src/utils/crypto.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const crypto = require('crypto');
22
const base64url = require('base64-url');
3-
const uuid = require('uuid');
3+
const { v4: uuidv4 } = require('uuid');
44
const Chance = require('chance');
55
const is = require('is');
66
const assert = require('assert');
@@ -82,7 +82,7 @@ exports.secret = async function createSecret(encrypt, settings, payload, legacy
8282

8383
switch (settings.type) {
8484
case 'uuid': {
85-
token = uuid.v4();
85+
token = uuidv4();
8686
break;
8787
}
8888

0 commit comments

Comments
 (0)