@percuss.io/utils 0.0.1 → 0.0.3
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/chunk-2J4AIXWB.js +1 -3
- package/dist/{chunk-WEF2NP5F.mjs → chunk-KYSTYI2M.cjs} +3 -1
- package/dist/chunk-S6VKMDVX.js +1 -3
- package/dist/{chunk-5XK774RW.mjs → chunk-TGCJTNFY.cjs} +3 -1
- package/dist/chunk-TZ3Z56CI.js +1 -3
- package/dist/{chunk-55RT75P2.mjs → chunk-Y247HFEH.cjs} +3 -1
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.js +3 -20
- package/dist/isNonEmptyObj/isNonEmptyObj.cjs +10 -0
- package/dist/isNonEmptyObj/isNonEmptyObj.js +1 -10
- package/dist/shuffleArray/shuffleArray.cjs +10 -0
- package/dist/shuffleArray/shuffleArray.js +1 -10
- package/dist/sleep/sleep.cjs +10 -0
- package/dist/sleep/sleep.js +1 -10
- package/package.json +12 -12
- package/dist/index.d.mts +0 -3
- package/dist/index.mjs +0 -3
- package/dist/isNonEmptyObj/isNonEmptyObj.mjs +0 -1
- package/dist/shuffleArray/shuffleArray.mjs +0 -1
- package/dist/sleep/sleep.mjs +0 -1
- /package/dist/isNonEmptyObj/{isNonEmptyObj.d.mts → isNonEmptyObj.d.cts} +0 -0
- /package/dist/shuffleArray/{shuffleArray.d.mts → shuffleArray.d.cts} +0 -0
- /package/dist/sleep/{sleep.d.mts → sleep.d.cts} +0 -0
package/dist/chunk-2J4AIXWB.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
// src/isNonEmptyObj/isNonEmptyObj.ts
|
|
4
2
|
function isNonEmptyObj(value) {
|
|
5
3
|
return value !== null && typeof value === `object` && !Array.isArray(value) && Object.keys(value).length > 0;
|
|
6
4
|
}
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
export { isNonEmptyObj };
|
package/dist/chunk-S6VKMDVX.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
// src/shuffleArray/shuffleArray.ts
|
|
4
2
|
function shuffleArray(array) {
|
|
5
3
|
const clonedArr = [...array];
|
|
@@ -10,4 +8,4 @@ function shuffleArray(array) {
|
|
|
10
8
|
return clonedArr;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
export { shuffleArray };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
// src/isNonEmptyObj/isNonEmptyObj.ts
|
|
2
4
|
function isNonEmptyObj(value) {
|
|
3
5
|
return value !== null && typeof value === `object` && !Array.isArray(value) && Object.keys(value).length > 0;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
exports.isNonEmptyObj = isNonEmptyObj;
|
package/dist/chunk-TZ3Z56CI.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
// src/shuffleArray/shuffleArray.ts
|
|
2
4
|
function shuffleArray(array) {
|
|
3
5
|
const clonedArr = [...array];
|
|
@@ -8,4 +10,4 @@ function shuffleArray(array) {
|
|
|
8
10
|
return clonedArr;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
exports.shuffleArray = shuffleArray;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTGCJTNFY_cjs = require('./chunk-TGCJTNFY.cjs');
|
|
4
|
+
var chunkY247HFEH_cjs = require('./chunk-Y247HFEH.cjs');
|
|
5
|
+
var chunkKYSTYI2M_cjs = require('./chunk-KYSTYI2M.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "isNonEmptyObj", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkTGCJTNFY_cjs.isNonEmptyObj; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "shuffleArray", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkY247HFEH_cjs.shuffleArray; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "sleep", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkKYSTYI2M_cjs.sleep; }
|
|
20
|
+
});
|
package/dist/index.d.cts
ADDED
package/dist/index.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var chunkS6VKMDVX_js = require('./chunk-S6VKMDVX.js');
|
|
5
|
-
var chunkTZ3Z56CI_js = require('./chunk-TZ3Z56CI.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "isNonEmptyObj", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunk2J4AIXWB_js.isNonEmptyObj; }
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "shuffleArray", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return chunkS6VKMDVX_js.shuffleArray; }
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "sleep", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return chunkTZ3Z56CI_js.sleep; }
|
|
20
|
-
});
|
|
1
|
+
export { isNonEmptyObj } from './chunk-2J4AIXWB.js';
|
|
2
|
+
export { shuffleArray } from './chunk-S6VKMDVX.js';
|
|
3
|
+
export { sleep } from './chunk-TZ3Z56CI.js';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunk2J4AIXWB_js = require('../chunk-2J4AIXWB.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "isNonEmptyObj", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunk2J4AIXWB_js.isNonEmptyObj; }
|
|
10
|
-
});
|
|
1
|
+
export { isNonEmptyObj } from '../chunk-2J4AIXWB.js';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkS6VKMDVX_js = require('../chunk-S6VKMDVX.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "shuffleArray", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkS6VKMDVX_js.shuffleArray; }
|
|
10
|
-
});
|
|
1
|
+
export { shuffleArray } from '../chunk-S6VKMDVX.js';
|
package/dist/sleep/sleep.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percuss.io/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "utils",
|
|
5
|
-
"main": "./dist/index.
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
"keywords": [],
|
|
48
48
|
"author": "",
|
|
49
49
|
"license": "MIT",
|
|
50
|
-
"type": "
|
|
50
|
+
"type": "module",
|
|
51
51
|
"bugs": {
|
|
52
52
|
"url": "https://github.com/percuss-io/utils/issues"
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://github.com/percuss-io/utils#readme",
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@eslint/js": "^9.
|
|
57
|
-
"@percuss.io/eslint-config-ericcarraway": "
|
|
58
|
-
"@stylistic/eslint-plugin": "^
|
|
59
|
-
"@types/node": "^
|
|
60
|
-
"eslint-plugin-import": "^2.
|
|
56
|
+
"@eslint/js": "^9.39.2",
|
|
57
|
+
"@percuss.io/eslint-config-ericcarraway": "^7.1.0",
|
|
58
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
59
|
+
"@types/node": "^25.0.3",
|
|
60
|
+
"eslint-plugin-import": "^2.32.0",
|
|
61
61
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
62
62
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
63
|
-
"tsup": "^8.
|
|
64
|
-
"typescript": "^5.
|
|
65
|
-
"typescript-eslint": "^8.
|
|
66
|
-
"vitest": "^
|
|
63
|
+
"tsup": "^8.5.1",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"typescript-eslint": "^8.51.0",
|
|
66
|
+
"vitest": "^4.0.16"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/dist/index.d.mts
DELETED
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { isNonEmptyObj } from '../chunk-5XK774RW.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { shuffleArray } from '../chunk-55RT75P2.mjs';
|
package/dist/sleep/sleep.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { sleep } from '../chunk-WEF2NP5F.mjs';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|