Skip to content

Commit

Permalink
Merge pull request #263 from aihowes/master
Browse files Browse the repository at this point in the history
Use per-method files when importing lodash
  • Loading branch information
ericblade authored Oct 11, 2020
2 parents 6be19fe + 41de21b commit 8226a04
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
"Taylor Southwick <twsouthwick@outlook.com>",
"Youri Westerman <tetracon@gmail.com>",
"Stefano Calì <stefanocali@gmail.com>",
"Tony Brix <tony@brix.ninja>"
"Tony Brix <tony@brix.ninja>",
"Alex Howes <alex@alexhowes.co.uk>"
],
"license": "MIT",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/input/camera_access.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pick } from 'lodash';
import pick from 'lodash/pick';
import { getUserMedia, enumerateDevices } from '../common/mediaDevices';
import { MediaTrackConstraintsWithDeprecated } from '../../type-definitions/quagga.d';

Expand Down
2 changes: 1 addition & 1 deletion src/locator/test/barcode_locator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (typeof (globalThis as any).ENV === 'undefined') {

import BarcodeLocator from '../barcode_locator';
import QuaggaConfig from '../../config/config';
import {merge} from 'lodash';
import merge from 'lodash/merge';
import sinon, {SinonSpy} from 'sinon';
import { expect } from 'chai';
import { QuaggaJSConfigObject } from '../../../type-definitions/quagga';
Expand Down
2 changes: 1 addition & 1 deletion src/quagga.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CameraAccess from './input/camera_access';
import ImageDebug from './common/image_debug';
import ResultCollector from './analytics/result_collector';
import Config from './config/config';
import { merge } from 'lodash';
import merge from 'lodash/merge';

import Quagga from './quagga/quagga';

Expand Down
2 changes: 1 addition & 1 deletion src/reader/ean_reader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BarcodeReader, { BarcodeReaderConfig, BarcodeInfo, BarcodePosition, Barcode } from './barcode_reader';
import { merge } from 'lodash';
import merge from 'lodash/merge';

// const CODE_L_START = 0;
const CODE_G_START = 10;
Expand Down
2 changes: 1 addition & 1 deletion src/reader/i2of5_reader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// TODO: i2of5_reader and 2of5_reader share very similar code, make use of that

import BarcodeReader, { BarcodeReaderConfig, BarcodeInfo, BarcodePosition, Barcode } from './barcode_reader';
import {merge} from 'lodash';
import merge from 'lodash/merge';

const N = 1;
const W = 3;
Expand Down

0 comments on commit 8226a04

Please sign in to comment.