string-process-comma-separated 3.0.5 → 3.0.6

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,131 +1,173 @@
1
1
  /**
2
2
  * @name string-process-comma-separated
3
3
  * @fileoverview Extracts chunks from possibly comma or whatever-separated string
4
- * @version 3.0.5
4
+ * @version 3.0.6
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-process-comma-separated/}
8
8
  */
9
9
 
10
- var version$1 = "3.0.5";
10
+ var version$1 = "3.0.6";
11
11
 
12
12
  const version = version$1;
13
13
  function processCommaSep(str, originalOpts) {
14
- if (typeof str !== "string") {
15
- throw new Error(`string-process-comma-separated: [THROW_ID_01] input must be string! It was given as ${typeof str}, equal to:\n${JSON.stringify(str, null, 4)}`);
16
- } else if (!str.length || !originalOpts || !originalOpts.cb && !originalOpts.errCb) {
17
- return;
18
- }
19
- const defaults = {
20
- from: 0,
21
- to: str.length,
22
- offset: 0,
23
- leadingWhitespaceOK: false,
24
- trailingWhitespaceOK: false,
25
- oneSpaceAfterCommaOK: false,
26
- innerWhitespaceAllowed: false,
27
- separator: ",",
28
- cb: null,
29
- errCb: null
30
- };
31
- const opts = { ...defaults,
32
- ...originalOpts
33
- };
34
- if (!Number.isInteger(originalOpts.from)) {
35
- opts.from = 0;
36
- }
37
- if (!Number.isInteger(originalOpts.to)) {
38
- opts.to = str.length;
39
- }
40
- if (!Number.isInteger(originalOpts.offset)) {
41
- opts.offset = 0;
42
- }
43
- let chunkStartsAt = null;
44
- let whitespaceStartsAt = null;
45
- let firstNonwhitespaceNonseparatorCharFound = false;
46
- let separatorsArr = [];
47
- let lastNonWhitespaceCharAt = null;
48
- let fixable = true;
49
- for (let i = opts.from; i < opts.to; i++) {
50
- if (str[i].trim() && str[i] !== opts.separator) {
51
- lastNonWhitespaceCharAt = i;
14
+ if (typeof str !== "string") {
15
+ throw new Error(`string-process-comma-separated: [THROW_ID_01] input must be string! It was given as ${typeof str}, equal to:\n${JSON.stringify(str, null, 4)}`);
52
16
  }
53
- if (chunkStartsAt === null && str[i].trim() && (!opts.separator || str[i] !== opts.separator)) {
54
- if (!firstNonwhitespaceNonseparatorCharFound) {
55
- firstNonwhitespaceNonseparatorCharFound = true;
56
- }
57
- if (separatorsArr.length) {
58
- if (separatorsArr.length > 1) {
59
- separatorsArr.forEach((separatorsIdx, orderNumber) => {
60
- if (orderNumber) {
61
- opts.errCb([[separatorsIdx + opts.offset, separatorsIdx + 1 + opts.offset]], "Remove separator.", fixable);
62
- }
63
- });
64
- }
65
- separatorsArr = [];
66
- }
67
- chunkStartsAt = i;
17
+ else if (!str.length ||
18
+ !originalOpts ||
19
+ (!originalOpts.cb && !originalOpts.errCb)) {
20
+ return;
68
21
  }
69
- if (Number.isInteger(chunkStartsAt) && (i > chunkStartsAt && opts.separator && str[i] === opts.separator || i + 1 === opts.to)) {
70
- str.slice(chunkStartsAt, i + 1 === opts.to && str[i] !== opts.separator && str[i].trim() ? i + 1 : i);
71
- if (typeof opts.cb === "function") {
72
- opts.cb(chunkStartsAt + opts.offset, (i + 1 === opts.to && str[i] !== opts.separator && str[i].trim() ? i + 1 : lastNonWhitespaceCharAt + 1) + opts.offset);
73
- }
74
- chunkStartsAt = null;
22
+ const defaults = {
23
+ from: 0,
24
+ to: str.length,
25
+ offset: 0,
26
+ leadingWhitespaceOK: false,
27
+ trailingWhitespaceOK: false,
28
+ oneSpaceAfterCommaOK: false,
29
+ innerWhitespaceAllowed: false,
30
+ separator: ",",
31
+ cb: null,
32
+ errCb: null,
33
+ };
34
+ const opts = { ...defaults, ...originalOpts };
35
+ if (!Number.isInteger(originalOpts.from)) {
36
+ opts.from = 0;
75
37
  }
76
- if (!str[i].trim() && whitespaceStartsAt === null) {
77
- whitespaceStartsAt = i;
38
+ if (!Number.isInteger(originalOpts.to)) {
39
+ opts.to = str.length;
78
40
  }
79
- if (whitespaceStartsAt !== null && (str[i].trim() || i + 1 === opts.to)) {
80
- if (whitespaceStartsAt === opts.from) {
81
- if (!opts.leadingWhitespaceOK && typeof opts.errCb === "function") {
82
- opts.errCb([[whitespaceStartsAt + opts.offset, (i + 1 === opts.to ? i + 1 : i) + opts.offset]], "Remove whitespace.", fixable);
41
+ if (!Number.isInteger(originalOpts.offset)) {
42
+ opts.offset = 0;
43
+ }
44
+ let chunkStartsAt = null;
45
+ let whitespaceStartsAt = null;
46
+ let firstNonwhitespaceNonseparatorCharFound = false;
47
+ let separatorsArr = [];
48
+ let lastNonWhitespaceCharAt = null;
49
+ let fixable = true;
50
+ for (let i = opts.from; i < opts.to; i++) {
51
+ if (str[i].trim() && str[i] !== opts.separator) {
52
+ lastNonWhitespaceCharAt = i;
83
53
  }
84
- } else if (!str[i].trim() && i + 1 === opts.to) {
85
- if (!opts.trailingWhitespaceOK && typeof opts.errCb === "function") {
86
- opts.errCb([[whitespaceStartsAt + opts.offset, i + 1 + opts.offset]], "Remove whitespace.", fixable);
54
+ if (chunkStartsAt === null &&
55
+ str[i].trim() &&
56
+ (!opts.separator || str[i] !== opts.separator)) {
57
+ if (!firstNonwhitespaceNonseparatorCharFound) {
58
+ firstNonwhitespaceNonseparatorCharFound = true;
59
+ }
60
+ if (separatorsArr.length) {
61
+ if (separatorsArr.length > 1) {
62
+ separatorsArr.forEach((separatorsIdx, orderNumber) => {
63
+ if (orderNumber) {
64
+ opts.errCb([
65
+ [
66
+ separatorsIdx + opts.offset,
67
+ separatorsIdx + 1 + opts.offset,
68
+ ],
69
+ ], "Remove separator.", fixable);
70
+ }
71
+ });
72
+ }
73
+ separatorsArr = [];
74
+ }
75
+ chunkStartsAt = i;
76
+ }
77
+ if (Number.isInteger(chunkStartsAt) &&
78
+ ((i > chunkStartsAt &&
79
+ opts.separator &&
80
+ str[i] === opts.separator) ||
81
+ i + 1 === opts.to)) {
82
+ str.slice(chunkStartsAt, i + 1 === opts.to && str[i] !== opts.separator && str[i].trim()
83
+ ? i + 1
84
+ : i);
85
+ if (typeof opts.cb === "function") {
86
+ opts.cb(chunkStartsAt + opts.offset, (i + 1 === opts.to && str[i] !== opts.separator && str[i].trim()
87
+ ? i + 1
88
+ : lastNonWhitespaceCharAt + 1) + opts.offset);
89
+ }
90
+ chunkStartsAt = null;
87
91
  }
88
- } else if ((!opts.oneSpaceAfterCommaOK || !(str[i].trim() && i > opts.from + 1 && str[i - 1] === " " && str[i - 2] === ",")) && (!opts.innerWhitespaceAllowed || !(firstNonwhitespaceNonseparatorCharFound && str[whitespaceStartsAt - 1] && str[i].trim() && str[i] !== opts.separator && str[whitespaceStartsAt - 1] !== opts.separator))) {
89
- let startingIdx = whitespaceStartsAt;
90
- let endingIdx = i;
91
- if (i + 1 === opts.to && str[i] !== opts.separator && !str[i].trim()) {
92
- endingIdx += 1;
92
+ if (!str[i].trim() && whitespaceStartsAt === null) {
93
+ whitespaceStartsAt = i;
93
94
  }
94
- let whatToAdd = "";
95
- if (opts.oneSpaceAfterCommaOK) {
96
- if (str[whitespaceStartsAt] === " " && str[whitespaceStartsAt - 1] === opts.separator) {
97
- startingIdx += 1;
98
- } else if (str[whitespaceStartsAt] !== " ") {
99
- whatToAdd = " ";
100
- }
95
+ if (whitespaceStartsAt !== null && (str[i].trim() || i + 1 === opts.to)) {
96
+ if (whitespaceStartsAt === opts.from) {
97
+ if (!opts.leadingWhitespaceOK && typeof opts.errCb === "function") {
98
+ opts.errCb([
99
+ [
100
+ whitespaceStartsAt + opts.offset,
101
+ (i + 1 === opts.to ? i + 1 : i) + opts.offset,
102
+ ],
103
+ ], "Remove whitespace.", fixable);
104
+ }
105
+ }
106
+ else if (!str[i].trim() && i + 1 === opts.to) {
107
+ if (!opts.trailingWhitespaceOK && typeof opts.errCb === "function") {
108
+ opts.errCb([[whitespaceStartsAt + opts.offset, i + 1 + opts.offset]], "Remove whitespace.", fixable);
109
+ }
110
+ }
111
+ else if ((!opts.oneSpaceAfterCommaOK ||
112
+ !(str[i].trim() &&
113
+ i > opts.from + 1 &&
114
+ str[i - 1] === " " &&
115
+ str[i - 2] === ",")) &&
116
+ (!opts.innerWhitespaceAllowed ||
117
+ !(firstNonwhitespaceNonseparatorCharFound &&
118
+ str[whitespaceStartsAt - 1] &&
119
+ str[i].trim() &&
120
+ str[i] !== opts.separator &&
121
+ str[whitespaceStartsAt - 1] !== opts.separator))) {
122
+ let startingIdx = whitespaceStartsAt;
123
+ let endingIdx = i;
124
+ if (i + 1 === opts.to && str[i] !== opts.separator && !str[i].trim()) {
125
+ endingIdx += 1;
126
+ }
127
+ let whatToAdd = "";
128
+ if (opts.oneSpaceAfterCommaOK) {
129
+ if (str[whitespaceStartsAt] === " " &&
130
+ str[whitespaceStartsAt - 1] === opts.separator) {
131
+ startingIdx += 1;
132
+ }
133
+ else if (str[whitespaceStartsAt] !== " ") {
134
+ whatToAdd = " ";
135
+ }
136
+ }
137
+ let message = "Remove whitespace.";
138
+ if (!opts.innerWhitespaceAllowed &&
139
+ firstNonwhitespaceNonseparatorCharFound &&
140
+ str[whitespaceStartsAt - 1] &&
141
+ str[i].trim() &&
142
+ str[i] !== opts.separator &&
143
+ str[whitespaceStartsAt - 1] !== opts.separator) {
144
+ fixable = false;
145
+ message = "Bad whitespace.";
146
+ }
147
+ if (whatToAdd.length) {
148
+ opts.errCb([[startingIdx + opts.offset, endingIdx + opts.offset, whatToAdd]], message, fixable);
149
+ }
150
+ else {
151
+ opts.errCb([[startingIdx + opts.offset, endingIdx + opts.offset]], message, fixable);
152
+ }
153
+ fixable = true;
154
+ }
155
+ whitespaceStartsAt = null;
101
156
  }
102
- let message = "Remove whitespace.";
103
- if (!opts.innerWhitespaceAllowed && firstNonwhitespaceNonseparatorCharFound && str[whitespaceStartsAt - 1] && str[i].trim() && str[i] !== opts.separator && str[whitespaceStartsAt - 1] !== opts.separator) {
104
- fixable = false;
105
- message = "Bad whitespace.";
157
+ if (str[i] === opts.separator) {
158
+ if (!firstNonwhitespaceNonseparatorCharFound) {
159
+ opts.errCb([[i + opts.offset, i + 1 + opts.offset]], "Remove separator.", fixable);
160
+ }
161
+ else {
162
+ separatorsArr.push(i);
163
+ }
106
164
  }
107
- if (whatToAdd.length) {
108
- opts.errCb([[startingIdx + opts.offset, endingIdx + opts.offset, whatToAdd]], message, fixable);
109
- } else {
110
- opts.errCb([[startingIdx + opts.offset, endingIdx + opts.offset]], message, fixable);
165
+ if (i + 1 === opts.to) {
166
+ separatorsArr.forEach((separatorsIdx) => {
167
+ opts.errCb([[separatorsIdx + opts.offset, separatorsIdx + 1 + opts.offset]], "Remove separator.", fixable);
168
+ });
111
169
  }
112
- fixable = true;
113
- }
114
- whitespaceStartsAt = null;
115
- }
116
- if (str[i] === opts.separator) {
117
- if (!firstNonwhitespaceNonseparatorCharFound) {
118
- opts.errCb([[i + opts.offset, i + 1 + opts.offset]], "Remove separator.", fixable);
119
- } else {
120
- separatorsArr.push(i);
121
- }
122
- }
123
- if (i + 1 === opts.to) {
124
- separatorsArr.forEach(separatorsIdx => {
125
- opts.errCb([[separatorsIdx + opts.offset, separatorsIdx + 1 + opts.offset]], "Remove separator.", fixable);
126
- });
127
170
  }
128
- }
129
171
  }
130
172
 
131
173
  export { processCommaSep, version };
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name string-process-comma-separated
3
3
  * @fileoverview Extracts chunks from possibly comma or whatever-separated string
4
- * @version 3.0.5
4
+ * @version 3.0.6
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-process-comma-separated/}
8
8
  */
9
9
 
10
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stringProcessCommaSeparated={})}(this,(function(e){"use strict";e.processCommaSep=function(e,t){if("string"!=typeof e)throw new Error(`string-process-comma-separated: [THROW_ID_01] input must be string! It was given as ${typeof e}, equal to:\n${JSON.stringify(e,null,4)}`);if(!e.length||!t||!t.cb&&!t.errCb)return;const r={...{from:0,to:e.length,offset:0,leadingWhitespaceOK:!1,trailingWhitespaceOK:!1,oneSpaceAfterCommaOK:!1,innerWhitespaceAllowed:!1,separator:",",cb:null,errCb:null},...t};Number.isInteger(t.from)||(r.from=0),Number.isInteger(t.to)||(r.to=e.length),Number.isInteger(t.offset)||(r.offset=0);let o=null,s=null,f=!1,a=[],i=null,n=!0;for(let t=r.from;t<r.to;t++){if(e[t].trim()&&e[t]!==r.separator&&(i=t),null!==o||!e[t].trim()||r.separator&&e[t]===r.separator||(f||(f=!0),a.length&&(a.length>1&&a.forEach(((e,t)=>{t&&r.errCb([[e+r.offset,e+1+r.offset]],"Remove separator.",n)})),a=[]),o=t),Number.isInteger(o)&&(t>o&&r.separator&&e[t]===r.separator||t+1===r.to)&&(e.slice(o,t+1===r.to&&e[t]!==r.separator&&e[t].trim()?t+1:t),"function"==typeof r.cb&&r.cb(o+r.offset,(t+1===r.to&&e[t]!==r.separator&&e[t].trim()?t+1:i+1)+r.offset),o=null),e[t].trim()||null!==s||(s=t),null!==s&&(e[t].trim()||t+1===r.to)){if(s===r.from)r.leadingWhitespaceOK||"function"!=typeof r.errCb||r.errCb([[s+r.offset,(t+1===r.to?t+1:t)+r.offset]],"Remove whitespace.",n);else if(e[t].trim()||t+1!==r.to){if(!(r.oneSpaceAfterCommaOK&&e[t].trim()&&t>r.from+1&&" "===e[t-1]&&","===e[t-2]||r.innerWhitespaceAllowed&&f&&e[s-1]&&e[t].trim()&&e[t]!==r.separator&&e[s-1]!==r.separator)){let o=s,a=t;t+1!==r.to||e[t]===r.separator||e[t].trim()||(a+=1);let i="";r.oneSpaceAfterCommaOK&&(" "===e[s]&&e[s-1]===r.separator?o+=1:" "!==e[s]&&(i=" "));let l="Remove whitespace.";!r.innerWhitespaceAllowed&&f&&e[s-1]&&e[t].trim()&&e[t]!==r.separator&&e[s-1]!==r.separator&&(n=!1,l="Bad whitespace."),r.errCb(i.length?[[o+r.offset,a+r.offset,i]]:[[o+r.offset,a+r.offset]],l,n),n=!0}}else r.trailingWhitespaceOK||"function"!=typeof r.errCb||r.errCb([[s+r.offset,t+1+r.offset]],"Remove whitespace.",n);s=null}e[t]===r.separator&&(f?a.push(t):r.errCb([[t+r.offset,t+1+r.offset]],"Remove separator.",n)),t+1===r.to&&a.forEach((e=>{r.errCb([[e+r.offset,e+1+r.offset]],"Remove separator.",n)}))}},e.version="3.0.5",Object.defineProperty(e,"__esModule",{value:!0})}));
10
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stringProcessCommaSeparated={})}(this,(function(e){"use strict";e.processCommaSep=function(e,t){if("string"!=typeof e)throw new Error(`string-process-comma-separated: [THROW_ID_01] input must be string! It was given as ${typeof e}, equal to:\n${JSON.stringify(e,null,4)}`);if(!e.length||!t||!t.cb&&!t.errCb)return;const r={...{from:0,to:e.length,offset:0,leadingWhitespaceOK:!1,trailingWhitespaceOK:!1,oneSpaceAfterCommaOK:!1,innerWhitespaceAllowed:!1,separator:",",cb:null,errCb:null},...t};Number.isInteger(t.from)||(r.from=0),Number.isInteger(t.to)||(r.to=e.length),Number.isInteger(t.offset)||(r.offset=0);let o=null,s=null,f=!1,a=[],i=null,n=!0;for(let t=r.from;t<r.to;t++){if(e[t].trim()&&e[t]!==r.separator&&(i=t),null!==o||!e[t].trim()||r.separator&&e[t]===r.separator||(f||(f=!0),a.length&&(a.length>1&&a.forEach(((e,t)=>{t&&r.errCb([[e+r.offset,e+1+r.offset]],"Remove separator.",n)})),a=[]),o=t),Number.isInteger(o)&&(t>o&&r.separator&&e[t]===r.separator||t+1===r.to)&&(e.slice(o,t+1===r.to&&e[t]!==r.separator&&e[t].trim()?t+1:t),"function"==typeof r.cb&&r.cb(o+r.offset,(t+1===r.to&&e[t]!==r.separator&&e[t].trim()?t+1:i+1)+r.offset),o=null),e[t].trim()||null!==s||(s=t),null!==s&&(e[t].trim()||t+1===r.to)){if(s===r.from)r.leadingWhitespaceOK||"function"!=typeof r.errCb||r.errCb([[s+r.offset,(t+1===r.to?t+1:t)+r.offset]],"Remove whitespace.",n);else if(e[t].trim()||t+1!==r.to){if(!(r.oneSpaceAfterCommaOK&&e[t].trim()&&t>r.from+1&&" "===e[t-1]&&","===e[t-2]||r.innerWhitespaceAllowed&&f&&e[s-1]&&e[t].trim()&&e[t]!==r.separator&&e[s-1]!==r.separator)){let o=s,a=t;t+1!==r.to||e[t]===r.separator||e[t].trim()||(a+=1);let i="";r.oneSpaceAfterCommaOK&&(" "===e[s]&&e[s-1]===r.separator?o+=1:" "!==e[s]&&(i=" "));let l="Remove whitespace.";!r.innerWhitespaceAllowed&&f&&e[s-1]&&e[t].trim()&&e[t]!==r.separator&&e[s-1]!==r.separator&&(n=!1,l="Bad whitespace."),r.errCb(i.length?[[o+r.offset,a+r.offset,i]]:[[o+r.offset,a+r.offset]],l,n),n=!0}}else r.trailingWhitespaceOK||"function"!=typeof r.errCb||r.errCb([[s+r.offset,t+1+r.offset]],"Remove whitespace.",n);s=null}e[t]===r.separator&&(f?a.push(t):r.errCb([[t+r.offset,t+1+r.offset]],"Remove separator.",n)),t+1===r.to&&a.forEach((e=>{r.errCb([[e+r.offset,e+1+r.offset]],"Remove separator.",n)}))}},e.version="3.0.6",Object.defineProperty(e,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-process-comma-separated",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Extracts chunks from possibly comma or whatever-separated string",
5
5
  "keywords": [
6
6
  "characters",
@@ -34,13 +34,12 @@
34
34
  "types": "types/index.d.ts",
35
35
  "scripts": {
36
36
  "build": "rollup -c",
37
- "ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov",
38
- "clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
37
+ "build:esbuild": "node '../../scripts/esbuild.js'",
38
+ "build:esbuild:dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
39
+ "ci_test": "npm run build && npm run format && tap --no-only --reporter=silent",
39
40
  "clean_types": "../../scripts/cleanTypes.js",
40
41
  "dev": "rollup -c --dev",
41
42
  "devunittest": "npm run dev && tap --only -R 'base'",
42
- "esbuild": "node '../../scripts/esbuild.js'",
43
- "esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
44
43
  "format": "npm run lect && npm run prettier && npm run lint",
45
44
  "lect": "lect",
46
45
  "lint": "../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet",
@@ -49,17 +48,14 @@
49
48
  "republish": "npm publish || :",
50
49
  "tap": "tap",
51
50
  "pretest": "npm run build",
52
- "test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format",
51
+ "test": "npm run test:ci && npm run perf",
52
+ "test:ci": "npm run unittest && npm run test:examples && npm run format",
53
53
  "test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
54
54
  "tsc": "tsc",
55
- "unittest": "tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf"
55
+ "unittest": "tap --no-only --reporter=terse && tsc -p tsconfig.json --noEmit"
56
56
  },
57
57
  "tap": {
58
58
  "check-coverage": false,
59
- "coverage-report": [
60
- "json-summary",
61
- "text"
62
- ],
63
59
  "node-arg": [
64
60
  "--no-warnings",
65
61
  "--experimental-loader",
@@ -79,7 +75,7 @@
79
75
  }
80
76
  },
81
77
  "dependencies": {
82
- "@babel/runtime": "^7.16.0"
78
+ "@babel/runtime": "^7.16.3"
83
79
  },
84
80
  "devDependencies": {
85
81
  "@babel/cli": "^7.16.0",
@@ -90,8 +86,8 @@
90
86
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
91
87
  "@babel/plugin-proposal-object-rest-spread": "^7.16.0",
92
88
  "@babel/plugin-proposal-optional-chaining": "^7.16.0",
93
- "@babel/plugin-transform-runtime": "^7.16.0",
94
- "@babel/preset-env": "^7.16.0",
89
+ "@babel/plugin-transform-runtime": "^7.16.4",
90
+ "@babel/preset-env": "^7.16.4",
95
91
  "@babel/preset-typescript": "^7.16.0",
96
92
  "@babel/register": "^7.16.0",
97
93
  "@istanbuljs/esm-loader-hook": "^0.1.2",
@@ -101,25 +97,25 @@
101
97
  "@rollup/plugin-node-resolve": "^13.0.6",
102
98
  "@rollup/plugin-strip": "^2.1.0",
103
99
  "@rollup/plugin-typescript": "^8.3.0",
104
- "@types/node": "^16.11.6",
100
+ "@types/node": "^16.11.9",
105
101
  "@types/tap": "^15.0.5",
106
- "@typescript-eslint/eslint-plugin": "^5.3.0",
107
- "@typescript-eslint/parser": "^5.3.0",
102
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
103
+ "@typescript-eslint/parser": "^5.4.0",
108
104
  "core-js": "^3.19.1",
109
105
  "cross-env": "^7.0.3",
110
- "eslint": "^8.2.0",
111
- "lect": "^0.18.5",
112
- "rollup": "^2.59.0",
106
+ "eslint": "^8.3.0",
107
+ "lect": "^0.18.6",
108
+ "rollup": "^2.60.0",
113
109
  "rollup-plugin-ascii": "^0.0.3",
114
110
  "rollup-plugin-banner": "^0.2.1",
115
111
  "rollup-plugin-cleanup": "^3.2.1",
116
112
  "rollup-plugin-dts": "^4.0.1",
117
113
  "rollup-plugin-terser": "^7.0.2",
118
- "tap": "^15.0.10",
114
+ "tap": "^15.1.2",
119
115
  "tslib": "^2.3.1",
120
- "typescript": "^4.4.4"
116
+ "typescript": "^4.5.2"
121
117
  },
122
118
  "engines": {
123
- "node": ">=12"
119
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
124
120
  }
125
121
  }