Skip to content

Commit 4366d0f

Browse files
lib.mjs file replaced by the tiny-essentials module.
1 parent 4bd4d49 commit 4366d0f

File tree

5 files changed

+19
-58
lines changed

5 files changed

+19
-58
lines changed

package-lock.json

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "for-promise",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Execute all promises inside a \"for\" script.",
55
"scripts": {
66
"test": "npm run test:mjs && npm run test:cjs && npm run test:js",
@@ -14,8 +14,7 @@
1414
"build-dist": "npm run build",
1515
"build-browserify": "npx browserify build/browserify.js -p esmify > dist/TinyAiApi.web.js",
1616
"clean": "rm -rf dist",
17-
"prepublishOnly" : "npm run build",
18-
"send-to-npm": "npm publish"
17+
"prepublishOnly": "npm run build"
1918
},
2019
"main": "./dist/index.cjs",
2120
"module": "./dist/index.mjs",
@@ -49,15 +48,18 @@
4948
"@babel/core": "^7.26.10",
5049
"@babel/node": "^7.26.0",
5150
"@babel/preset-env": "^7.26.9",
52-
"@rollup/plugin-terser": "^0.4.4",
5351
"@rollup/plugin-commonjs": "^28.0.3",
5452
"@rollup/plugin-node-resolve": "^16.0.1",
53+
"@rollup/plugin-terser": "^0.4.4",
5554
"@rollup/plugin-typescript": "^12.1.2",
5655
"babel-preset-es2015": "^6.24.1",
5756
"prettier": "3.5.3",
5857
"rollup": "^4.40.0",
5958
"rollup-preserve-directives": "^1.1.3",
6059
"tslib": "^2.8.1",
6160
"typescript": "^5.8.3"
61+
},
62+
"dependencies": {
63+
"tiny-essentials": "^1.0.0"
6264
}
6365
}

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Libs
2+
import { objType } from 'tiny-essentials';
23
import { superValidator, validateTotal } from './utils/essentials.mjs';
3-
import { objType } from './utils/lib.mjs';
44

55
/**
66
* Runs an asynchronous iterative operation with advanced control over flow, breaks, and nested (extra) iterations.

src/utils/essentials.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { objType, countObj } from './lib.mjs';
1+
import { countObj, objType } from 'tiny-essentials';
22

33
/**
44
* Validates the total value based on the type of the input.

src/utils/lib.mjs

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)