@mountainpass/addressr 1.1.7 → 2.0.0

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.
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var _progress = require("progress");
4
- var _progress2 = _interopRequireDefault(_progress);
3
+ var _progress = _interopRequireDefault(require("progress"));
5
4
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
6
5
  const {
7
6
  parse
8
- } = require('url');
9
- const http = require('https');
10
- const fs = require('fs');
11
- const pathUtil = require('path');
7
+ } = require('node:url');
8
+ const http = require('node:https');
9
+ const fs = require('node:fs');
10
+ const pathUtil = require('node:path');
12
11
  module.exports = function (url, path, size) {
13
12
  const uri = parse(url);
14
13
  if (!path) {
@@ -20,7 +19,7 @@ module.exports = function (url, path, size) {
20
19
  const length = res.headers['content-length'] ? Number.parseInt(res.headers['content-length'], 10) : size;
21
20
  // let downloaded = 0;
22
21
  // let percent = 0;
23
- var bar = new _progress2.default(' downloading [:bar] :rate/bps :percent :etas', {
22
+ var bar = new _progress.default(' downloading [:bar] :rate/bps :percent :etas', {
24
23
  complete: '=',
25
24
  incomplete: ' ',
26
25
  width: 20,
package/lib/version.js CHANGED
@@ -3,5 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.version = void 0;
6
7
  // Generated by genversion.
7
- const version = exports.version = '1.1.7';
8
+ const version = exports.version = '2.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mountainpass/addressr",
3
- "version": "1.1.7",
3
+ "version": "2.0.0",
4
4
  "description": "Australian Address Validation, Search and Autocomplete",
5
5
  "author": {
6
6
  "name": "Mountain Pass",
@@ -13,8 +13,9 @@
13
13
  "access": "public"
14
14
  },
15
15
  "engines": {
16
- "node": ">=14.21.2"
16
+ "node": ">=22"
17
17
  },
18
+ "packageManager": "npm@10.9.4",
18
19
  "config": {
19
20
  "localport": "6060",
20
21
  "SEARCH_IMAGE": "opensearchproject/opensearch:1.3.20"
@@ -75,7 +76,7 @@
75
76
  "npm-check-unused": "npm-check",
76
77
  "lint": "eslint . --fix",
77
78
  "test": "NO_STRICT=' ' npm-run-all --serial test:nogeo test:geo",
78
- "test:nogeo": "NO_STRICT=' ' npm-run-all --serial test:nodejs:nogeo test:rest:nogeo test:rest2:nogeo test:cli:nogeo",
79
+ "test:nogeo": "NO_STRICT=' ' npm-run-all --serial test:nodejs:nogeo test:rest:nogeo test:rest2:nogeo test:cli:nogeo test:cli2:nogeo",
79
80
  "test:geo": "NO_STRICT=' ' npm-run-all --serial test:nodejs:geo test:rest:geo test:cli:geo",
80
81
  "watch:test": "nodemon -V --ext \"*.feature, *.js, *.json, *.css, *.yaml\" -x npm -- run test",
81
82
  "genversion": "genversion --es6 --semi version.js",
@@ -98,6 +99,9 @@
98
99
  "test:cli:nogeo": "ES_INDEX_NAME=test PORT=$npm_package_config_localport DEBUG=error,api,express:*,swagger-tools*,test,es run-p --race start:server:preinstalled dotest:cli:nogeo",
99
100
  "cover:cli:nogeo": "nyc --report-dir coverage/cli --temp-dir coverage/cli/.nyc_output npm run test:cli:nogeo",
100
101
  "test:cli:geo": "ES_INDEX_NAME=test PORT=$npm_package_config_localport ADDRESSR_ENABLE_GEO=1 DEBUG=error,api,express:*,swagger-tools*,test,es run-p --race start:server:preinstalled dotest:cli:nogeo",
102
+ "dotest:cli2:nogeo": "ES_INDEX_NAME=test COVERED_STATES=OT TEST_PROFILE=cli2 cucumber-js -p cli2 -- --harmony_async_iteration",
103
+ "pretest:cli2:nogeo": "npm pack && npm install -g mountainpass-addressr-${npm_package_version}.tgz && ES_INDEX_NAME=test COVERED_STATES=OT DEBUG=error,api,express:*,swagger-tools*,test,es PORT=$npm_package_config_localport addressr-loader",
104
+ "test:cli2:nogeo": "ES_INDEX_NAME=test PORT=$npm_package_config_localport DEBUG=error,api,express:*,swagger-tools*,test,es run-p --race start:server2:preinstalled dotest:cli2:nogeo",
101
105
  "pretest:cli2:geo": "npm pack && npm install -g mountainpass-addressr-${npm_package_version}.tgz && ES_INDEX_NAME=test COVERED_STATES=OT ADDRESSR_ENABLE_GEO=1 DEBUG=error,api,express:*,swagger-tools*,test,es PORT=$npm_package_config_localport addressr-loader",
102
106
  "test:cli2:geo": "ES_INDEX_NAME=test PORT=$npm_package_config_localport ADDRESSR_ENABLE_GEO=1 DEBUG=error,api,express:*,swagger-tools*,test,es run-p --race start:server2:preinstalled dotest:cli2:geo",
103
107
  "dotest:cli2:geo": "ADDRESSR_ENABLE_GEO=1 ES_INDEX_NAME=test COVERED_STATES=OT TEST_PROFILE=cli2 cucumber-js -p cli2 -- --harmony_async_iteration",
@@ -116,7 +120,7 @@
116
120
  "predocker:push": "echo \"$DOCKER_ID_PASS\" | docker login --username \"$DOCKER_ID_USER\" --password-stdin",
117
121
  "docker:push": "docker push \"mountainpass/addressr:${npm_package_version}\"",
118
122
  "postdocker:push": "docker push \"mountainpass/addressr:latest\"",
119
- "check-licenses": "license-checker --production --onlyAllow 'MIT;Apache-2.0;ISC;Custom: http://github.com/substack/node-bufferlist;Unlicense;BSD-2-Clause;BSD-3-Clause;WTFPL;0BSD;MIT*;Python-2.0;MPL-2.0' --summary",
123
+ "check-licenses": "license-checker --production --onlyAllow 'MIT;Apache-2.0;ISC;Custom: http://github.com/substack/node-bufferlist;Unlicense;BSD-2-Clause;BSD-3-Clause;WTFPL;0BSD;MIT*;Python-2.0;MPL-2.0;BlueOak-1.0.0' --summary",
120
124
  "pre-commit": "lint-staged && npm run check-licenses",
121
125
  "check-deps": "dry-aged-deps --check",
122
126
  "test:performance": "k6 run --out csv=target/stress.csv test/k6/script.js",
@@ -157,17 +161,15 @@
157
161
  "private": false,
158
162
  "dependencies": {
159
163
  "@changesets/cli": "^2.26.2",
160
- "@mountainpass/waycharter": "^1.0.68",
161
- "@opensearch-project/opensearch": "^2.0.0",
164
+ "@mountainpass/waycharter": "^1.0.76",
165
+ "@opensearch-project/opensearch": "^3.5.1",
162
166
  "debug": "^4.1.1",
163
167
  "directory-exists": "^2.0.1",
164
168
  "dotenv": "^10.0.0",
165
169
  "express": "^4.17.1",
166
- "glob": "^7.1.7",
167
- "glob-promise": "^4.2.0",
168
- "got": "^9.6.0",
169
- "http-link-header": "1.0.2",
170
- "js-yaml": "^3.3.0",
170
+ "glob": "^13.0.6",
171
+ "http-link-header": "^1.1.3",
172
+ "js-yaml": "^4.1.1",
171
173
  "json-ptr": "2.1.0",
172
174
  "keyv": "^4.0.1",
173
175
  "keyv-file": "^0.2.0",
@@ -176,14 +178,14 @@
176
178
  "progress": "^2.0.3",
177
179
  "semver": "^7.3.2",
178
180
  "swagger-tools": "^0.10.4",
179
- "turbo": "^1.10.15",
180
181
  "unzip-stream": "^0.3.0",
181
- "uri-template-lite": "^20.5.0",
182
+ "uri-template-lite": "^23.4.0",
182
183
  "wait-port": "^0.2.2"
183
184
  },
184
185
  "devDependencies": {
185
186
  "@babel/cli": "^7.6.2",
186
187
  "@babel/core": "^7.6.2",
188
+ "@babel/eslint-parser": "^7.28.6",
187
189
  "@babel/node": "^7.6.2",
188
190
  "@babel/plugin-proposal-class-properties": "^7.5.5",
189
191
  "@babel/plugin-transform-runtime": "^7.6.2",
@@ -192,40 +194,38 @@
192
194
  "@babel/preset-react": "^7.0.0",
193
195
  "@babel/register": "^7.7.0",
194
196
  "@babel/runtime": "^7.5.0",
197
+ "@cucumber/cucumber": "^12.7.0",
198
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
199
+ "@eslint/js": "^9.39.4",
195
200
  "@istanbuljs/nyc-config-babel": "^3.0.0",
196
- "@mountainpass/waychaser": "^4.0.0",
197
- "@windyroad/cucumber-js-throwables": "^1.0.4",
198
- "babel-eslint": "^10.0.2",
199
- "babel-plugin-istanbul": "^6.0.0",
200
- "babel-preset-env": "^1.7.0",
201
+ "@mountainpass/waychaser": "^4.0.38",
202
+ "babel-plugin-istanbul": "^7.0.1",
201
203
  "bats": "^1.13.0",
202
204
  "chai": "^4.2.0",
203
- "cucumber": "^5.1.0",
204
205
  "dry-aged-deps": "^2.6.0",
205
- "eslint": "^7.9.0",
206
- "eslint-config-prettier": "^9.1.2",
207
- "eslint-plugin-chai-friendly": "^0.7.1",
208
- "eslint-plugin-eslint-comments": "^3.2.0",
209
- "eslint-plugin-import": "^2.22.0",
210
- "eslint-plugin-node": "^11.1.0",
211
- "eslint-plugin-prettier": "^4.2.5",
212
- "eslint-plugin-promise": "^5.1.0",
213
- "eslint-plugin-react": "^7.7.0",
214
- "eslint-plugin-security": "^1.4.0",
215
- "eslint-plugin-unicorn": "^34.0.1",
206
+ "eslint": "^9.39.4",
207
+ "eslint-config-prettier": "^10.1.8",
208
+ "eslint-plugin-chai-friendly": "^1.1.0",
209
+ "eslint-plugin-import-x": "^4.16.2",
210
+ "eslint-plugin-n": "^17.24.0",
211
+ "eslint-plugin-prettier": "^5.5.5",
212
+ "eslint-plugin-promise": "^7.2.1",
213
+ "eslint-plugin-security": "^4.0.0",
214
+ "eslint-plugin-unicorn": "^63.0.0",
216
215
  "genversion": "^3.0.0",
216
+ "globals": "^17.4.0",
217
217
  "husky": "^9.1.7",
218
- "imagemin-lint-staged": "^0.5.1",
219
218
  "istanbul": "^0.4.5",
220
219
  "istanbul-middleware": "^0.2.2",
221
220
  "license-checker": "^25.0.1",
222
- "lint-staged": "^15.5.2",
223
- "nodemon": "^2.0.4",
224
- "npm-check": "^5.9.0",
221
+ "lint-staged": "^16.3.3",
222
+ "nodemon": "^3.1.14",
223
+ "npm-check": "^6.0.1",
225
224
  "npm-run-all": "^4.1.5",
226
225
  "nyc": "^15.1.0",
227
226
  "prettier": "^3.8.1",
228
- "prettier-config-standard": "^7.0.0"
227
+ "prettier-config-standard": "^7.0.0",
228
+ "turbo": "^2.8.17"
229
229
  },
230
230
  "repository": {
231
231
  "type": "git",
@@ -237,8 +237,6 @@
237
237
  "homepage": "https://addressr.io",
238
238
  "lint-staged": {
239
239
  "*.{js,jsx}": "eslint --fix",
240
- "*.{json,css,md}": "prettier --write",
241
- "*.{png,jpeg,jpg,gif,svg}": "imagemin-lint-staged",
242
- ".circleci/config.yml": "circleci config validate"
240
+ "*.{json,css,md}": "prettier --write"
243
241
  }
244
242
  }