libphonenumber-js 1.10.49 → 1.10.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/libphonenumber-js.min.js +1 -1
- package/bundle/libphonenumber-js.min.js.map +1 -1
- package/bundle/libphonenumber-max.js +1 -1
- package/bundle/libphonenumber-max.js.map +1 -1
- package/bundle/libphonenumber-min.js +1 -1
- package/bundle/libphonenumber-min.js.map +1 -1
- package/bundle/libphonenumber-mobile.js +1 -1
- package/bundle/libphonenumber-mobile.js.map +1 -1
- package/core/index.d.cts +1 -1
- package/examples.mobile.json.d.cts +1 -1
- package/index.d.cts +1 -1
- package/max/index.d.cts +1 -1
- package/metadata.full.json +1 -1
- package/metadata.full.json.d.cts +1 -1
- package/metadata.full.json.js +1 -1
- package/metadata.max.json +1 -1
- package/metadata.max.json.d.cts +1 -1
- package/metadata.max.json.js +1 -1
- package/metadata.min.json +1 -1
- package/metadata.min.json.d.cts +1 -1
- package/metadata.min.json.js +1 -1
- package/metadata.mobile.json +1 -1
- package/metadata.mobile.json.d.cts +1 -1
- package/metadata.mobile.json.js +1 -1
- package/min/index.d.cts +1 -1
- package/mobile/index.d.cts +1 -1
- package/package.json +4 -2
package/min/index.d.cts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
NumberFormat,
|
|
16
16
|
NumberingPlan,
|
|
17
17
|
ValidatePhoneNumberLengthResult
|
|
18
|
-
} from '../types.d.
|
|
18
|
+
} from '../types.d.cjs';
|
|
19
19
|
|
|
20
20
|
// They say this re-export is required.
|
|
21
21
|
// https://github.com/catamphetamine/libphonenumber-js/pull/290#issuecomment-453281180
|
package/mobile/index.d.cts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
NumberFormat,
|
|
16
16
|
NumberingPlan,
|
|
17
17
|
ValidatePhoneNumberLengthResult
|
|
18
|
-
} from '../types.d.
|
|
18
|
+
} from '../types.d.cjs';
|
|
19
19
|
|
|
20
20
|
// They say this re-export is required.
|
|
21
21
|
// https://github.com/catamphetamine/libphonenumber-js/pull/290#issuecomment-453281180
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libphonenumber-js",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.51",
|
|
4
4
|
"description": "A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"module": "index.js",
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"npm-run-all": "^4.1.5",
|
|
105
105
|
"nyc": "^15.1.0",
|
|
106
106
|
"renamer": "^4.0.0",
|
|
107
|
+
"replace-in-file": "^7.0.2",
|
|
107
108
|
"rimraf": "^3.0.2",
|
|
108
109
|
"rollup": "^2.73.0",
|
|
109
110
|
"rollup-plugin-json": "^4.0.0",
|
|
@@ -138,11 +139,12 @@
|
|
|
138
139
|
"coveralls--nyc-is-very-slow-and-is-not-used": "nyc report --reporter=text-lcov | coveralls",
|
|
139
140
|
"test-travis": "node --experimental-json-modules node_modules/istanbul/lib/cli.js cover -x \"build/**\" -x \"es6/**\" -x \"*.test.js\" -x \"source/findNumbers/Leniency.js\" -x \"source/findNumbers/matchPhoneNumberStringAgainstPhoneNumber.js\" -x \"source/findNumbers/RegExpCache.js\" -x \"source/findNumbers/LRUCache.js\" -x \"source/PhoneNumberMatcher.js\" -x \"source/tools/semver-compare.js\" node_modules/mocha/bin/_mocha --report lcovonly -- --colors --reporter spec --require ./test/setup.js \"source/**/*.test.js\" \"test/**/*.test.js\" --recursive",
|
|
140
141
|
"clean": "rimraf ./build/**/* ./es6/**/*",
|
|
141
|
-
"build:commonjs": "npm-run-all build:commonjs:with-tests build:commonjs:package.json build:commonjs:create-typescript-definitions",
|
|
142
|
+
"build:commonjs": "npm-run-all build:commonjs:with-tests build:commonjs:package.json build:commonjs:create-typescript-definitions build:commonjs:patch-typescript-definitions",
|
|
142
143
|
"build:commonjs:before-es-modules": "cross-env BABEL_ENV=commonjs babel ./source --out-dir ./build --source-maps --ignore test.js",
|
|
143
144
|
"build:commonjs:with-tests": "cross-env BABEL_ENV=commonjs babel ./source --out-dir ./build --source-maps",
|
|
144
145
|
"build:commonjs:package.json": "node runnable/create-commonjs-package-json.js",
|
|
145
146
|
"build:commonjs:create-typescript-definitions": "rimraf --verbose --glob ./*.d.cts \"./!(node_modules)/**/*.d.cts\" && cpy **/{index,metadata*,examples*,types}.d.ts . --rename={{basename}}.cts && renamer --find d.cts.ts --replace d.cts ./*.d.cts.ts \"./!(node_modules)/**/*.d.cts.ts\"",
|
|
147
|
+
"build:commonjs:patch-typescript-definitions": "replace-in-file \".d.js';\" \".d.cjs';\" **/*.d.cts",
|
|
146
148
|
"build:modules:copy-typescript-definitions": "cpy --flat min/index.d.ts max && cpy --flat min/index.d.ts mobile",
|
|
147
149
|
"build:modules": "cross-env BABEL_ENV=es6 babel ./source --out-dir ./es6 --source-maps --ignore test.js",
|
|
148
150
|
"build:bundle": "rollup --config rollup.config.mjs",
|