@bbn/bbn 1.0.291 → 1.0.293
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.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/object/createObject.d.ts +1 -1
- package/dist/fn/object/createObject.js +6 -12
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function createObject(...
|
|
1
|
+
export default function createObject(...originalArgs: any[]): any;
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
1
|
import extend from './extend.js';
|
|
2
|
+
// Args because of typescript doing errors
|
|
11
3
|
export default function createObject() {
|
|
12
|
-
var
|
|
4
|
+
var originalArgs = [];
|
|
13
5
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
14
|
-
|
|
6
|
+
originalArgs[_i] = arguments[_i];
|
|
15
7
|
}
|
|
8
|
+
var args = Array.from(arguments);
|
|
16
9
|
var obj = Object.create(null);
|
|
17
10
|
if (args.length) {
|
|
18
|
-
|
|
11
|
+
args.unshift(obj);
|
|
12
|
+
extend.apply(obj, args);
|
|
19
13
|
}
|
|
20
14
|
return obj;
|
|
21
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbn/bbn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.293",
|
|
4
4
|
"description": "Javascript toolkit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,30 +24,30 @@
|
|
|
24
24
|
"author": "Thomas Nabet <thomas.nabet@gmail.com>",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"chai": "^
|
|
28
|
-
"jsdom": "
|
|
27
|
+
"chai": "^5.1.2",
|
|
28
|
+
"jsdom": "26.0.0",
|
|
29
29
|
"jsdom-global": "3.0.2",
|
|
30
|
-
"mocha": "^
|
|
31
|
-
"ts-loader": "^9.5.
|
|
32
|
-
"typescript": "^5.
|
|
33
|
-
"webpack": "^5.
|
|
34
|
-
"webpack-cli": "^
|
|
30
|
+
"mocha": "^11.0.1",
|
|
31
|
+
"ts-loader": "^9.5.2",
|
|
32
|
+
"typescript": "^5.7.3",
|
|
33
|
+
"webpack": "^5.97.1",
|
|
34
|
+
"webpack-cli": "^6.0.1"
|
|
35
35
|
},
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/nabab/bbn-js/issues"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/nabab/bbn-js#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@rollup/plugin-commonjs": "^
|
|
41
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
42
42
|
"@rollup/plugin-json": "^6.1.0",
|
|
43
|
-
"@rollup/plugin-node-resolve": "^
|
|
44
|
-
"@rollup/plugin-replace": "^
|
|
43
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
44
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
45
45
|
"@rollup/plugin-terser": "^0.4.4",
|
|
46
|
-
"@rollup/plugin-typescript": "^
|
|
47
|
-
"axios": "^1.
|
|
48
|
-
"dayjs": "^1.11.
|
|
49
|
-
"rollup": "^4.
|
|
50
|
-
"tslib": "^2.
|
|
46
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
47
|
+
"axios": "^1.7.9",
|
|
48
|
+
"dayjs": "^1.11.13",
|
|
49
|
+
"rollup": "^4.30.1",
|
|
50
|
+
"tslib": "^2.8.1"
|
|
51
51
|
},
|
|
52
52
|
"directories": {
|
|
53
53
|
"doc": "doc",
|