Skip to content

Commit 43cbdd5

Browse files
committed
refactor: use specific lodash packages
This is to reduce the size of the bundle users have to install.
1 parent 84539b2 commit 43cbdd5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sign.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ const timespan = require('./lib/timespan');
22
const PS_SUPPORTED = require('./lib/psSupported');
33
const validateAsymmetricKey = require('./lib/validateAsymmetricKey');
44
const jws = require('jws');
5-
const {includes, isBoolean, isInteger, isNumber, isPlainObject, isString, once} = require('lodash')
5+
const includes = require('lodash.includes');
6+
const isBoolean = require('lodash.isboolean');
7+
const isInteger = require('lodash.isinteger');
8+
const isNumber = require('lodash.isnumber');
9+
const isPlainObject = require('lodash.isplainobject');
10+
const isString = require('lodash.isstring');
11+
const once = require('lodash.once');
612
const { KeyObject, createSecretKey, createPrivateKey } = require('crypto')
713

814
const SUPPORTED_ALGS = ['RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'HS256', 'HS384', 'HS512', 'none'];

0 commit comments

Comments
 (0)