@ballerine/common
Advanced tools
Comparing version 0.0.1 to 0.4.2
@@ -1,2 +0,20 @@ | ||
var t=async e=>{try{return[await e,void 0]}catch(o){return[void 0,o]}};var r=e=>!Array.isArray(e)&&e!==null&&typeof e=="object";var n=e=>r(e)&&Object.keys(e).length===0;var s=e=>r(e)&&"message"in e&&typeof e.message=="string";var i=e=>typeof e=="function";var u=e=>e==null;var p=(e,...o)=>e.reduce((c,a,f)=>{let x=o[f]??"";return c+a+String(x)},"").replace(/\s+/g," ");var m=async e=>new Promise(o=>setTimeout(o,e));var l=e=>Array.from(new Set(e));export{t as handlePromise,n as isEmptyObject,s as isErrorWithMessage,i as isFunction,u as isNullish,r as isObject,p as noNullish,m as sleep,l as uniqueArray}; | ||
//# sourceMappingURL=index.js.map | ||
/** | ||
* workflow-core | ||
* | ||
* Copyright (c) Ballerine | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.md file in the root directory of this source tree. | ||
* | ||
* @license MIT | ||
*/ | ||
export { handlePromise } from './utils/handle-promise/handle-promise.js'; | ||
export { isEmptyObject } from './utils/is-empty-object/is-empty-object.js'; | ||
export { isErrorWithMessage } from './utils/is-error-with-message/is-error-with-message.js'; | ||
export { isFunction } from './utils/is-function/is-function.js'; | ||
export { isNullish } from './utils/is-nullish/is-nullish.js'; | ||
export { isObject } from './utils/is-object/is-object.js'; | ||
export { noNullish } from './utils/no-nullish/no-nullish.js'; | ||
export { sleep } from './utils/sleep/sleep.js'; | ||
export { uniqueArray } from './utils/unique-array/unique-array.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -5,10 +5,10 @@ { | ||
"author": "Ballerine", | ||
"version": "0.0.1", | ||
"version": "0.4.2", | ||
"description": "common", | ||
"module": "./dist/esm/index.js", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/cjs/index.js", | ||
"browser": "./dist/umd/index.production.js", | ||
"types": "./dist/types/index.d.ts", | ||
"files": [ | ||
"./dist/**", | ||
"./src" | ||
"dist" | ||
], | ||
@@ -21,13 +21,2 @@ "repository": { | ||
"keywords": [], | ||
"scripts": { | ||
"format": "prettier --write .", | ||
"lint": "eslint . --fix", | ||
"typecheck": "tsc --noEmit", | ||
"clean:dist": "rimraf ./dist", | ||
"clean:modules": "rimraf ./node_modules && rimraf ./pnpm-lock.yaml", | ||
"clean": "pnpm clean:dist && pnpm clean:modules", | ||
"build": "tsup", | ||
"watch": "pnpm build --watch", | ||
"test": "vitest run" | ||
}, | ||
"engines": { | ||
@@ -37,2 +26,12 @@ "node": ">=12" | ||
"devDependencies": { | ||
"@babel/core": "7.17.9", | ||
"@babel/preset-env": "7.16.11", | ||
"@babel/preset-typescript": "7.16.7", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"@rollup/plugin-commonjs": "^24.0.1", | ||
"@rollup/plugin-node-resolve": "13.2.1", | ||
"@rollup/plugin-replace": "4.0.0", | ||
"@types/babel__core": "^7.20.0", | ||
"@types/fs-extra": "^11.0.1", | ||
"@types/json-logic-js": "^2.0.1", | ||
"@types/node": "^18.14.0", | ||
@@ -42,12 +41,34 @@ "@typescript-eslint/eslint-plugin": "^5.48.1", | ||
"@vitest/coverage-istanbul": "^0.28.4", | ||
"concurrently": "^7.6.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-functional": "^3.0.2", | ||
"eslint-plugin-import": "^2.22.0", | ||
"fs-extra": "^11.1.0", | ||
"prettier": "^2.1.1", | ||
"rimraf": "^4.1.2", | ||
"tsup": "^6.6.3", | ||
"rollup": "2.70.2", | ||
"rollup-plugin-dts": "4.2.2", | ||
"rollup-plugin-size": "0.2.2", | ||
"rollup-plugin-terser": "7.0.2", | ||
"rollup-plugin-typescript-paths": "^1.4.0", | ||
"rollup-plugin-visualizer": "5.6.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "4.9.5", | ||
"vite": "^4.1.1", | ||
"vitest": "^0.28.4" | ||
}, | ||
"scripts": { | ||
"build": "rollup --config rollup.config.js", | ||
"watch": "concurrently --kill-others \"rollup --config rollup.config.js -w\" \"tsc -b --watch\"", | ||
"test": "vitest", | ||
"format": "prettier --write .", | ||
"lint": "eslint . --fix", | ||
"typecheck": "tsc --noEmit", | ||
"clean:dist": "rimraf ./dist", | ||
"clean:modules": "rimraf ./node_modules && rimraf ./pnpm-lock.yaml", | ||
"clean": "pnpm clean:dist && pnpm clean:modules" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
222700
55
1731
34
2