Skip to content

Commit

Permalink
Merge branch 'master' into docs-tests-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
touv authored Feb 7, 2024
2 parents 67ee08d + 45b0445 commit a26ce90
Show file tree
Hide file tree
Showing 62 changed files with 64 additions and 171 deletions.
8 changes: 1 addition & 7 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@
"@ezs/store": "2.0.4",
"async-each-series": "1.1.0",
"fast-sort": "2.1.1",
"lodash.clone": "4.5.0",
"lodash.flatten": "4.4.0",
"lodash.get": "4.4.2",
"lodash.mergewith": "4.6.2",
"lodash.set": "4.3.2",
"lodash.uniq": "4.5.0",
"lodash.unset": "4.5.2",
"lodash": "4.17.21",
"make-dir": "3.1.0",
"node-object-hash": "2.3.10",
"path-exists": "4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/aggregate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/count.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';
/**
* Take `Object` and throw special `Object` like `{id, value}` if key(s) was found
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/distance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import { levenshteinDistance } from './algorithms';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/distinct.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';
/**
* Take `Object` object getting some fields with json path, and do ...
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics/src/distribute.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import get from 'lodash.get';
import core from './core';
import { get } from 'lodash';
import { createStore } from '@ezs/store';
import core from './core';

/**
* Take `Object` like { id, value } and throw a serie of number value
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/drop.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';

/**
* Take `Object` and throw the same object only if there the value of the select field is not equals than a value
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/exploding.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';
/**
* Take `Object` and take values with [value] path (must be an array)
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';

/**
* Take `Object` and throw the same object only if there the value of the select field is equals than a value
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/graph.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/greater.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';

/**
* Take `Object` and throw the same object only if the value of the selected
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/groupingByEquality.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import uniq from 'lodash.uniq';
import { get, uniq } from 'lodash';
import core from './core';

const equalTo = (id) => (item) => item.id.some((key) => key === id);
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/groupingByHamming.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import uniq from 'lodash.uniq';
import { get, uniq } from 'lodash';
import core from './core';
import { hammingDistance } from './algorithms';

Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/groupingByLevenshtein.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import uniq from 'lodash.uniq';
import { get, uniq } from 'lodash';
import core from './core';
import { levenshteinDistance } from './algorithms';

Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/groupingByModulo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import uniq from 'lodash.uniq';
import { get, uniq } from 'lodash';
import core from './core';

const mod = (x, m) => x - (x % m);
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/less.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';

/**
* Take `Object` and throw the same object only if the value of the selected
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/maximizing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';
/**
* Take special `Object` like `{id, value}` and replace `value` with the max of `value`s
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/merging.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import mergeWith from 'lodash.mergewith';
import { get, mergeWith } from 'lodash';
import core from './core';


Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/minimizing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/mulitply.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import set from 'lodash.set';
import clone from 'lodash.clone';
import { set, clone } from 'lodash';

/**
* Take `Object` and throw the same object only if there the value of the select field is equals than a value
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics/src/output.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import get from 'lodash.get';
import unset from 'lodash.unset';

import { get, unset } from 'lodash';
/**
* Pair function see documentation at the end.
* This part of the doc is used for jsdoc typing
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/pair.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/pluck.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/reducing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import { createStore } from '@ezs/store';

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/segment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import flatten from 'lodash.flatten';
import { get, flatten } from 'lodash';
import core from './core';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/sort.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import fastsort from 'fast-sort';
import { createStore } from '@ezs/store';
import { normalize } from './tune';
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/statistics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import hasher from 'node-object-hash';
import get from 'lodash.get';
import set from 'lodash.set';
import { get, set } from 'lodash';
import { createStore } from '@ezs/store';

const hashCoerce = hasher({
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/summing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import core from './core';

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics/src/tune.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import clone from 'lodash.clone';
import { get, clone } from 'lodash';
import { levenshteinDistance } from './algorithms';
import core from './core';

Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/value.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';

/**
* Value function see documentation at the end.
Expand Down
2 changes: 1 addition & 1 deletion packages/ark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inist-ark": "2.1.3",
"leveldown": "6.1.0",
"levelup": "5.1.1",
"lodash.set": "4.3.2"
"lodash": "4.17.21"
},
"directories": {
"test": "test"
Expand Down
2 changes: 1 addition & 1 deletion packages/ark/src/generateARK.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import set from 'lodash.set';
import { set } from 'lodash';
import leveldown from 'leveldown';
import levelup from 'levelup';
import InistArk from 'inist-ark';
Expand Down
8 changes: 1 addition & 7 deletions packages/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@
"get-stream": "6.0.1",
"higher-path": "1.0.0",
"inflection": "2.0.1",
"lodash.escaperegexp": "4.1.2",
"lodash.get": "4.4.2",
"lodash.mapkeys": "4.6.0",
"lodash.mapvalues": "4.6.0",
"lodash.merge": "4.6.2",
"lodash.set": "4.3.2",
"lodash.zipobject": "4.1.3",
"lodash": "4.17.21",
"make-dir": "4.0.0",
"micromatch": "4.0.4",
"node-abort-controller": "1.1.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/basics/src/obj-namespaces.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import zipObject from 'lodash.zipobject';
import escapeRegExp from 'lodash.escaperegexp';
import mapKeys from 'lodash.mapkeys';
import mapValues from 'lodash.mapvalues';
import { zipObject, escapeRegExp, mapKeys, mapValues } from 'lodash';

/**
* Take `Object` and throw the same object, all keys parsed to replace namespaces with their prefixes
Expand Down
2 changes: 1 addition & 1 deletion packages/basics/src/tar-dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { promisify } from 'util';
import { readFile } from 'fs';
import tar from 'tar-stream';
import { createGzip } from 'zlib';
import merge from 'lodash.merge';
import { merge } from 'lodash';

// Avoid importing from fs/promise to be compatible with node 12
const readFilePromise = promisify(readFile);
Expand Down
2 changes: 1 addition & 1 deletion packages/basics/src/txt-inflection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import { transform } from 'inflection';


Expand Down
2 changes: 1 addition & 1 deletion packages/basics/src/txt-sentences.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';

const UPPER_LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const SENTENCE_INIT = ' ';
Expand Down
3 changes: 1 addition & 2 deletions packages/basics/src/url-fetch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import debug from 'debug';
import get from 'lodash.get';
import set from 'lodash.set';
import { get, set } from 'lodash';
import AbortController from 'node-abort-controller';
import parseHeaders from 'parse-headers';
import retry from 'async-retry';
Expand Down
2 changes: 1 addition & 1 deletion packages/basics/src/url-request.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import set from 'lodash.set';
import { set } from 'lodash';
import debug from 'debug';
import { URL, URLSearchParams } from 'url';
import AbortController from 'node-abort-controller';
Expand Down
2 changes: 1 addition & 1 deletion packages/conditor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"fast-xml-parser": "4.2.5",
"fetch-with-proxy": "3.0.1",
"isomorphic-fetch": "2.2.1",
"lodash.get": "^4.4.2",
"lodash": "4.17.21",
"node-abort-controller": "1.1.0",
"progress": "2.0.3",
"qs": "6.10.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/conditor/src/wos-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import debug from 'debug';
import { URL, URLSearchParams } from 'url';
import AbortController from 'node-abort-controller';
import get from 'lodash.get';
import { get } from 'lodash';
import retry from 'async-retry';
import fetch from 'fetch-with-proxy';
import writeTo from 'stream-write';
Expand Down
4 changes: 1 addition & 3 deletions packages/libpostal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"author": "Nicolas Thouvenin <[email protected]>",
"bugs": "https://github.com/Inist-CNRS/ezs/issues",
"dependencies": {
"lodash.clone": "4.5.0",
"lodash.get": "4.4.2",
"lodash.set": "4.3.2"
"lodash": "4.17.21"
},
"homepage": "https://github.com/Inist-CNRS/ezs/tree/master/packages/libpostal#readme",
"keywords": [
Expand Down
4 changes: 1 addition & 3 deletions packages/libpostal/src/expand-address-with.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import postal from '@cymen/node-postal';
import get from 'lodash.get';
import set from 'lodash.set';
import clone from 'lodash.clone';
import { get, set, clone } from 'lodash';

const expand = (input) => ({
id: input,
Expand Down
4 changes: 1 addition & 3 deletions packages/libpostal/src/parse-address-with.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import postal from '@cymen/node-postal';
import get from 'lodash.get';
import set from 'lodash.set';
import clone from 'lodash.clone';
import { get, set, clone } from 'lodash';

const parse = (input) => ({
id: input,
Expand Down
4 changes: 1 addition & 3 deletions packages/loterre/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bugs": "https://github.com/Inist-CNRS/ezs/issues",
"dependencies": {
"@ezs/store": "2.0.4",
"lodash.get": "4.4.2",
"lodash.has": "4.5.2",
"lodash.set": "4.3.2"
"lodash": "4.17.21"
},
"directories": {
"test": "test"
Expand Down
4 changes: 1 addition & 3 deletions packages/loterre/src/skos-hierarchy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createStore } from '@ezs/store';
import has from 'lodash.has';
import get from 'lodash.get';
import set from 'lodash.set';
import { has, get } from 'lodash';


/**
Expand Down
4 changes: 1 addition & 3 deletions packages/loterre/src/skos-pathenum.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createStore } from '@ezs/store';
import has from 'lodash.has';
import get from 'lodash.get';
import set from 'lodash.set';
import { has, get, set } from 'lodash';

/**
* @name getBroaderOrNarrowerLst
Expand Down
4 changes: 1 addition & 3 deletions packages/loterre/src/skos-to-gexf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* istanbul ignore file */
import { createStore } from '@ezs/store';
import has from 'lodash.has';
import get from 'lodash.get';
import set from 'lodash.set';
import { has, get } from 'lodash';


/**
Expand Down
3 changes: 0 additions & 3 deletions packages/spawn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"author": "Nicolas Thouvenin <[email protected]>",
"bugs": "https://github.com/Inist-CNRS/ezs/issues",
"dependencies": {
"lodash.clone": "4.5.0",
"lodash.get": "4.4.2",
"lodash.set": "4.3.2",
"semver": "7.5.2",
"stream-iterate": "1.2.0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"bugs": "https://github.com/Inist-CNRS/ezs/issues",
"dependencies": {
"cacache": "^17.1.3",
"lodash.get": "4.4.2",
"lodash.set": "^4.3.2",
"lodash": "4.17.21",
"lru-cache": "5.1.1",
"make-dir": "3.1.0",
"path-exists": "4.0.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/storage/src/load.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash.get';
import set from 'lodash.set';
import { get, set } from 'lodash';
import store from './store';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/save.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from 'lodash.get';
import { get } from 'lodash';
import store from './store';

/**
Expand Down
Loading

0 comments on commit a26ce90

Please sign in to comment.