@lite-v3/common-helpers
Advanced tools
Comparing version 0.0.12 to 0.0.13
102
CHANGELOG.md
@@ -1,49 +0,61 @@ | ||
# Changelog | ||
### Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
This file is automatically generated by `@lite-v3/changlogger`. Do not intentionally change this manually! | ||
### 0.0.12 (2022-02-09) | ||
### Bug Fixes | ||
#### @lite-v3/common-helpers@0.0.13 | ||
* fix(common-helpers): fix emitter default export ([#459](https://github.com/tokopedia/wpe-lite-packages/issues/459)) ([b360257](https://github.com/tokopedia/wpe-lite-packages/commit/0bcf3d0d4d760365d23a6a3698accb28ddcf44f7)) | ||
> 16 February 2022 | ||
### 0.0.11 (2022-02-08) | ||
### Features | ||
* feat(common-helpers): add event emitter ([#445](https://github.com/tokopedia/wpe-lite-packages/issues/445)) ([b360257](https://github.com/tokopedia/wpe-lite-packages/commit/b360257031c7d1929baae47f8fcd1af0a358bc6d)) | ||
### 0.0.6 (2021-10-19) | ||
### Features | ||
* @lite-v3/polyfills ([#3](https://github.com/tokopedia/wpe-lite-packages/issues/3)) ([5919596](https://github.com/tokopedia/wpe-lite-packages/commit/591959617f30c0d351ebe8a1557fb7b7874bc482)) | ||
* add more public helpers ([#28](https://github.com/tokopedia/wpe-lite-packages/issues/28)) ([c8f0c52](https://github.com/tokopedia/wpe-lite-packages/commit/c8f0c5259f2e1b95d220ebabf4532b53a960e681)) | ||
* changelog ([#9](https://github.com/tokopedia/wpe-lite-packages/issues/9)) ([9cf759b](https://github.com/tokopedia/wpe-lite-packages/commit/9cf759ba1e39581b74bb45f9ef2536488e3233a1)) | ||
* eslint-config-tokopedia-lite ([#19](https://github.com/tokopedia/wpe-lite-packages/issues/19)) ([33cfe5b](https://github.com/tokopedia/wpe-lite-packages/commit/33cfe5ba44dab4a2f79415d27999c6117dc94086)) | ||
* eslint-plugin-tokopedia-lite ([#11](https://github.com/tokopedia/wpe-lite-packages/issues/11)) ([a86cf01](https://github.com/tokopedia/wpe-lite-packages/commit/a86cf01c53e28ad382d5c616704231eae1b0771c)) | ||
* **jest-coverage-reporter:** init commit -eslint ([#4](https://github.com/tokopedia/wpe-lite-packages/issues/4)) ([5b08b28](https://github.com/tokopedia/wpe-lite-packages/commit/5b08b28d542781676063f88a63cde111336ab068)) | ||
### Bug Fixes | ||
* repace lodash/get to lodash.get ([#16](https://github.com/tokopedia/wpe-lite-packages/issues/16)) ([ec499fd](https://github.com/tokopedia/wpe-lite-packages/commit/ec499fd49b08d4e0f8e202903df6d650be7e121c)) | ||
### 0.0.3 (2021-10-19) | ||
### Features | ||
* @lite-v3/polyfills ([#3](https://github.com/tokopedia/wpe-lite-packages/issues/3)) ([5919596](https://github.com/tokopedia/wpe-lite-packages/commit/591959617f30c0d351ebe8a1557fb7b7874bc482)) | ||
* add more public helpers ([#28](https://github.com/tokopedia/wpe-lite-packages/issues/28)) ([c8f0c52](https://github.com/tokopedia/wpe-lite-packages/commit/c8f0c5259f2e1b95d220ebabf4532b53a960e681)) | ||
* changelog ([#9](https://github.com/tokopedia/wpe-lite-packages/issues/9)) ([9cf759b](https://github.com/tokopedia/wpe-lite-packages/commit/9cf759ba1e39581b74bb45f9ef2536488e3233a1)) | ||
* eslint-config-tokopedia-lite ([#19](https://github.com/tokopedia/wpe-lite-packages/issues/19)) ([33cfe5b](https://github.com/tokopedia/wpe-lite-packages/commit/33cfe5ba44dab4a2f79415d27999c6117dc94086)) | ||
* eslint-plugin-tokopedia-lite ([#11](https://github.com/tokopedia/wpe-lite-packages/issues/11)) ([a86cf01](https://github.com/tokopedia/wpe-lite-packages/commit/a86cf01c53e28ad382d5c616704231eae1b0771c)) | ||
* **jest-coverage-reporter:** init commit -eslint ([#4](https://github.com/tokopedia/wpe-lite-packages/issues/4)) ([5b08b28](https://github.com/tokopedia/wpe-lite-packages/commit/5b08b28d542781676063f88a63cde111336ab068)) | ||
* @lite-v3/polyfills ([#3](https://github.com/tokopedia/wpe-lite-packages/issues/3)) ([5919596](https://github.com/tokopedia/wpe-lite-packages/commit/591959617f30c0d351ebe8a1557fb7b7874bc482)) | ||
* add more public helpers ([#28](https://github.com/tokopedia/wpe-lite-packages/issues/28)) ([c8f0c52](https://github.com/tokopedia/wpe-lite-packages/commit/c8f0c5259f2e1b95d220ebabf4532b53a960e681)) | ||
* changelog ([#9](https://github.com/tokopedia/wpe-lite-packages/issues/9)) ([9cf759b](https://github.com/tokopedia/wpe-lite-packages/commit/9cf759ba1e39581b74bb45f9ef2536488e3233a1)) | ||
* eslint-config-tokopedia-lite ([#19](https://github.com/tokopedia/wpe-lite-packages/issues/19)) ([33cfe5b](https://github.com/tokopedia/wpe-lite-packages/commit/33cfe5ba44dab4a2f79415d27999c6117dc94086)) | ||
* eslint-plugin-tokopedia-lite ([#11](https://github.com/tokopedia/wpe-lite-packages/issues/11)) ([a86cf01](https://github.com/tokopedia/wpe-lite-packages/commit/a86cf01c53e28ad382d5c616704231eae1b0771c)) | ||
* **jest-coverage-reporter:** init commit -eslint ([#4](https://github.com/tokopedia/wpe-lite-packages/issues/4)) ([5b08b28](https://github.com/tokopedia/wpe-lite-packages/commit/5b08b28d542781676063f88a63cde111336ab068)) | ||
### Bug Fixes | ||
* repace lodash/get to lodash.get ([#16](https://github.com/tokopedia/wpe-lite-packages/issues/16)) ([ec499fd](https://github.com/tokopedia/wpe-lite-packages/commit/ec499fd49b08d4e0f8e202903df6d650be7e121c)) | ||
* repace lodash/get to lodash.get ([#16](https://github.com/tokopedia/wpe-lite-packages/issues/16)) ([ec499fd](https://github.com/tokopedia/wpe-lite-packages/commit/ec499fd49b08d4e0f8e202903df6d650be7e121c)) | ||
- fix(common-helpers): fix emitter default export [`#459`](https://github.com/tokopedia/wpe-lite-packages/pull/459)(by Salman Al Fariz) | ||
- feat(common-helpers): add event emitter [`#445`](https://github.com/tokopedia/wpe-lite-packages/pull/445)(by Salman Al Fariz) | ||
- chore: use workspace alias [`#381`](https://github.com/tokopedia/wpe-lite-packages/pull/381)(by Irfan Maulana (@mazipan)) | ||
- feat(type-checking): enable in lite-v3 [`#316`](https://github.com/tokopedia/wpe-lite-packages/pull/316)(by Muhammad A Faishal) | ||
- ci: update node engines [`#240`](https://github.com/tokopedia/wpe-lite-packages/pull/240)(by Irfan Maulana (@mazipan)) | ||
- fix: common helper fix import [`#246`](https://github.com/tokopedia/wpe-lite-packages/pull/246)(by Ryan Purnama Wijalaksana) | ||
- ci(core): rewrite pr_check and publish script [`#213`](https://github.com/tokopedia/wpe-lite-packages/pull/213)(by Irfan Maulana (@mazipan)) | ||
- chore(core): set engine to node 14 for all packages [`#170`](https://github.com/tokopedia/wpe-lite-packages/pull/170)(by Irfan Maulana (@mazipan)) | ||
- refactor(test): improve lite-testing [`#132`](https://github.com/tokopedia/wpe-lite-packages/pull/132)(by Muhammad A Faishal) | ||
- refactor(script): postinstall script & swc config [`#111`](https://github.com/tokopedia/wpe-lite-packages/pull/111)(by Muhammad A Faishal) | ||
- refactor(scripts): restructure [`#106`](https://github.com/tokopedia/wpe-lite-packages/pull/106)(by Muhammad A Faishal) | ||
- feat: lite-config preparation [`#102`](https://github.com/tokopedia/wpe-lite-packages/pull/102)(by Irfan Maulana (@mazipan)) | ||
- chore: always use atest on internal deps [`#78`](https://github.com/tokopedia/wpe-lite-packages/pull/78)(by Irfan Maulana (@mazipan)) | ||
- chore: lite-shared-config [`#48`](https://github.com/tokopedia/wpe-lite-packages/pull/48)(by Irfan Maulana (@mazipan)) | ||
- chore: add entry point for each dirs [`#44`](https://github.com/tokopedia/wpe-lite-packages/pull/44)(by Irfan Maulana (@mazipan)) | ||
- chore: package generator [`#41`](https://github.com/tokopedia/wpe-lite-packages/pull/41)(by Irfan Maulana (@mazipan)) | ||
- ci: failed type-check [`#38`](https://github.com/tokopedia/wpe-lite-packages/pull/38)(by Irfan Maulana (@mazipan)) | ||
- chore: central ts config [`#37`](https://github.com/tokopedia/wpe-lite-packages/pull/37)(by Irfan Maulana (@mazipan)) | ||
- fix: swcrc [`#36`](https://github.com/tokopedia/wpe-lite-packages/pull/36)(by Irfan Maulana (@mazipan)) | ||
- ci: build error [`#35`](https://github.com/tokopedia/wpe-lite-packages/pull/35)(by Irfan Maulana (@mazipan)) | ||
- ci: update changelog generator script [`#31`](https://github.com/tokopedia/wpe-lite-packages/pull/31)(by Irfan Maulana (@mazipan)) | ||
- chore: int lite-utils, custom-jest, lite-client-logger, lite-logger [`#30`](https://github.com/tokopedia/wpe-lite-packages/pull/30)(by Irfan Maulana (@mazipan)) | ||
- feat: add more public helpers [`#28`](https://github.com/tokopedia/wpe-lite-packages/pull/28)(by Irfan Maulana (@mazipan)) | ||
- ci: disable for now [`#27`](https://github.com/tokopedia/wpe-lite-packages/pull/27)(by Irfan Maulana (@mazipan)) | ||
- ci: check workflow [`#23`](https://github.com/tokopedia/wpe-lite-packages/pull/23)(by Irfan Maulana (@mazipan)) | ||
- chore: add common helpers to public package [`#18`](https://github.com/tokopedia/wpe-lite-packages/pull/18)(by Irfan Maulana (@mazipan)) | ||
- feat: add more public helpers (#28) [`c8f0c52`](https://github.com/tokopedia/wpe-lite-packages/commit/c8f0c5259f2e1b95d220ebabf4532b53a960e681)(by Irfan Maulana (@mazipan)) | ||
- chore: add common helpers to public package (#18) [`e5f9ee5`](https://github.com/tokopedia/wpe-lite-packages/commit/e5f9ee54e9a535e898a88811df3cb53d89487f58)(by Irfan Maulana (@mazipan)) | ||
- chore: add entry point for each dirs (#44) [`c3b135f`](https://github.com/tokopedia/wpe-lite-packages/commit/c3b135f1a8e7e2e160719e6f1ab4362faaf59ba8)(by Irfan Maulana (@mazipan)) | ||
- feat(common-helpers): add event emitter (#445) [`88db5e4`](https://github.com/tokopedia/wpe-lite-packages/commit/88db5e469d8031a0c954526db50e408c39da65d3)(by Salman Al Fariz) | ||
- ci: update changelog generator script (#31) [`14d317c`](https://github.com/tokopedia/wpe-lite-packages/commit/14d317ce360470dd8a01161d2944ddff332f66ae)(by Irfan Maulana (@mazipan)) | ||
- ci: disable for now (#27) [`69d64ba`](https://github.com/tokopedia/wpe-lite-packages/commit/69d64ba0da855ee1d68b3796d2ec4b02b500c3eb)(by Irfan Maulana (@mazipan)) | ||
- fix: swcrc (#36) [`42af408`](https://github.com/tokopedia/wpe-lite-packages/commit/42af408920d99158738a56678db53b6c5d7608c3)(by Irfan Maulana (@mazipan)) | ||
- ci: check workflow (#23) [`7c0cb5c`](https://github.com/tokopedia/wpe-lite-packages/commit/7c0cb5c9df342f9c26882bb41dd9485f53a05f33)(by Irfan Maulana (@mazipan)) | ||
- chore: int lite-utils, custom-jest, lite-client-logger, lite-logger (#30) [`1322b36`](https://github.com/tokopedia/wpe-lite-packages/commit/1322b36ee9d957c8eac0b8542dfb439a7321535c)(by Irfan Maulana (@mazipan)) | ||
- ci: build error (#35) [`51a9524`](https://github.com/tokopedia/wpe-lite-packages/commit/51a9524a51405c9ace086c0d5943574fc92d3aa8)(by Irfan Maulana (@mazipan)) | ||
- chore: central ts config (#37) [`21912b6`](https://github.com/tokopedia/wpe-lite-packages/commit/21912b6654540852caf49b437eec62713a280fb5)(by Irfan Maulana (@mazipan)) | ||
- ci: failed type-check (#38) [`31491e9`](https://github.com/tokopedia/wpe-lite-packages/commit/31491e9a404edb9e4a683d6efe17ab07f583276d)(by Irfan Maulana (@mazipan)) | ||
- chore: package generator (#41) [`c9ca1b7`](https://github.com/tokopedia/wpe-lite-packages/commit/c9ca1b7e3da2eea2f5b2bd1ef5b19c952cc66c67)(by Irfan Maulana (@mazipan)) | ||
- refactor(scripts): restructure (#106) [`276b617`](https://github.com/tokopedia/wpe-lite-packages/commit/276b617bce6a690cfbe5ffcd0be1fc233d6f4160)(by Muhammad A Faishal) | ||
- refactor(test): improve lite-testing (#132) [`9171706`](https://github.com/tokopedia/wpe-lite-packages/commit/9171706a6b0945a508cc6a3638d2bf82743dd775)(by Muhammad A Faishal) | ||
- fix(common-helpers): fix emitter default export (#459) [`926cedc`](https://github.com/tokopedia/wpe-lite-packages/commit/926cedce52b0088fbf8b95a51200b28d88e3e694)(by Salman Al Fariz) | ||
- ci(core): rewrite pr_check and publish script (#213) [`7023521`](https://github.com/tokopedia/wpe-lite-packages/commit/70235215402af831bdac6981ab856b92c837118f)(by Irfan Maulana (@mazipan)) | ||
- chore: lite-shared-config (#48) [`4d494e3`](https://github.com/tokopedia/wpe-lite-packages/commit/4d494e3ad0392f0e649b3e3d1c19184bd3954c7b)(by Irfan Maulana (@mazipan)) | ||
- chore: always use atest on internal deps (#78) [`06d522a`](https://github.com/tokopedia/wpe-lite-packages/commit/06d522a3a888d849f2a7897208c105ca8464dd98)(by Irfan Maulana (@mazipan)) | ||
- feat: lite-config preparation (#102) [`66487af`](https://github.com/tokopedia/wpe-lite-packages/commit/66487afe734a096e30e268ba7dcc9e3776c3c383)(by Irfan Maulana (@mazipan)) | ||
- refactor(script): postinstall script & swc config (#111) [`bc4cc7c`](https://github.com/tokopedia/wpe-lite-packages/commit/bc4cc7c97952e3e50f08d98931c91671c7c1d7c1)(by Muhammad A Faishal) | ||
- chore(core): set engine to node 14 for all packages (#170) [`6757ec5`](https://github.com/tokopedia/wpe-lite-packages/commit/6757ec502217bfc5e342239f327f77ae1a086d28)(by Irfan Maulana (@mazipan)) | ||
- fix: common helper fix import (#246) [`9a15dfd`](https://github.com/tokopedia/wpe-lite-packages/commit/9a15dfda58589d3f1bfb6df6ca0de079e8841026)(by Ryan Purnama Wijalaksana) | ||
- ci: update node engines (#240) [`427d1cd`](https://github.com/tokopedia/wpe-lite-packages/commit/427d1cdbd284f03da589288e342c5d8ece79da3e)(by Irfan Maulana (@mazipan)) | ||
- feat(type-checking): enable in lite-v3 (#316) [`97e9424`](https://github.com/tokopedia/wpe-lite-packages/commit/97e9424062dd5c15bfd862abf108855dc3615461)(by Muhammad A Faishal) | ||
- chore: use workspace alias (#381) [`594fe0f`](https://github.com/tokopedia/wpe-lite-packages/commit/594fe0f8f137f7ebd056839a09f149f6e2c70e5f)(by Irfan Maulana (@mazipan)) | ||
- fix: fix incorrect re-export default module [`6c0924c`](https://github.com/tokopedia/wpe-lite-packages/commit/6c0924c41407f524910afd4bea53641aaa5a160b)(by miqdadfwz) |
@@ -1,4 +0,4 @@ | ||
export * from './chunk'; | ||
export * from './createRange'; | ||
export * from './createRangeWithStep'; | ||
export * from './dedupe'; | ||
export { default as chunk } from './chunk'; | ||
export { default as createRange } from './createRange'; | ||
export { default as createRangeWithStep } from './createRangeWithStep'; | ||
export { default as dedupe } from './dedupe'; |
@@ -5,51 +5,30 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _chunk = swcHelpers.interopRequireWildcard(require("./chunk")); | ||
Object.keys(_chunk).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _chunk[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _chunk[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "chunk", { | ||
enumerable: true, | ||
get: function() { | ||
return _chunk.default; | ||
} | ||
}); | ||
var _createRange = swcHelpers.interopRequireWildcard(require("./createRange")); | ||
Object.keys(_createRange).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _createRange[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _createRange[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "createRange", { | ||
enumerable: true, | ||
get: function() { | ||
return _createRange.default; | ||
} | ||
}); | ||
var _createRangeWithStep = swcHelpers.interopRequireWildcard(require("./createRangeWithStep")); | ||
Object.keys(_createRangeWithStep).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _createRangeWithStep[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _createRangeWithStep[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "createRangeWithStep", { | ||
enumerable: true, | ||
get: function() { | ||
return _createRangeWithStep.default; | ||
} | ||
}); | ||
var _dedupe = swcHelpers.interopRequireWildcard(require("./dedupe")); | ||
Object.keys(_dedupe).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _dedupe[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _dedupe[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "dedupe", { | ||
enumerable: true, | ||
get: function() { | ||
return _dedupe.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _chunk = swcHelpers.interopRequireDefault(require("./chunk")); | ||
var _createRange = swcHelpers.interopRequireDefault(require("./createRange")); | ||
var _createRangeWithStep = swcHelpers.interopRequireDefault(require("./createRangeWithStep")); | ||
var _dedupe = swcHelpers.interopRequireDefault(require("./dedupe")); |
@@ -1,4 +0,4 @@ | ||
export * from './removeRp'; | ||
export * from './removeThousandSeparator'; | ||
export * from './toNumber'; | ||
export * from './toIDR'; | ||
export { default as removeRp } from './removeRp'; | ||
export { default as removeThousandSeparator } from './removeThousandSeparator'; | ||
export { default as toNumber } from './toNumber'; | ||
export { default as toIDR } from './toIDR'; |
@@ -5,51 +5,30 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _removeRp = swcHelpers.interopRequireWildcard(require("./removeRp")); | ||
Object.keys(_removeRp).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _removeRp[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _removeRp[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "removeRp", { | ||
enumerable: true, | ||
get: function() { | ||
return _removeRp.default; | ||
} | ||
}); | ||
var _removeThousandSeparator = swcHelpers.interopRequireWildcard(require("./removeThousandSeparator")); | ||
Object.keys(_removeThousandSeparator).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _removeThousandSeparator[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _removeThousandSeparator[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "removeThousandSeparator", { | ||
enumerable: true, | ||
get: function() { | ||
return _removeThousandSeparator.default; | ||
} | ||
}); | ||
var _toNumber = swcHelpers.interopRequireWildcard(require("./toNumber")); | ||
Object.keys(_toNumber).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _toNumber[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _toNumber[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "toNumber", { | ||
enumerable: true, | ||
get: function() { | ||
return _toNumber.default; | ||
} | ||
}); | ||
var _toIDR = swcHelpers.interopRequireWildcard(require("./toIDR")); | ||
Object.keys(_toIDR).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _toIDR[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _toIDR[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "toIDR", { | ||
enumerable: true, | ||
get: function() { | ||
return _toIDR.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _removeRp = swcHelpers.interopRequireDefault(require("./removeRp")); | ||
var _removeThousandSeparator = swcHelpers.interopRequireDefault(require("./removeThousandSeparator")); | ||
var _toNumber = swcHelpers.interopRequireDefault(require("./toNumber")); | ||
var _toIDR = swcHelpers.interopRequireDefault(require("./toIDR")); |
export * from './constant'; | ||
export * from './formatDay'; | ||
export * from './formatMonthTitle'; | ||
export * from './formatWeekdayLong'; | ||
export * from './formatWeekdayShort'; | ||
export * from './getFirstDayOfWeek'; | ||
export * from './isValidDate'; | ||
export { default as formatDay } from './formatDay'; | ||
export { default as formatMonthTitle } from './formatMonthTitle'; | ||
export { default as formatWeekdayLong } from './formatWeekdayLong'; | ||
export { default as formatWeekdayShort } from './formatWeekdayShort'; | ||
export { default as getFirstDayOfWeek } from './getFirstDayOfWeek'; | ||
export { default as isValidDate } from './isValidDate'; | ||
export type { TimeDifferenceType } from './getTimeDiffAsObject'; |
@@ -5,87 +5,64 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _constant = swcHelpers.interopRequireWildcard(require("./constant")); | ||
Object.keys(_constant).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _constant[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _constant[key]; | ||
} | ||
}); | ||
var _exportNames = { | ||
formatDay: true, | ||
formatMonthTitle: true, | ||
formatWeekdayLong: true, | ||
formatWeekdayShort: true, | ||
getFirstDayOfWeek: true, | ||
isValidDate: true | ||
}; | ||
Object.defineProperty(exports, "formatDay", { | ||
enumerable: true, | ||
get: function() { | ||
return _formatDay.default; | ||
} | ||
}); | ||
var _formatDay = swcHelpers.interopRequireWildcard(require("./formatDay")); | ||
Object.keys(_formatDay).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _formatDay[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _formatDay[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "formatMonthTitle", { | ||
enumerable: true, | ||
get: function() { | ||
return _formatMonthTitle.default; | ||
} | ||
}); | ||
var _formatMonthTitle = swcHelpers.interopRequireWildcard(require("./formatMonthTitle")); | ||
Object.keys(_formatMonthTitle).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _formatMonthTitle[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _formatMonthTitle[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "formatWeekdayLong", { | ||
enumerable: true, | ||
get: function() { | ||
return _formatWeekdayLong.default; | ||
} | ||
}); | ||
var _formatWeekdayLong = swcHelpers.interopRequireWildcard(require("./formatWeekdayLong")); | ||
Object.keys(_formatWeekdayLong).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _formatWeekdayLong[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _formatWeekdayLong[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "formatWeekdayShort", { | ||
enumerable: true, | ||
get: function() { | ||
return _formatWeekdayShort.default; | ||
} | ||
}); | ||
var _formatWeekdayShort = swcHelpers.interopRequireWildcard(require("./formatWeekdayShort")); | ||
Object.keys(_formatWeekdayShort).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _formatWeekdayShort[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _formatWeekdayShort[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "getFirstDayOfWeek", { | ||
enumerable: true, | ||
get: function() { | ||
return _getFirstDayOfWeek.default; | ||
} | ||
}); | ||
var _getFirstDayOfWeek = swcHelpers.interopRequireWildcard(require("./getFirstDayOfWeek")); | ||
Object.keys(_getFirstDayOfWeek).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _getFirstDayOfWeek[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _getFirstDayOfWeek[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "isValidDate", { | ||
enumerable: true, | ||
get: function() { | ||
return _isValidDate.default; | ||
} | ||
}); | ||
var _isValidDate = swcHelpers.interopRequireWildcard(require("./isValidDate")); | ||
Object.keys(_isValidDate).forEach(function(key) { | ||
var swcHelpers = require("@swc/helpers"); | ||
var _constant = swcHelpers.interopRequireWildcard(require("./constant")); | ||
Object.keys(_constant).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _isValidDate[key]) return; | ||
if (key in exports && exports[key] === _constant[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _isValidDate[key]; | ||
return _constant[key]; | ||
} | ||
}); | ||
}); | ||
var _formatDay = swcHelpers.interopRequireDefault(require("./formatDay")); | ||
var _formatMonthTitle = swcHelpers.interopRequireDefault(require("./formatMonthTitle")); | ||
var _formatWeekdayLong = swcHelpers.interopRequireDefault(require("./formatWeekdayLong")); | ||
var _formatWeekdayShort = swcHelpers.interopRequireDefault(require("./formatWeekdayShort")); | ||
var _getFirstDayOfWeek = swcHelpers.interopRequireDefault(require("./getFirstDayOfWeek")); | ||
var _isValidDate = swcHelpers.interopRequireDefault(require("./isValidDate")); |
@@ -1,2 +0,2 @@ | ||
export * from './canUseDOM'; | ||
export * from './isSafari'; | ||
export { default as canUseDOM } from './canUseDOM'; | ||
export { default as isSafari } from './isSafari'; |
@@ -5,27 +5,16 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _canUseDOM = swcHelpers.interopRequireWildcard(require("./canUseDOM")); | ||
Object.keys(_canUseDOM).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _canUseDOM[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _canUseDOM[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "canUseDOM", { | ||
enumerable: true, | ||
get: function() { | ||
return _canUseDOM.default; | ||
} | ||
}); | ||
var _isSafari = swcHelpers.interopRequireWildcard(require("./isSafari")); | ||
Object.keys(_isSafari).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _isSafari[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _isSafari[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "isSafari", { | ||
enumerable: true, | ||
get: function() { | ||
return _isSafari.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _canUseDOM = swcHelpers.interopRequireDefault(require("./canUseDOM")); | ||
var _isSafari = swcHelpers.interopRequireDefault(require("./isSafari")); |
@@ -1,7 +0,7 @@ | ||
export * from './compose'; | ||
export * from './debounce'; | ||
export * from './defer'; | ||
export * from './flow'; | ||
export * from './flowRight'; | ||
export * from './noop'; | ||
export * from './omit'; | ||
export { default as compose } from './compose'; | ||
export { debounce } from './debounce'; | ||
export { default as defer } from './defer'; | ||
export { default as flow } from './flow'; | ||
export { default as flowRight } from './flowRight'; | ||
export { default as noop } from './noop'; | ||
export { default as omit } from './omit'; |
@@ -5,87 +5,51 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _compose = swcHelpers.interopRequireWildcard(require("./compose")); | ||
Object.keys(_compose).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _compose[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _compose[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "compose", { | ||
enumerable: true, | ||
get: function() { | ||
return _compose.default; | ||
} | ||
}); | ||
var _debounce = swcHelpers.interopRequireWildcard(require("./debounce")); | ||
Object.keys(_debounce).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _debounce[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _debounce[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "debounce", { | ||
enumerable: true, | ||
get: function() { | ||
return _debounce.debounce; | ||
} | ||
}); | ||
var _defer = swcHelpers.interopRequireWildcard(require("./defer")); | ||
Object.keys(_defer).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _defer[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _defer[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "defer", { | ||
enumerable: true, | ||
get: function() { | ||
return _defer.default; | ||
} | ||
}); | ||
var _flow = swcHelpers.interopRequireWildcard(require("./flow")); | ||
Object.keys(_flow).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _flow[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _flow[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "flow", { | ||
enumerable: true, | ||
get: function() { | ||
return _flow.default; | ||
} | ||
}); | ||
var _flowRight = swcHelpers.interopRequireWildcard(require("./flowRight")); | ||
Object.keys(_flowRight).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _flowRight[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _flowRight[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "flowRight", { | ||
enumerable: true, | ||
get: function() { | ||
return _flowRight.default; | ||
} | ||
}); | ||
var _noop = swcHelpers.interopRequireWildcard(require("./noop")); | ||
Object.keys(_noop).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _noop[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _noop[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "noop", { | ||
enumerable: true, | ||
get: function() { | ||
return _noop.default; | ||
} | ||
}); | ||
var _omit = swcHelpers.interopRequireWildcard(require("./omit")); | ||
Object.keys(_omit).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _omit[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _omit[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "omit", { | ||
enumerable: true, | ||
get: function() { | ||
return _omit.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _compose = swcHelpers.interopRequireDefault(require("./compose")); | ||
var _debounce = require("./debounce"); | ||
var _defer = swcHelpers.interopRequireDefault(require("./defer")); | ||
var _flow = swcHelpers.interopRequireDefault(require("./flow")); | ||
var _flowRight = swcHelpers.interopRequireDefault(require("./flowRight")); | ||
var _noop = swcHelpers.interopRequireDefault(require("./noop")); | ||
var _omit = swcHelpers.interopRequireDefault(require("./omit")); |
@@ -1,1 +0,1 @@ | ||
export * from './safeParse'; | ||
export { default as safeParse } from './safeParse'; |
@@ -5,13 +5,9 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "safeParse", { | ||
enumerable: true, | ||
get: function() { | ||
return _safeParse.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _safeParse = swcHelpers.interopRequireWildcard(require("./safeParse")); | ||
Object.keys(_safeParse).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _safeParse[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _safeParse[key]; | ||
} | ||
}); | ||
}); | ||
var _safeParse = swcHelpers.interopRequireDefault(require("./safeParse")); |
@@ -1,3 +0,3 @@ | ||
export * from './execIfFunc'; | ||
export * from './ifElse'; | ||
export * from './shallowEqual'; | ||
export { default as execIfFunc } from './execIfFunc'; | ||
export { default as ifElse } from './ifElse'; | ||
export { default as shallowEqual } from './shallowEqual'; |
@@ -5,39 +5,23 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _execIfFunc = swcHelpers.interopRequireWildcard(require("./execIfFunc")); | ||
Object.keys(_execIfFunc).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _execIfFunc[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _execIfFunc[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "execIfFunc", { | ||
enumerable: true, | ||
get: function() { | ||
return _execIfFunc.default; | ||
} | ||
}); | ||
var _ifElse = swcHelpers.interopRequireWildcard(require("./ifElse")); | ||
Object.keys(_ifElse).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _ifElse[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _ifElse[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "ifElse", { | ||
enumerable: true, | ||
get: function() { | ||
return _ifElse.default; | ||
} | ||
}); | ||
var _shallowEqual = swcHelpers.interopRequireWildcard(require("./shallowEqual")); | ||
Object.keys(_shallowEqual).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _shallowEqual[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _shallowEqual[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "shallowEqual", { | ||
enumerable: true, | ||
get: function() { | ||
return _shallowEqual.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _execIfFunc = swcHelpers.interopRequireDefault(require("./execIfFunc")); | ||
var _ifElse = swcHelpers.interopRequireDefault(require("./ifElse")); | ||
var _shallowEqual = swcHelpers.interopRequireDefault(require("./shallowEqual")); |
@@ -1,3 +0,3 @@ | ||
export * from './maskAddress'; | ||
export * from './maskEmail'; | ||
export * from './maskPhoneNumber'; | ||
export { default as maskAddress } from './maskAddress'; | ||
export { default as maskEmail } from './maskEmail'; | ||
export { default as maskPhoneNumber } from './maskPhoneNumber'; |
@@ -5,39 +5,23 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _maskAddress = swcHelpers.interopRequireWildcard(require("./maskAddress")); | ||
Object.keys(_maskAddress).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _maskAddress[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _maskAddress[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "maskAddress", { | ||
enumerable: true, | ||
get: function() { | ||
return _maskAddress.default; | ||
} | ||
}); | ||
var _maskEmail = swcHelpers.interopRequireWildcard(require("./maskEmail")); | ||
Object.keys(_maskEmail).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _maskEmail[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _maskEmail[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "maskEmail", { | ||
enumerable: true, | ||
get: function() { | ||
return _maskEmail.default; | ||
} | ||
}); | ||
var _maskPhoneNumber = swcHelpers.interopRequireWildcard(require("./maskPhoneNumber")); | ||
Object.keys(_maskPhoneNumber).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _maskPhoneNumber[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _maskPhoneNumber[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "maskPhoneNumber", { | ||
enumerable: true, | ||
get: function() { | ||
return _maskPhoneNumber.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _maskAddress = swcHelpers.interopRequireDefault(require("./maskAddress")); | ||
var _maskEmail = swcHelpers.interopRequireDefault(require("./maskEmail")); | ||
var _maskPhoneNumber = swcHelpers.interopRequireDefault(require("./maskPhoneNumber")); |
@@ -22,3 +22,3 @@ "use strict"; | ||
i += 1; | ||
}while (bytes > 1024) | ||
}while (bytes > 1024); | ||
return Math.max(bytes, 0.1).toFixed(1) + byteUnits[i]; | ||
@@ -25,0 +25,0 @@ }; |
@@ -1,9 +0,9 @@ | ||
export * from './counterFormat'; | ||
export * from './fileSizeFormat'; | ||
export * from './formatNumberUnified'; | ||
export * from './formatWeight'; | ||
export * from './getRandomNumber'; | ||
export * from './humanizeReviewCount'; | ||
export * from './numberWithCommas'; | ||
export * from './removeNonNumber'; | ||
export * from './thousandSeparator'; | ||
export { default as counterFormat } from './counterFormat'; | ||
export { default as fileSizeFormat } from './fileSizeFormat'; | ||
export { default as formatNumberUnified } from './formatNumberUnified'; | ||
export { default as formatWeight } from './formatWeight'; | ||
export { default as getRandomNumber } from './getRandomNumber'; | ||
export { default as humanizeReviewCount } from './humanizeReviewCount'; | ||
export { default as numberWithCommas } from './numberWithCommas'; | ||
export { default as removeNonNumber } from './removeNonNumber'; | ||
export { default as thousandSeparator } from './thousandSeparator'; |
@@ -5,111 +5,65 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _counterFormat = swcHelpers.interopRequireWildcard(require("./counterFormat")); | ||
Object.keys(_counterFormat).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _counterFormat[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _counterFormat[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "counterFormat", { | ||
enumerable: true, | ||
get: function() { | ||
return _counterFormat.default; | ||
} | ||
}); | ||
var _fileSizeFormat = swcHelpers.interopRequireWildcard(require("./fileSizeFormat")); | ||
Object.keys(_fileSizeFormat).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _fileSizeFormat[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _fileSizeFormat[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "fileSizeFormat", { | ||
enumerable: true, | ||
get: function() { | ||
return _fileSizeFormat.default; | ||
} | ||
}); | ||
var _formatNumberUnified = swcHelpers.interopRequireWildcard(require("./formatNumberUnified")); | ||
Object.keys(_formatNumberUnified).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _formatNumberUnified[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _formatNumberUnified[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "formatNumberUnified", { | ||
enumerable: true, | ||
get: function() { | ||
return _formatNumberUnified.default; | ||
} | ||
}); | ||
var _formatWeight = swcHelpers.interopRequireWildcard(require("./formatWeight")); | ||
Object.keys(_formatWeight).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _formatWeight[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _formatWeight[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "formatWeight", { | ||
enumerable: true, | ||
get: function() { | ||
return _formatWeight.default; | ||
} | ||
}); | ||
var _getRandomNumber = swcHelpers.interopRequireWildcard(require("./getRandomNumber")); | ||
Object.keys(_getRandomNumber).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _getRandomNumber[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _getRandomNumber[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "getRandomNumber", { | ||
enumerable: true, | ||
get: function() { | ||
return _getRandomNumber.default; | ||
} | ||
}); | ||
var _humanizeReviewCount = swcHelpers.interopRequireWildcard(require("./humanizeReviewCount")); | ||
Object.keys(_humanizeReviewCount).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _humanizeReviewCount[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _humanizeReviewCount[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "humanizeReviewCount", { | ||
enumerable: true, | ||
get: function() { | ||
return _humanizeReviewCount.default; | ||
} | ||
}); | ||
var _numberWithCommas = swcHelpers.interopRequireWildcard(require("./numberWithCommas")); | ||
Object.keys(_numberWithCommas).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _numberWithCommas[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _numberWithCommas[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "numberWithCommas", { | ||
enumerable: true, | ||
get: function() { | ||
return _numberWithCommas.default; | ||
} | ||
}); | ||
var _removeNonNumber = swcHelpers.interopRequireWildcard(require("./removeNonNumber")); | ||
Object.keys(_removeNonNumber).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _removeNonNumber[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _removeNonNumber[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "removeNonNumber", { | ||
enumerable: true, | ||
get: function() { | ||
return _removeNonNumber.default; | ||
} | ||
}); | ||
var _thousandSeparator = swcHelpers.interopRequireWildcard(require("./thousandSeparator")); | ||
Object.keys(_thousandSeparator).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _thousandSeparator[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _thousandSeparator[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "thousandSeparator", { | ||
enumerable: true, | ||
get: function() { | ||
return _thousandSeparator.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _counterFormat = swcHelpers.interopRequireDefault(require("./counterFormat")); | ||
var _fileSizeFormat = swcHelpers.interopRequireDefault(require("./fileSizeFormat")); | ||
var _formatNumberUnified = swcHelpers.interopRequireDefault(require("./formatNumberUnified")); | ||
var _formatWeight = swcHelpers.interopRequireDefault(require("./formatWeight")); | ||
var _getRandomNumber = swcHelpers.interopRequireDefault(require("./getRandomNumber")); | ||
var _humanizeReviewCount = swcHelpers.interopRequireDefault(require("./humanizeReviewCount")); | ||
var _numberWithCommas = swcHelpers.interopRequireDefault(require("./numberWithCommas")); | ||
var _removeNonNumber = swcHelpers.interopRequireDefault(require("./removeNonNumber")); | ||
var _thousandSeparator = swcHelpers.interopRequireDefault(require("./thousandSeparator")); |
@@ -1,8 +0,8 @@ | ||
export * from './escapeRegExp'; | ||
export * from './randomString'; | ||
export * from './removeScriptTags'; | ||
export * from './replaceDot'; | ||
export * from './sanitizeLang'; | ||
export * from './slugify'; | ||
export * from './stringTemplate'; | ||
export * from './titleCase'; | ||
export { default as escapeRegExp } from './escapeRegExp'; | ||
export { default as randomString } from './randomString'; | ||
export { default as removeScriptTags } from './removeScriptTags'; | ||
export { default as replaceDot } from './replaceDot'; | ||
export { default as sanitizeLang } from './sanitizeLang'; | ||
export { default as slugify } from './slugify'; | ||
export { default as stringTemplate } from './stringTemplate'; | ||
export { default as titleCase } from './titleCase'; |
@@ -5,99 +5,58 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _escapeRegExp = swcHelpers.interopRequireWildcard(require("./escapeRegExp")); | ||
Object.keys(_escapeRegExp).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _escapeRegExp[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _escapeRegExp[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "escapeRegExp", { | ||
enumerable: true, | ||
get: function() { | ||
return _escapeRegExp.default; | ||
} | ||
}); | ||
var _randomString = swcHelpers.interopRequireWildcard(require("./randomString")); | ||
Object.keys(_randomString).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _randomString[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _randomString[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "randomString", { | ||
enumerable: true, | ||
get: function() { | ||
return _randomString.default; | ||
} | ||
}); | ||
var _removeScriptTags = swcHelpers.interopRequireWildcard(require("./removeScriptTags")); | ||
Object.keys(_removeScriptTags).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _removeScriptTags[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _removeScriptTags[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "removeScriptTags", { | ||
enumerable: true, | ||
get: function() { | ||
return _removeScriptTags.default; | ||
} | ||
}); | ||
var _replaceDot = swcHelpers.interopRequireWildcard(require("./replaceDot")); | ||
Object.keys(_replaceDot).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _replaceDot[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _replaceDot[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "replaceDot", { | ||
enumerable: true, | ||
get: function() { | ||
return _replaceDot.default; | ||
} | ||
}); | ||
var _sanitizeLang = swcHelpers.interopRequireWildcard(require("./sanitizeLang")); | ||
Object.keys(_sanitizeLang).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _sanitizeLang[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _sanitizeLang[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "sanitizeLang", { | ||
enumerable: true, | ||
get: function() { | ||
return _sanitizeLang.default; | ||
} | ||
}); | ||
var _slugify = swcHelpers.interopRequireWildcard(require("./slugify")); | ||
Object.keys(_slugify).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _slugify[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _slugify[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "slugify", { | ||
enumerable: true, | ||
get: function() { | ||
return _slugify.default; | ||
} | ||
}); | ||
var _stringTemplate = swcHelpers.interopRequireWildcard(require("./stringTemplate")); | ||
Object.keys(_stringTemplate).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _stringTemplate[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _stringTemplate[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "stringTemplate", { | ||
enumerable: true, | ||
get: function() { | ||
return _stringTemplate.default; | ||
} | ||
}); | ||
var _titleCase = swcHelpers.interopRequireWildcard(require("./titleCase")); | ||
Object.keys(_titleCase).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _titleCase[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _titleCase[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "titleCase", { | ||
enumerable: true, | ||
get: function() { | ||
return _titleCase.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _escapeRegExp = swcHelpers.interopRequireDefault(require("./escapeRegExp")); | ||
var _randomString = swcHelpers.interopRequireDefault(require("./randomString")); | ||
var _removeScriptTags = swcHelpers.interopRequireDefault(require("./removeScriptTags")); | ||
var _replaceDot = swcHelpers.interopRequireDefault(require("./replaceDot")); | ||
var _sanitizeLang = swcHelpers.interopRequireDefault(require("./sanitizeLang")); | ||
var _slugify = swcHelpers.interopRequireDefault(require("./slugify")); | ||
var _stringTemplate = swcHelpers.interopRequireDefault(require("./stringTemplate")); | ||
var _titleCase = swcHelpers.interopRequireDefault(require("./titleCase")); |
@@ -1,2 +0,2 @@ | ||
export * from './hexToRgba'; | ||
export * from './pxToRem'; | ||
export { default as hexToRgba } from './hexToRgba'; | ||
export { default as pxToRem } from './pxToRem'; |
@@ -5,27 +5,16 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
var swcHelpers = require("@swc/helpers"); | ||
var _hexToRgba = swcHelpers.interopRequireWildcard(require("./hexToRgba")); | ||
Object.keys(_hexToRgba).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _hexToRgba[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _hexToRgba[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "hexToRgba", { | ||
enumerable: true, | ||
get: function() { | ||
return _hexToRgba.default; | ||
} | ||
}); | ||
var _pxToRem = swcHelpers.interopRequireWildcard(require("./pxToRem")); | ||
Object.keys(_pxToRem).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _pxToRem[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _pxToRem[key]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "pxToRem", { | ||
enumerable: true, | ||
get: function() { | ||
return _pxToRem.default; | ||
} | ||
}); | ||
var swcHelpers = require("@swc/helpers"); | ||
var _hexToRgba = swcHelpers.interopRequireDefault(require("./hexToRgba")); | ||
var _pxToRem = swcHelpers.interopRequireDefault(require("./pxToRem")); |
{ | ||
"name": "@lite-v3/common-helpers", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Public common helpers for Tokopedia Web", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
74214
1952