@visactor/vutils 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,4 +27,5 @@ function cloneDeep(value, ignoreWhen, excludeKeys) {
27
27
  return result;
28
28
  }
29
29
 
30
- exports.default = cloneDeep;
30
+ exports.default = cloneDeep;
31
+ //# sourceMappingURL=cloneDeep.js.map
@@ -32,5 +32,4 @@ exports.field = field;
32
32
  const simpleField = option => option ? "string" == typeof option || "number" == typeof option ? () => option : (0,
33
33
  isFunction_1.default)(option) ? option : datum => datum[option.field] : null;
34
34
 
35
- exports.simpleField = simpleField;
36
- //# sourceMappingURL=field.js.map
35
+ exports.simpleField = simpleField;
@@ -22,4 +22,5 @@ function isEmpty(value) {
22
22
  return !0;
23
23
  }
24
24
 
25
- exports.default = isEmpty;
25
+ exports.default = isEmpty;
26
+ //# sourceMappingURL=isEmpty.js.map
@@ -15,5 +15,4 @@ const isType_1 = __importDefault(require("./isType")), isNumber = (value, fuzzy
15
15
  return fuzzy ? "number" === type : "number" === type || (0, isType_1.default)(value, "Number");
16
16
  };
17
17
 
18
- exports.default = isNumber;
19
- //# sourceMappingURL=isNumber.js.map
18
+ exports.default = isNumber;
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const isObjectLike = value => "object" == typeof value && null !== value;
8
8
 
9
9
  exports.default = isObjectLike;
10
- //# sourceMappingURL=isObjectLike.js.map
10
+ //# sourceMappingURL=isObjectLike.js.map
@@ -19,4 +19,4 @@ const isObjectLike_1 = __importDefault(require("./isObjectLike")), isType_1 = __
19
19
  };
20
20
 
21
21
  exports.default = isPlainObject;
22
- //# sourceMappingURL=isPlainObject.js.map
22
+ //# sourceMappingURL=isPlainObject.js.map
@@ -10,4 +10,4 @@ const objectProto = Object.prototype, isPrototype = function(value) {
10
10
  };
11
11
 
12
12
  exports.default = isPrototype;
13
- //# sourceMappingURL=isPrototype.js.map
13
+ //# sourceMappingURL=isPrototype.js.map
@@ -13,4 +13,4 @@ Object.defineProperty(exports, "__esModule", {
13
13
  const isType_1 = __importDefault(require("./isType")), isRegExp = value => (0, isType_1.default)(value, "RegExp");
14
14
 
15
15
  exports.default = isRegExp;
16
- //# sourceMappingURL=isRegExp.js.map
16
+ //# sourceMappingURL=isRegExp.js.map
@@ -31,4 +31,4 @@ function isShallowEqual(objA, objB) {
31
31
  }
32
32
 
33
33
  exports.isShallowEqual = isShallowEqual;
34
- //# sourceMappingURL=isShallowEqual.js.map
34
+ //# sourceMappingURL=isShallowEqual.js.map
@@ -111,5 +111,4 @@ class HashTable {
111
111
  toImmutableMap() {}
112
112
  }
113
113
 
114
- exports.HashTable = HashTable;
115
- //# sourceMappingURL=hashTable.js.map
114
+ exports.HashTable = HashTable;
package/cjs/fmin/blas1.js CHANGED
@@ -36,4 +36,4 @@ function gemv(output, A, x) {
36
36
 
37
37
  exports.zeros = zeros, exports.zerosM = zerosM, exports.norm2 = norm2, exports.scale = scale,
38
38
  exports.weightedSum = weightedSum, exports.gemv = gemv;
39
- //# sourceMappingURL=blas1.js.map
39
+ //# sourceMappingURL=blas1.js.map
@@ -46,4 +46,4 @@ function conjugateGradient(f, initial, params) {
46
46
  }
47
47
 
48
48
  exports.conjugateGradient = conjugateGradient;
49
- //# sourceMappingURL=conjugate-gradient.js.map
49
+ //# sourceMappingURL=conjugate-gradient.js.map
package/cjs/fmin/index.js CHANGED
@@ -19,4 +19,4 @@ Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./blas1"), exports), __exportStar(require("./nelder-mead"), exports),
21
21
  __exportStar(require("./conjugate-gradient"), exports);
22
- //# sourceMappingURL=index.js.map
22
+ //# sourceMappingURL=index.js.map
@@ -29,4 +29,5 @@ function wolfeLineSearch(f, pk, current, next, a, c1, c2) {
29
29
  return a;
30
30
  }
31
31
 
32
- exports.wolfeLineSearch = wolfeLineSearch;
32
+ exports.wolfeLineSearch = wolfeLineSearch;
33
+ //# sourceMappingURL=linesearch.js.map
@@ -67,4 +67,4 @@ function nelderMead(f, x0, parameters) {
67
67
  }
68
68
 
69
69
  exports.nelderMead = nelderMead;
70
- //# sourceMappingURL=nelder-mead.js.map
70
+ //# sourceMappingURL=nelder-mead.js.map
@@ -22,4 +22,5 @@ export default function cloneDeep(value, ignoreWhen, excludeKeys) {
22
22
  excludeKeys && excludeKeys.includes(key.toString()) ? result[key] = subValue : result[key] = cloneDeep(subValue, ignoreWhen, excludeKeys);
23
23
  }
24
24
  return result;
25
- }
25
+ }
26
+ //# sourceMappingURL=cloneDeep.js.map
@@ -20,5 +20,4 @@ export const field = (fieldStr, opt = {}) => {
20
20
  return fieldSingle(fieldStr, opt);
21
21
  };
22
22
 
23
- export const simpleField = option => option ? "string" == typeof option || "number" == typeof option ? () => option : isFunction(option) ? option : datum => datum[option.field] : null;
24
- //# sourceMappingURL=field.js.map
23
+ export const simpleField = option => option ? "string" == typeof option || "number" == typeof option ? () => option : isFunction(option) ? option : datum => datum[option.field] : null;
@@ -18,4 +18,5 @@ function isEmpty(value) {
18
18
  return !0;
19
19
  }
20
20
 
21
- export default isEmpty;
21
+ export default isEmpty;
22
+ //# sourceMappingURL=isEmpty.js.map
@@ -5,5 +5,4 @@ const isNumber = (value, fuzzy = !1) => {
5
5
  return fuzzy ? "number" === type : "number" === type || isType(value, "Number");
6
6
  };
7
7
 
8
- export default isNumber;
9
- //# sourceMappingURL=isNumber.js.map
8
+ export default isNumber;
@@ -1,4 +1,4 @@
1
1
  const isObjectLike = value => "object" == typeof value && null !== value;
2
2
 
3
3
  export default isObjectLike;
4
- //# sourceMappingURL=isObjectLike.js.map
4
+ //# sourceMappingURL=isObjectLike.js.map
@@ -11,4 +11,4 @@ const isPlainObject = function(value) {
11
11
  };
12
12
 
13
13
  export default isPlainObject;
14
- //# sourceMappingURL=isPlainObject.js.map
14
+ //# sourceMappingURL=isPlainObject.js.map
@@ -4,4 +4,4 @@ const objectProto = Object.prototype, isPrototype = function(value) {
4
4
  };
5
5
 
6
6
  export default isPrototype;
7
- //# sourceMappingURL=isPrototype.js.map
7
+ //# sourceMappingURL=isPrototype.js.map
@@ -3,4 +3,4 @@ import isType from "./isType";
3
3
  const isRegExp = value => isType(value, "RegExp");
4
4
 
5
5
  export default isRegExp;
6
- //# sourceMappingURL=isRegExp.js.map
6
+ //# sourceMappingURL=isRegExp.js.map
@@ -19,4 +19,4 @@ export function isShallowEqual(objA, objB) {
19
19
  return Object.keys(objA).forEach((k => !!is(objA[k], objB[k]) || (ret = !1, ret))),
20
20
  ret;
21
21
  }
22
- //# sourceMappingURL=isShallowEqual.js.map
22
+ //# sourceMappingURL=isShallowEqual.js.map
@@ -101,5 +101,4 @@ export class HashTable {
101
101
  return returnArr;
102
102
  }
103
103
  toImmutableMap() {}
104
- }
105
- //# sourceMappingURL=hashTable.js.map
104
+ }
package/es/fmin/blas1.js CHANGED
@@ -27,4 +27,4 @@ export function weightedSum(ret, w1, v1, w2, v2) {
27
27
  export function gemv(output, A, x) {
28
28
  for (let i = 0; i < output.length; ++i) output[i] = dotProduct(A[i], x);
29
29
  }
30
- //# sourceMappingURL=blas1.js.map
30
+ //# sourceMappingURL=blas1.js.map
@@ -40,4 +40,4 @@ export function conjugateGradient(f, initial, params) {
40
40
  alpha: a
41
41
  }), current;
42
42
  }
43
- //# sourceMappingURL=conjugate-gradient.js.map
43
+ //# sourceMappingURL=conjugate-gradient.js.map
package/es/fmin/index.js CHANGED
@@ -3,4 +3,4 @@ export * from "./blas1";
3
3
  export * from "./nelder-mead";
4
4
 
5
5
  export * from "./conjugate-gradient";
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.js.map
@@ -23,4 +23,5 @@ export function wolfeLineSearch(f, pk, current, next, a, c1, c2) {
23
23
  phi_old = phi, a0 = a, a *= 2;
24
24
  }
25
25
  return a;
26
- }
26
+ }
27
+ //# sourceMappingURL=linesearch.js.map
@@ -59,4 +59,4 @@ export function nelderMead(f, x0, parameters) {
59
59
  x: simplex[0]
60
60
  };
61
61
  }
62
- //# sourceMappingURL=nelder-mead.js.map
62
+ //# sourceMappingURL=nelder-mead.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vutils",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "cjs/index.js",
5
5
  "module": "es/index.js",
6
6
  "types": "es/index.d.ts",
@@ -20,30 +20,20 @@
20
20
  "utility"
21
21
  ],
22
22
  "sideEffects": false,
23
- "scripts": {
24
- "compile": "tsc --noEmit",
25
- "eslint": "eslint --debug --fix src/",
26
- "build": "bundle",
27
- "dev": "bundle --clean -f es -w",
28
- "start": "vite ./vite",
29
- "test": "jest",
30
- "test-check": "DEBUG=jest jest --forceExit --detectOpenHandles --silent false --verbose false --runInBand",
31
- "test-cov": "jest -w 16 --coverage"
32
- },
33
23
  "devDependencies": {
34
- "@internal/bundler": "0.0.1",
35
- "@internal/eslint-config": "0.0.1",
36
- "@internal/ts-config": "0.0.1",
37
24
  "@rushstack/eslint-patch": "~1.1.4",
38
25
  "eslint": "~8.18.0",
39
26
  "vite": "3.2.6",
40
- "@internal/jest-config": "0.0.1",
41
27
  "jest": "~29.5.0",
42
28
  "@jest/globals": "~29.5.0",
43
29
  "ts-jest": "~29.1.0",
44
30
  "@types/jest": "~29.5.0",
45
31
  "typescript": "4.9.5",
46
- "@types/node": "*"
32
+ "@types/node": "*",
33
+ "@internal/eslint-config": "0.0.1",
34
+ "@internal/ts-config": "0.0.1",
35
+ "@internal/jest-config": "0.0.1",
36
+ "@internal/bundler": "0.0.1"
47
37
  },
48
38
  "dependencies": {
49
39
  "eventemitter3": "^4.0.7",
@@ -52,5 +42,15 @@
52
42
  },
53
43
  "publishConfig": {
54
44
  "access": "public"
45
+ },
46
+ "scripts": {
47
+ "compile": "tsc --noEmit",
48
+ "eslint": "eslint --debug --fix src/",
49
+ "build": "bundle",
50
+ "dev": "bundle --clean -f es -w",
51
+ "start": "vite ./vite",
52
+ "test": "jest",
53
+ "test-check": "DEBUG=jest jest --forceExit --detectOpenHandles --silent false --verbose false --runInBand",
54
+ "test-cov": "jest -w 16 --coverage"
55
55
  }
56
- }
56
+ }