string-process-comma-separated 3.0.2 → 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.
package/CHANGELOG.md CHANGED
@@ -3,12 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## 3.0.1 (2021-09-13)
7
-
8
- ### Bug Fixes
9
-
10
- - bump TS and separate ESLint plugins away from this monorepo ([2e07d42](https://github.com/codsen/codsen/commit/2e07d424222b6ffedf5fb45c83ad453627ec2904))
11
-
12
6
  ## 3.0.0 (2021-09-09)
13
7
 
14
8
  ### Features
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-%YEAR% Roy Revelt and other contributors
3
+ Copyright (c) 2010-2021 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -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.2
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.2";
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.2
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.2",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.2",
3
+ "version": "3.0.6",
4
4
  "description": "Extracts chunks from possibly comma or whatever-separated string",
5
5
  "keywords": [
6
6
  "characters",
@@ -34,9 +34,10 @@
34
34
  "types": "types/index.d.ts",
35
35
  "scripts": {
36
36
  "build": "rollup -c",
37
- "esbuild": "node '../../scripts/esbuild.js'",
38
- "esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
39
- "ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov",
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",
40
+ "clean_types": "../../scripts/cleanTypes.js",
40
41
  "dev": "rollup -c --dev",
41
42
  "devunittest": "npm run dev && tap --only -R 'base'",
42
43
  "format": "npm run lect && npm run prettier && npm run lint",
@@ -46,20 +47,15 @@
46
47
  "prettier": "../../node_modules/prettier/bin-prettier.js '*.{js,css,scss,vue,md,ts}' --write --loglevel silent",
47
48
  "republish": "npm publish || :",
48
49
  "tap": "tap",
49
- "tsc": "tsc",
50
50
  "pretest": "npm run build",
51
- "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",
52
53
  "test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
53
- "unittest": "tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf",
54
- "clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
55
- "clean_types": "../../scripts/cleanTypes.js"
54
+ "tsc": "tsc",
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,47 +75,47 @@
79
75
  }
80
76
  },
81
77
  "dependencies": {
82
- "@babel/runtime": "^7.15.4"
78
+ "@babel/runtime": "^7.16.3"
83
79
  },
84
80
  "devDependencies": {
85
- "@babel/cli": "^7.15.4",
86
- "@babel/core": "^7.15.5",
87
- "@babel/node": "^7.15.4",
88
- "@babel/plugin-external-helpers": "^7.14.5",
89
- "@babel/plugin-proposal-class-properties": "^7.14.5",
90
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
91
- "@babel/plugin-proposal-object-rest-spread": "^7.15.6",
92
- "@babel/plugin-proposal-optional-chaining": "^7.14.5",
93
- "@babel/plugin-transform-runtime": "^7.15.0",
94
- "@babel/preset-env": "^7.15.6",
95
- "@babel/preset-typescript": "^7.15.0",
96
- "@babel/register": "^7.15.3",
81
+ "@babel/cli": "^7.16.0",
82
+ "@babel/core": "^7.16.0",
83
+ "@babel/node": "^7.16.0",
84
+ "@babel/plugin-external-helpers": "^7.16.0",
85
+ "@babel/plugin-proposal-class-properties": "^7.16.0",
86
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
87
+ "@babel/plugin-proposal-object-rest-spread": "^7.16.0",
88
+ "@babel/plugin-proposal-optional-chaining": "^7.16.0",
89
+ "@babel/plugin-transform-runtime": "^7.16.4",
90
+ "@babel/preset-env": "^7.16.4",
91
+ "@babel/preset-typescript": "^7.16.0",
92
+ "@babel/register": "^7.16.0",
97
93
  "@istanbuljs/esm-loader-hook": "^0.1.2",
98
94
  "@rollup/plugin-babel": "^5.3.0",
99
- "@rollup/plugin-commonjs": "^20.0.0",
95
+ "@rollup/plugin-commonjs": "^21.0.1",
100
96
  "@rollup/plugin-json": "^4.1.0",
101
- "@rollup/plugin-node-resolve": "^13.0.4",
97
+ "@rollup/plugin-node-resolve": "^13.0.6",
102
98
  "@rollup/plugin-strip": "^2.1.0",
103
- "@rollup/plugin-typescript": "^8.2.5",
104
- "@types/node": "^16.9.1",
99
+ "@rollup/plugin-typescript": "^8.3.0",
100
+ "@types/node": "^16.11.9",
105
101
  "@types/tap": "^15.0.5",
106
- "@typescript-eslint/eslint-plugin": "^4.31.0",
107
- "@typescript-eslint/parser": "^4.31.0",
108
- "core-js": "^3.17.3",
102
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
103
+ "@typescript-eslint/parser": "^5.4.0",
104
+ "core-js": "^3.19.1",
109
105
  "cross-env": "^7.0.3",
110
- "eslint": "^7.32.0",
111
- "lect": "^0.18.2",
112
- "rollup": "^2.56.3",
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
- "rollup-plugin-dts": "^4.0.0",
112
+ "rollup-plugin-dts": "^4.0.1",
117
113
  "rollup-plugin-terser": "^7.0.2",
118
- "tap": "^15.0.9",
114
+ "tap": "^15.1.2",
119
115
  "tslib": "^2.3.1",
120
- "typescript": "^4.4.3"
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
  }