wip esm adapt lodash
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {union} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {union} = lodash
|
||||
import semver from 'semver';
|
||||
import proxyquire from 'proxyquire';
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {escapeRegExp} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp} = lodash
|
||||
const proxyquire = require('proxyquire').noPreserveCache();
|
||||
import sinon from 'sinon';
|
||||
import {SECRET_REPLACEMENT} from '../lib/definitions/constants.js';
|
||||
|
||||
@@ -2,7 +2,8 @@ import path from 'path';
|
||||
import {format} from 'util';
|
||||
import test from 'ava';
|
||||
import {writeFile, outputJson} from 'fs-extra';
|
||||
import {omit} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {omit} = lodash
|
||||
import proxyquire from 'proxyquire';
|
||||
import sinon from 'sinon';
|
||||
import yaml from 'js-yaml';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {repeat} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {repeat} = lodash
|
||||
import hideSensitive from '../lib/hide-sensitive.js';
|
||||
import {SECRET_REPLACEMENT, SECRET_MIN_SIZE} from '../lib/definitions/constants.js';
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {escapeRegExp, isString, sortBy, omit} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp, isString, sortBy, omit} = lodash
|
||||
import proxyquire from 'proxyquire';
|
||||
import sinon from 'sinon';
|
||||
import {WritableStreamBuffer} from 'stream-buffers';
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import path from 'path';
|
||||
import test from 'ava';
|
||||
import proxyquire from 'proxyquire';
|
||||
import {escapeRegExp} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp} = lodash
|
||||
import {writeJson, readJson} from 'fs-extra';
|
||||
import execa from 'execa';
|
||||
import {WritableStreamBuffer} from 'stream-buffers';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {noop} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {noop} = lodash
|
||||
import sinon from 'sinon';
|
||||
import normalize from '../../lib/plugins/normalize.js';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user