@openfn/language-common 1.4.1 → 1.6.1

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,86 +1,111 @@
1
1
  {
2
- "name": "axios",
3
- "version": "0.21.1",
4
- "description": "Promise based HTTP client for the browser and node.js",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "grunt test && bundlesize",
8
- "start": "node ./sandbox/server.js",
9
- "build": "NODE_ENV=production grunt build",
10
- "preversion": "npm test",
11
- "version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
12
- "postversion": "git push && git push --tags",
13
- "examples": "node ./examples/server.js",
14
- "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
15
- "fix": "eslint --fix lib/**/*.js"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/axios/axios.git"
2
+ "_from": "axios@^0.21.4",
3
+ "_id": "axios@0.21.4",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
6
+ "_location": "/axios",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "axios@^0.21.4",
12
+ "name": "axios",
13
+ "escapedName": "axios",
14
+ "rawSpec": "^0.21.4",
15
+ "saveSpec": null,
16
+ "fetchSpec": "^0.21.4"
20
17
  },
21
- "keywords": [
22
- "xhr",
23
- "http",
24
- "ajax",
25
- "promise",
26
- "node"
18
+ "_requiredBy": [
19
+ "/"
27
20
  ],
28
- "author": "Matt Zabriskie",
29
- "license": "MIT",
21
+ "_resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
22
+ "_shasum": "c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",
23
+ "_spec": "axios@^0.21.4",
24
+ "_where": "/workspaces/language-common",
25
+ "author": {
26
+ "name": "Matt Zabriskie"
27
+ },
28
+ "browser": {
29
+ "./lib/adapters/http.js": "./lib/adapters/xhr.js"
30
+ },
30
31
  "bugs": {
31
32
  "url": "https://github.com/axios/axios/issues"
32
33
  },
33
- "homepage": "https://github.com/axios/axios",
34
+ "bundleDependencies": false,
35
+ "bundlesize": [
36
+ {
37
+ "path": "./dist/axios.min.js",
38
+ "threshold": "5kB"
39
+ }
40
+ ],
41
+ "dependencies": {
42
+ "follow-redirects": "^1.14.0"
43
+ },
44
+ "deprecated": false,
45
+ "description": "Promise based HTTP client for the browser and node.js",
34
46
  "devDependencies": {
35
- "bundlesize": "^0.17.0",
36
47
  "coveralls": "^3.0.0",
37
48
  "es6-promise": "^4.2.4",
38
- "grunt": "^1.0.2",
49
+ "grunt": "^1.3.0",
39
50
  "grunt-banner": "^0.6.0",
40
51
  "grunt-cli": "^1.2.0",
41
52
  "grunt-contrib-clean": "^1.1.0",
42
53
  "grunt-contrib-watch": "^1.0.0",
43
- "grunt-eslint": "^20.1.0",
44
- "grunt-karma": "^2.0.0",
54
+ "grunt-eslint": "^23.0.0",
55
+ "grunt-karma": "^4.0.0",
45
56
  "grunt-mocha-test": "^0.13.3",
46
57
  "grunt-ts": "^6.0.0-beta.19",
47
- "grunt-webpack": "^1.0.18",
58
+ "grunt-webpack": "^4.0.2",
48
59
  "istanbul-instrumenter-loader": "^1.0.0",
49
60
  "jasmine-core": "^2.4.1",
50
- "karma": "^1.3.0",
51
- "karma-chrome-launcher": "^2.2.0",
52
- "karma-coverage": "^1.1.1",
53
- "karma-firefox-launcher": "^1.1.0",
61
+ "karma": "^6.3.2",
62
+ "karma-chrome-launcher": "^3.1.0",
63
+ "karma-firefox-launcher": "^2.1.0",
54
64
  "karma-jasmine": "^1.1.1",
55
65
  "karma-jasmine-ajax": "^0.1.13",
56
- "karma-opera-launcher": "^1.0.0",
57
66
  "karma-safari-launcher": "^1.0.0",
58
- "karma-sauce-launcher": "^1.2.0",
67
+ "karma-sauce-launcher": "^4.3.6",
59
68
  "karma-sinon": "^1.0.5",
60
- "karma-sourcemap-loader": "^0.3.7",
61
- "karma-webpack": "^1.7.0",
69
+ "karma-sourcemap-loader": "^0.3.8",
70
+ "karma-webpack": "^4.0.2",
62
71
  "load-grunt-tasks": "^3.5.2",
63
72
  "minimist": "^1.2.0",
64
- "mocha": "^5.2.0",
73
+ "mocha": "^8.2.1",
65
74
  "sinon": "^4.5.0",
66
- "typescript": "^2.8.1",
75
+ "terser-webpack-plugin": "^4.2.3",
76
+ "typescript": "^4.0.5",
67
77
  "url-search-params": "^0.10.0",
68
- "webpack": "^1.13.1",
69
- "webpack-dev-server": "^1.14.1"
70
- },
71
- "browser": {
72
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
78
+ "webpack": "^4.44.2",
79
+ "webpack-dev-server": "^3.11.0"
73
80
  },
81
+ "homepage": "https://axios-http.com",
74
82
  "jsdelivr": "dist/axios.min.js",
75
- "unpkg": "dist/axios.min.js",
76
- "typings": "./index.d.ts",
77
- "dependencies": {
78
- "follow-redirects": "^1.10.0"
83
+ "keywords": [
84
+ "xhr",
85
+ "http",
86
+ "ajax",
87
+ "promise",
88
+ "node"
89
+ ],
90
+ "license": "MIT",
91
+ "main": "index.js",
92
+ "name": "axios",
93
+ "repository": {
94
+ "type": "git",
95
+ "url": "git+https://github.com/axios/axios.git"
79
96
  },
80
- "bundlesize": [
81
- {
82
- "path": "./dist/axios.min.js",
83
- "threshold": "5kB"
84
- }
85
- ]
97
+ "scripts": {
98
+ "build": "NODE_ENV=production grunt build",
99
+ "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
100
+ "examples": "node ./examples/server.js",
101
+ "fix": "eslint --fix lib/**/*.js",
102
+ "postversion": "git push && git push --tags",
103
+ "preversion": "npm test",
104
+ "start": "node ./sandbox/server.js",
105
+ "test": "grunt test",
106
+ "version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"
107
+ },
108
+ "typings": "./index.d.ts",
109
+ "unpkg": "dist/axios.min.js",
110
+ "version": "0.21.4"
86
111
  }
@@ -3,7 +3,7 @@
3
3
  Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects)
6
- [![Build Status](https://travis-ci.com/follow-redirects/follow-redirects.svg?branch=master)](https://travis-ci.com/follow-redirects/follow-redirects)
6
+ [![Build Status](https://github.com/follow-redirects/follow-redirects/workflows/CI/badge.svg)](https://github.com/follow-redirects/follow-redirects/actions)
7
7
  [![Coverage Status](https://coveralls.io/repos/follow-redirects/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/follow-redirects/follow-redirects?branch=master)
8
8
  [![npm downloads](https://img.shields.io/npm/dm/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects)
9
9
  [![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=%F0%9F%92%96&logo=GitHub)](https://github.com/sponsors/RubenVerborgh)
@@ -1,9 +1,15 @@
1
1
  var debug;
2
- try {
3
- /* eslint global-require: off */
4
- debug = require("debug")("follow-redirects");
5
- }
6
- catch (error) {
7
- debug = function () { /* */ };
8
- }
9
- module.exports = debug;
2
+
3
+ module.exports = function () {
4
+ if (!debug) {
5
+ try {
6
+ /* eslint global-require: off */
7
+ debug = require("debug")("follow-redirects");
8
+ }
9
+ catch (error) { /* */ }
10
+ if (typeof debug !== "function") {
11
+ debug = function () { /* */ };
12
+ }
13
+ }
14
+ debug.apply(null, arguments);
15
+ };
@@ -7,8 +7,9 @@ var assert = require("assert");
7
7
  var debug = require("./debug");
8
8
 
9
9
  // Create handlers that pass events from native requests
10
+ var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
10
11
  var eventHandlers = Object.create(null);
11
- ["abort", "aborted", "connect", "error", "socket", "timeout"].forEach(function (event) {
12
+ events.forEach(function (event) {
12
13
  eventHandlers[event] = function (arg1, arg2, arg3) {
13
14
  this._redirectable.emit(event, arg1, arg2, arg3);
14
15
  };
@@ -61,6 +62,11 @@ function RedirectableRequest(options, responseCallback) {
61
62
  }
62
63
  RedirectableRequest.prototype = Object.create(Writable.prototype);
63
64
 
65
+ RedirectableRequest.prototype.abort = function () {
66
+ abortRequest(this._currentRequest);
67
+ this.emit("abort");
68
+ };
69
+
64
70
  // Writes buffered data to the current native request
65
71
  RedirectableRequest.prototype.write = function (data, encoding, callback) {
66
72
  // Writing is not allowed if end has been called
@@ -140,40 +146,58 @@ RedirectableRequest.prototype.removeHeader = function (name) {
140
146
 
141
147
  // Global timeout for all underlying requests
142
148
  RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
149
+ var self = this;
143
150
  if (callback) {
144
- this.once("timeout", callback);
151
+ this.on("timeout", callback);
152
+ }
153
+
154
+ function destroyOnTimeout(socket) {
155
+ socket.setTimeout(msecs);
156
+ socket.removeListener("timeout", socket.destroy);
157
+ socket.addListener("timeout", socket.destroy);
158
+ }
159
+
160
+ // Sets up a timer to trigger a timeout event
161
+ function startTimer(socket) {
162
+ if (self._timeout) {
163
+ clearTimeout(self._timeout);
164
+ }
165
+ self._timeout = setTimeout(function () {
166
+ self.emit("timeout");
167
+ clearTimer();
168
+ }, msecs);
169
+ destroyOnTimeout(socket);
145
170
  }
146
171
 
172
+ // Prevent a timeout from triggering
173
+ function clearTimer() {
174
+ clearTimeout(self._timeout);
175
+ if (callback) {
176
+ self.removeListener("timeout", callback);
177
+ }
178
+ if (!this.socket) {
179
+ self._currentRequest.removeListener("socket", startTimer);
180
+ }
181
+ }
182
+
183
+ // Start the timer when the socket is opened
147
184
  if (this.socket) {
148
- startTimer(this, msecs);
185
+ startTimer(this.socket);
149
186
  }
150
187
  else {
151
- var self = this;
152
- this._currentRequest.once("socket", function () {
153
- startTimer(self, msecs);
154
- });
188
+ this._currentRequest.once("socket", startTimer);
155
189
  }
156
190
 
191
+ this.on("socket", destroyOnTimeout);
157
192
  this.once("response", clearTimer);
158
193
  this.once("error", clearTimer);
159
194
 
160
195
  return this;
161
196
  };
162
197
 
163
- function startTimer(request, msecs) {
164
- clearTimeout(request._timeout);
165
- request._timeout = setTimeout(function () {
166
- request.emit("timeout");
167
- }, msecs);
168
- }
169
-
170
- function clearTimer() {
171
- clearTimeout(this._timeout);
172
- }
173
-
174
198
  // Proxy all other public ClientRequest methods
175
199
  [
176
- "abort", "flushHeaders", "getHeader",
200
+ "flushHeaders", "getHeader",
177
201
  "setNoDelay", "setSocketKeepAlive",
178
202
  ].forEach(function (method) {
179
203
  RedirectableRequest.prototype[method] = function (a, b) {
@@ -243,11 +267,8 @@ RedirectableRequest.prototype._performRequest = function () {
243
267
 
244
268
  // Set up event handlers
245
269
  request._redirectable = this;
246
- for (var event in eventHandlers) {
247
- /* istanbul ignore else */
248
- if (event) {
249
- request.on(event, eventHandlers[event]);
250
- }
270
+ for (var e = 0; e < events.length; e++) {
271
+ request.on(events[e], eventHandlers[events[e]]);
251
272
  }
252
273
 
253
274
  // End a redirected request
@@ -305,9 +326,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
305
326
  if (location && this._options.followRedirects !== false &&
306
327
  statusCode >= 300 && statusCode < 400) {
307
328
  // Abort the current request
308
- this._currentRequest.removeAllListeners();
309
- this._currentRequest.on("error", noop);
310
- this._currentRequest.abort();
329
+ abortRequest(this._currentRequest);
311
330
  // Discard the remainder of the response to avoid waiting for data
312
331
  response.destroy();
313
332
 
@@ -499,6 +518,14 @@ function createErrorType(code, defaultMessage) {
499
518
  return CustomError;
500
519
  }
501
520
 
521
+ function abortRequest(request) {
522
+ for (var e = 0; e < events.length; e++) {
523
+ request.removeListener(events[e], eventHandlers[events[e]]);
524
+ }
525
+ request.on("error", noop);
526
+ request.abort();
527
+ }
528
+
502
529
  // Exports
503
530
  module.exports = wrap({ http: http, https: https });
504
531
  module.exports.wrap = wrap;
@@ -1,28 +1,70 @@
1
1
  {
2
- "name": "follow-redirects",
3
- "version": "1.13.1",
4
- "description": "HTTP and HTTPS modules that follow redirects.",
5
- "license": "MIT",
6
- "main": "index.js",
7
- "files": [
8
- "*.js"
9
- ],
10
- "engines": {
11
- "node": ">=4.0"
2
+ "_from": "follow-redirects@^1.14.0",
3
+ "_id": "follow-redirects@1.14.3",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==",
6
+ "_location": "/follow-redirects",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "follow-redirects@^1.14.0",
12
+ "name": "follow-redirects",
13
+ "escapedName": "follow-redirects",
14
+ "rawSpec": "^1.14.0",
15
+ "saveSpec": null,
16
+ "fetchSpec": "^1.14.0"
12
17
  },
13
- "scripts": {
14
- "test": "npm run lint && npm run mocha",
15
- "lint": "eslint *.js test",
16
- "mocha": "nyc mocha"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git@github.com:follow-redirects/follow-redirects.git"
18
+ "_requiredBy": [
19
+ "/axios"
20
+ ],
21
+ "_resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.3.tgz",
22
+ "_shasum": "6ada78118d8d24caee595595accdc0ac6abd022e",
23
+ "_spec": "follow-redirects@^1.14.0",
24
+ "_where": "/workspaces/language-common/node_modules/axios",
25
+ "author": {
26
+ "name": "Ruben Verborgh",
27
+ "email": "ruben@verborgh.org",
28
+ "url": "https://ruben.verborgh.org/"
21
29
  },
22
- "homepage": "https://github.com/follow-redirects/follow-redirects",
23
30
  "bugs": {
24
31
  "url": "https://github.com/follow-redirects/follow-redirects/issues"
25
32
  },
33
+ "bundleDependencies": false,
34
+ "contributors": [
35
+ {
36
+ "name": "Olivier Lalonde",
37
+ "email": "olalonde@gmail.com",
38
+ "url": "http://www.syskall.com"
39
+ },
40
+ {
41
+ "name": "James Talmage",
42
+ "email": "james@talmage.io"
43
+ }
44
+ ],
45
+ "deprecated": false,
46
+ "description": "HTTP and HTTPS modules that follow redirects.",
47
+ "devDependencies": {
48
+ "concat-stream": "^2.0.0",
49
+ "eslint": "^5.16.0",
50
+ "express": "^4.16.4",
51
+ "lolex": "^3.1.0",
52
+ "mocha": "^6.0.2",
53
+ "nyc": "^14.1.1"
54
+ },
55
+ "engines": {
56
+ "node": ">=4.0"
57
+ },
58
+ "files": [
59
+ "*.js"
60
+ ],
61
+ "funding": [
62
+ {
63
+ "type": "individual",
64
+ "url": "https://github.com/sponsors/RubenVerborgh"
65
+ }
66
+ ],
67
+ "homepage": "https://github.com/follow-redirects/follow-redirects",
26
68
  "keywords": [
27
69
  "http",
28
70
  "https",
@@ -32,28 +74,22 @@
32
74
  "location",
33
75
  "utility"
34
76
  ],
35
- "author": "Ruben Verborgh <ruben@verborgh.org> (https://ruben.verborgh.org/)",
36
- "contributors": [
37
- "Olivier Lalonde <olalonde@gmail.com> (http://www.syskall.com)",
38
- "James Talmage <james@talmage.io>"
39
- ],
40
- "funding": [
41
- {
42
- "type": "individual",
43
- "url": "https://github.com/sponsors/RubenVerborgh"
44
- }
45
- ],
77
+ "license": "MIT",
78
+ "main": "index.js",
79
+ "name": "follow-redirects",
46
80
  "peerDependenciesMeta": {
47
81
  "debug": {
48
82
  "optional": true
49
83
  }
50
84
  },
51
- "devDependencies": {
52
- "concat-stream": "^2.0.0",
53
- "eslint": "^5.16.0",
54
- "express": "^4.16.4",
55
- "lolex": "^3.1.0",
56
- "mocha": "^6.0.2",
57
- "nyc": "^14.1.1"
58
- }
85
+ "repository": {
86
+ "type": "git",
87
+ "url": "git+ssh://git@github.com/follow-redirects/follow-redirects.git"
88
+ },
89
+ "scripts": {
90
+ "lint": "eslint *.js test",
91
+ "mocha": "nyc mocha",
92
+ "test": "npm run lint && npm run mocha"
93
+ },
94
+ "version": "1.14.3"
59
95
  }
@@ -1,11 +1,41 @@
1
1
  {
2
- "author": "Stefan Goessner",
3
- "name": "jsonpath-plus",
4
- "version": "4.0.0",
5
- "main": "dist/index-umd.js",
6
- "module": "dist/index-es.js",
7
- "types": "./src/jsonpath.d.ts",
8
- "description": "A JS implementation of JSONPath with some additional operators",
2
+ "_args": [
3
+ [
4
+ "jsonpath-plus@4.0.0",
5
+ "/workspaces/devtools/adaptors/language-common"
6
+ ]
7
+ ],
8
+ "_from": "jsonpath-plus@4.0.0",
9
+ "_id": "jsonpath-plus@4.0.0",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-e0Jtg4KAzDJKKwzbLaUtinCn0RZseWBVRTRGihSpvFlM3wTR7ExSp+PTdeTsDrLNJUe7L7JYJe8mblHX5SCT6A==",
12
+ "_location": "/jsonpath-plus",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "jsonpath-plus@4.0.0",
18
+ "name": "jsonpath-plus",
19
+ "escapedName": "jsonpath-plus",
20
+ "rawSpec": "4.0.0",
21
+ "saveSpec": null,
22
+ "fetchSpec": "4.0.0"
23
+ },
24
+ "_requiredBy": [
25
+ "/"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-4.0.0.tgz",
28
+ "_spec": "4.0.0",
29
+ "_where": "/workspaces/devtools/adaptors/language-common",
30
+ "author": {
31
+ "name": "Stefan Goessner"
32
+ },
33
+ "browserslist": [
34
+ "cover 100%"
35
+ ],
36
+ "bugs": {
37
+ "url": "https://github.com/s3u/JSONPath/issues/"
38
+ },
9
39
  "contributors": [
10
40
  {
11
41
  "name": "Prof. Gössner",
@@ -32,20 +62,8 @@
32
62
  "email": "makaretu@gmail.com"
33
63
  }
34
64
  ],
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "git://github.com/s3u/JSONPath.git"
39
- },
40
- "bugs": "https://github.com/s3u/JSONPath/issues/",
41
- "homepage": "https://github.com/s3u/JSONPath",
42
- "engines": {
43
- "node": ">=10.0"
44
- },
45
- "react-native": {
46
- "vm": false
47
- },
48
65
  "dependencies": {},
66
+ "description": "A JS implementation of JSONPath with some additional operators",
49
67
  "devDependencies": {
50
68
  "@babel/core": "^7.9.0",
51
69
  "@babel/preset-env": "^7.9.0",
@@ -90,13 +108,18 @@
90
108
  "typedoc": "^0.17.3",
91
109
  "typescript": "^3.8.3"
92
110
  },
111
+ "engines": {
112
+ "node": ">=10.0"
113
+ },
114
+ "homepage": "https://github.com/s3u/JSONPath",
93
115
  "keywords": [
94
116
  "json",
95
117
  "jsonpath"
96
118
  ],
97
- "browserslist": [
98
- "cover 100%"
99
- ],
119
+ "license": "MIT",
120
+ "main": "dist/index-umd.js",
121
+ "module": "dist/index-es.js",
122
+ "name": "jsonpath-plus",
100
123
  "nyc": {
101
124
  "reporter": [
102
125
  "text",
@@ -115,24 +138,33 @@
115
138
  "test-helpers"
116
139
  ]
117
140
  },
141
+ "react-native": {
142
+ "vm": false
143
+ },
144
+ "repository": {
145
+ "type": "git",
146
+ "url": "git://github.com/s3u/JSONPath.git"
147
+ },
118
148
  "scripts": {
119
- "prepublishOnly": "npm run license-badges",
120
- "license-badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
121
- "license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
122
- "license-badges": "npm run license-badge && npm run license-badge-dev",
123
- "remark": "remark -q -f .",
124
- "typescript": "tsc src/jsonpath.d.ts",
149
+ "browser-test": "npm run eslint && npm run rollup && open-cli http://localhost:8084/test/ && npm start",
125
150
  "build-docs": "typedoc --out docs/ts src --includeDeclarations",
126
- "open-docs": "open-cli http://localhost:8084/docs/ts/ && npm start",
127
151
  "coverage": "open-cli http://localhost:8084/coverage/ && npm start",
128
152
  "coverage-badge": "coveradge badges/coverage-badge.svg",
153
+ "eslint": "eslint --ext js,md,html .",
154
+ "license-badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
155
+ "license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
156
+ "license-badges": "npm run license-badge && npm run license-badge-dev",
129
157
  "mocha": "mocha --require esm --require test-helpers/node-env.js --reporter-options configFile=mocha-multi-reporters.json test",
130
- "test": "npm run rollup && npm run mocha",
131
- "test-cov": "rm -Rf ./coverage && rm -Rf ./node_modules/.cache && nyc --all npm run mocha && npm run coverage-badge",
132
158
  "open": "open-cli http://localhost:8084/demo/ && npm start",
133
- "start": "static -p 8084",
159
+ "open-docs": "open-cli http://localhost:8084/docs/ts/ && npm start",
160
+ "prepublishOnly": "npm run license-badges",
161
+ "remark": "remark -q -f .",
134
162
  "rollup": "rollup -c",
135
- "eslint": "eslint --ext js,md,html .",
136
- "browser-test": "npm run eslint && npm run rollup && open-cli http://localhost:8084/test/ && npm start"
137
- }
163
+ "start": "static -p 8084",
164
+ "test": "npm run rollup && npm run mocha",
165
+ "test-cov": "rm -Rf ./coverage && rm -Rf ./node_modules/.cache && nyc --all npm run mocha && npm run coverage-badge",
166
+ "typescript": "tsc src/jsonpath.d.ts"
167
+ },
168
+ "types": "./src/jsonpath.d.ts",
169
+ "version": "4.0.0"
138
170
  }