@lite-v3/common-helpers
Advanced tools
Comparing version 0.0.1 to 0.0.6
@@ -15,1 +15,2 @@ /** | ||
export default chunk; | ||
//# sourceMappingURL=chunk.d.ts.map |
@@ -8,1 +8,2 @@ /** | ||
export default createRange; | ||
//# sourceMappingURL=createRange.d.ts.map |
declare const _default: (start: number, stop: number, step: number) => number[]; | ||
export default _default; | ||
//# sourceMappingURL=createRangeWithStep.d.ts.map |
@@ -5,1 +5,2 @@ /** | ||
export default function dedupe<T = unknown>(theArray: T[]): T[]; | ||
//# sourceMappingURL=dedupe.d.ts.map |
@@ -9,1 +9,2 @@ import toNumber from './toNumber'; | ||
export default _default; | ||
//# sourceMappingURL=index.d.ts.map |
export default function (str: string): string; | ||
//# sourceMappingURL=removeRp.d.ts.map |
"use strict"; | ||
exports.default = _default; | ||
function _default(str) { | ||
exports.default = _callee; | ||
function _callee(str) { | ||
return str.toString().replace(/Rp /g, ''); | ||
} |
export default function (str: string): string; | ||
//# sourceMappingURL=removeThousandSeparator.d.ts.map |
"use strict"; | ||
exports.default = _default; | ||
function _default(str) { | ||
exports.default = _callee; | ||
function _callee(str) { | ||
return str.toString().replace(/\./g, ''); | ||
} |
@@ -18,1 +18,2 @@ /** | ||
export default function toIDR(idr: number, withIDR?: boolean): string; | ||
//# sourceMappingURL=toIDR.d.ts.map |
@@ -18,1 +18,2 @@ /** | ||
export default function toNumber(price: string, base?: number): number; | ||
//# sourceMappingURL=toNumber.d.ts.map |
{ | ||
"name": "@lite-v3/common-helpers", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"files": ["dist"], | ||
"version": "0.0.6", | ||
"description": "Public common helpers for Tokopedia Web", | ||
"repository": { | ||
@@ -11,13 +9,18 @@ "type": "git", | ||
}, | ||
"license": "ISC", | ||
"author": "WPE", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"type:check": "tsc -w --pretty --skipLibCheck --noEmit", | ||
"build": "pnpm run clean && pnpm run build:dec && pnpm run build:ts", | ||
"build:dec": "tsc --project tsconfig.json --emitDeclarationOnly", | ||
"build:ts": "swc src --out-dir dist", | ||
"clean": "rimraf dist", | ||
"build:ts": "swc src --out-dir dist", | ||
"build:dec": "tsc ./src/**/*.ts --declaration --allowJs --downlevelIteration --emitDeclarationOnly --outDir dist", | ||
"build": "pnpm run clean && pnpm run build:ts && pnpm run build:dec", | ||
"prepublishOnly": "pnpm run build", | ||
"release": "standard-version -t @lite-v3/common-helpers\\@ --no-verify" | ||
"type:check": "tsc -w --pretty --skipLibCheck --noEmit" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.10.9" | ||
"@types/node": "^16.11.1" | ||
}, | ||
@@ -29,5 +32,3 @@ "engines": { | ||
"access": "public" | ||
}, | ||
"author": "WPE", | ||
"license": "ISC" | ||
} | ||
} |
# 🙏 @lite-v3/common-helpers | ||
Public commonn helpers for Tokopedia Web | ||
Public common helpers for Tokopedia Web | ||
@@ -36,2 +36,54 @@ ![By Tokopedia](https://img.shields.io/badge/WPE-Tokopedia-brightgreen.svg?style=flat-square) [![Version][npm-badge]][npm] | ||
├── toNumber | ||
├─ date | ||
├── constant | ||
├── formatDay | ||
├── formatMonthTitle | ||
├── formatWeekdayLong | ||
├── formatWeekdayShort | ||
├── getFirstDayOfWeek | ||
├── getTimeDiffAsObject | ||
├── isValidDate | ||
├── timestampFromNow | ||
├─ env | ||
├── canUseDOM | ||
├── isSafari | ||
├─ fp | ||
├── compose | ||
├── debounce | ||
├── defer | ||
├── flow | ||
├── flowRight | ||
├── noop | ||
├── omit | ||
├─ json | ||
├── safeParse | ||
├─ logic | ||
├── execIfFunc | ||
├── ifElse | ||
├── shallowEqual | ||
├─ mask | ||
├── maskAddress | ||
├── maskEmail | ||
├─ number | ||
├── counterFormat | ||
├── fileSizeFormat | ||
├── formatNumberUnified | ||
├── formatWeight | ||
├── getRandomNumber | ||
├── humanizeReviewCount | ||
├── numberWithCommas | ||
├── removeNonNumber | ||
├── thousandSeparator | ||
├─ string | ||
├── escapeRegExp | ||
├── randomString | ||
├── removeScriptTag | ||
├── replaceDot | ||
├── sanitizeLang | ||
├── slugify | ||
├── stringTemplate | ||
├── titleCase | ||
├─ styles | ||
├── hexToRgba | ||
├── pxToRem | ||
``` | ||
@@ -38,0 +90,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58852
179
1353
96
2