Socket
Socket
Sign inDemoInstall

@lite-v3/common-helpers

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lite-v3/common-helpers - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

dist/currency/__tests__/removeRp.test.d.ts

1

dist/array/chunk.d.ts

@@ -15,2 +15,1 @@ /**

export default chunk;
//# sourceMappingURL=chunk.d.ts.map

@@ -8,2 +8,1 @@ /**

export default createRange;
//# sourceMappingURL=createRange.d.ts.map

@@ -1,3 +0,2 @@

declare const _default: (start: number, stop: number, step: number) => number[];
export default _default;
//# sourceMappingURL=createRangeWithStep.d.ts.map
declare const _createRangeWithStep: (start: number, stop: number, step: number) => number[];
export default _createRangeWithStep;

@@ -6,3 +6,3 @@ "use strict";

exports.default = void 0;
var _default = function(start, stop, step) {
var _createRangeWithStep = function(start, stop, step) {
return Array.from({

@@ -14,2 +14,3 @@ length: (stop - start) / step + 1

};
var _default = _createRangeWithStep;
exports.default = _default;

@@ -5,2 +5,1 @@ /**

export default function dedupe<T = unknown>(theArray: T[]): T[];
//# sourceMappingURL=dedupe.d.ts.map

@@ -9,2 +9,1 @@ import toNumber from './toNumber';

export default _default;
//# sourceMappingURL=index.d.ts.map
export default function (str: string): string;
//# sourceMappingURL=removeRp.d.ts.map
export default function (str: string): string;
//# sourceMappingURL=removeThousandSeparator.d.ts.map

@@ -18,2 +18,1 @@ /**

export default function toIDR(idr: number, withIDR?: boolean): string;
//# sourceMappingURL=toIDR.d.ts.map

@@ -18,2 +18,1 @@ /**

export default function toNumber(price: string, base?: number): number;
//# sourceMappingURL=toNumber.d.ts.map

@@ -17,2 +17,1 @@ export declare const WEEKDAYS_LONG: {

};
//# sourceMappingURL=constant.d.ts.map
export default function formatDay(d: Date, locale?: string): string;
//# sourceMappingURL=formatDay.d.ts.map
export default function formatMonthTitle(d: Date, locale?: string): string;
//# sourceMappingURL=formatMonthTitle.d.ts.map
export default function formatWeekdayLong(i: number, locale: 'en' | 'id'): string;
//# sourceMappingURL=formatWeekdayLong.d.ts.map
export default function formatWeekdayShort(i: number, locale: 'en' | 'id'): string;
//# sourceMappingURL=formatWeekdayShort.d.ts.map
export default function getFirstDayOfWeek(locale: 'en' | 'id'): number;
//# sourceMappingURL=getFirstDayOfWeek.d.ts.map

@@ -15,2 +15,1 @@ export declare type TimeDifferenceType = {

export default getTimeDiffAsObject;
//# sourceMappingURL=getTimeDiffAsObject.d.ts.map

@@ -16,2 +16,1 @@ import formatDay from './formatDay';

export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -5,2 +5,1 @@ /**

export default function isValidDate(s: string): boolean;
//# sourceMappingURL=isValidDate.d.ts.map

@@ -7,2 +7,1 @@ /**

export default function timestampFromNow(duration: number): number;
//# sourceMappingURL=timestampFromNow.d.ts.map
declare const canUseDOM: boolean;
export default canUseDOM;
//# sourceMappingURL=canUseDOM.d.ts.map

@@ -9,2 +9,1 @@ import canUseDOM from './canUseDOM';

export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -8,2 +8,1 @@ declare global {

export default isSafari;
//# sourceMappingURL=isSafari.d.ts.map
declare function compose(...funcs: Function[]): Function;
export default compose;
//# sourceMappingURL=compose.d.ts.map

@@ -7,3 +7,3 @@ "use strict";

var swcHelpers = require("@swc/helpers");
var _flowRight = swcHelpers.interopRequireDefault(require("./flowRight"));
var _flowRightJs = swcHelpers.interopRequireDefault(require("./flowRight.js"));
function compose() {

@@ -13,5 +13,5 @@ for(var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++){

}
return (0, _flowRight).default(funcs);
return (0, _flowRightJs).default(funcs);
}
var _default = compose;
exports.default = _default;

@@ -7,2 +7,1 @@ /**

export declare function debounce(fn: Function, wait: number): (...arg: any[]) => void;
//# sourceMappingURL=debounce.d.ts.map

@@ -10,2 +10,1 @@ declare type CallbackType = (...args: any[]) => any;

export default defer;
//# sourceMappingURL=defer.d.ts.map

@@ -23,2 +23,1 @@ export default flow;

declare function flow(funcs?: Function[] | undefined): Function;
//# sourceMappingURL=flow.d.ts.map

@@ -22,2 +22,1 @@ export default flowRight;

declare function flowRight(funcs?: Function[] | undefined): Function;
//# sourceMappingURL=flowRight.d.ts.map

@@ -7,3 +7,3 @@ "use strict";

var swcHelpers = require("@swc/helpers");
var _flow = swcHelpers.interopRequireDefault(require("./flow"));
var _flowJs = swcHelpers.interopRequireDefault(require("./flow.js"));
/**

@@ -28,5 +28,5 @@ * This method is like `flow` except that it composes a function that

*/ function flowRight(funcs) {
return (0, _flow).default(funcs.reverse());
return (0, _flowJs).default(funcs.reverse());
}
var _default = flowRight;
exports.default = _default;

@@ -1,3 +0,2 @@

declare const _default: () => void;
export default _default;
//# sourceMappingURL=noop.d.ts.map
declare const _noop: () => void;
export default _noop;

@@ -6,4 +6,5 @@ "use strict";

exports.default = void 0;
var _default = function() {
var _noop = function() {
};
var _default = _noop;
exports.default = _default;

@@ -1,3 +0,2 @@

declare function _default(o: any, ...keys: any[]): any;
export default _default;
//# sourceMappingURL=omit.d.ts.map
declare const _omit: (o: Record<string, unknown>, ...keys: string[]) => Record<string, unknown>;
export default _omit;

@@ -7,3 +7,3 @@ "use strict";

var swcHelpers = require("@swc/helpers");
var _default = function(o) {
var _omit = function(o) {
for(var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){

@@ -19,2 +19,3 @@ keys[_key - 1] = arguments[_key];

};
var _default = _omit;
exports.default = _default;

@@ -7,2 +7,1 @@ import safeParse from './safeParse';

export default _default;
//# sourceMappingURL=index.d.ts.map
export default function safeParse(str: string): any;
//# sourceMappingURL=safeParse.d.ts.map
declare const execIfFunc: (x: any) => any;
export default execIfFunc;
//# sourceMappingURL=execIfFunc.d.ts.map

@@ -19,2 +19,1 @@ /**

export default ifElse;
//# sourceMappingURL=ifElse.d.ts.map

@@ -9,2 +9,1 @@ import ifElse from './ifElse';

export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -21,2 +21,1 @@ /**

export default function shallowEqual(arg1: any, arg2: any): boolean;
//# sourceMappingURL=shallowEqual.d.ts.map

@@ -9,2 +9,1 @@ /**

export default maskAdress;
//# sourceMappingURL=maskAddress.d.ts.map
export default function (email: string): string;
//# sourceMappingURL=maskEmail.d.ts.map
export default function _default(inputValue: any, seperator: any, pos: any): string;
//# sourceMappingURL=maskPhoneNumber.d.ts.map

@@ -18,2 +18,1 @@ /**

export default counterFormat;
//# sourceMappingURL=counterFormat.d.ts.map
declare const fileSizeFormat: (fileSizeInBytes: number) => string;
export default fileSizeFormat;
//# sourceMappingURL=fileSizeFormat.d.ts.map
export default function (number: any): any;
//# sourceMappingURL=formatNumberUnified.d.ts.map
export default function _default(weight: any): string;
//# sourceMappingURL=formatWeight.d.ts.map
export default function (min: number, max: number): number;
//# sourceMappingURL=getRandomNumber.d.ts.map
export default function humanizeReviewCount(count: number, thousand?: string, million?: string): string;
//# sourceMappingURL=humanizeReviewCount.d.ts.map

@@ -14,2 +14,1 @@ import humanizeReviewCount from './humanizeReviewCount';

export default _default;
//# sourceMappingURL=index.d.ts.map
export default function (value: any): string;
//# sourceMappingURL=numberWithCommas.d.ts.map

@@ -11,2 +11,1 @@ /**

export default removeNonNumber;
//# sourceMappingURL=removeNonNumber.d.ts.map
export default function thousandSeparator(numb: string, sparator?: string): string;
//# sourceMappingURL=thousandSeparator.d.ts.map
declare const escapeRegExp: (str: string) => string;
export default escapeRegExp;
//# sourceMappingURL=escapeRegExp.d.ts.map
export { default as titleCase } from './titleCase';
//# sourceMappingURL=index.d.ts.map

@@ -8,2 +8,1 @@ /**

export default function randomString(length: number): string;
//# sourceMappingURL=randomString.d.ts.map

@@ -8,2 +8,1 @@ /**

export default removeScriptTags;
//# sourceMappingURL=removeScriptTags.d.ts.map
export default function (str: string): string;
//# sourceMappingURL=replaceDot.d.ts.map
export default function sanitizeLang(lang: string): string;
//# sourceMappingURL=sanitizeLang.d.ts.map
export default function (text: string): string;
//# sourceMappingURL=slugify.d.ts.map

@@ -20,2 +20,1 @@ /**

export default stringTemplate;
//# sourceMappingURL=stringTemplate.d.ts.map

@@ -12,4 +12,3 @@ /**

*/
declare const _default: (text: string, delimiter?: string) => string;
export default _default;
//# sourceMappingURL=titleCase.d.ts.map
declare const _titleCase: (text: string, delimiter?: string) => string;
export default _titleCase;

@@ -6,3 +6,13 @@ "use strict";

exports.default = void 0;
var _default = function(text, param) {
/**
* Capitalize every character in the first occurrence after each word according to specified delimiter.
*
* @param {string} text string to be formatted
* @param {string} delimiter string to be used in split method
*
* @return {string} value will be string with a proper text
*
* @example
* const result = titleCase('baju bayi murah'); // result = Baju Bayi Murah
*/ var _titleCase = function(text, param) {
var delimiter = param === void 0 ? ' ' : param;

@@ -13,2 +23,3 @@ return String(text).split(delimiter).map(function(res) {

};
var _default = _titleCase;
exports.default = _default;

@@ -9,2 +9,1 @@ /**

export default hexToRgba;
//# sourceMappingURL=hexToRgba.d.ts.map

@@ -8,2 +8,1 @@ /**

export default pxToRem;
//# sourceMappingURL=pxToRem.d.ts.map
{
"name": "@lite-v3/common-helpers",
"version": "0.0.7",
"version": "0.0.8",
"description": "Public common helpers for Tokopedia Web",

@@ -17,7 +17,7 @@ "repository": {

"build": "pnpm run clean && pnpm run build:dec && pnpm run build:ts",
"build:dec": "tsc --project tsconfig.json --emitDeclarationOnly",
"build:dec": "tsc -p tsconfig.json",
"build:ts": "swc src --out-dir dist",
"clean": "rimraf dist",
"prepublishOnly": "pnpm run build",
"type:check": "tsc -w --pretty --skipLibCheck --noEmit"
"type:check": "tsc -w --pretty --skipLibCheck"
},

@@ -28,2 +28,3 @@ "dependencies": {

"devDependencies": {
"@lite-v3/tsconfig": "^0.0.1",
"@types/node": "^16.11.1"

@@ -30,0 +31,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc