@amekusa/util.js 1.1.0 → 1.2.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.
- package/dist/import/bundle.js +208 -1
- package/dist/require/bundle.cjs +210 -0
- package/package.json +6 -6
package/dist/import/bundle.js
CHANGED
|
@@ -55,6 +55,193 @@ escHTML: escHTML,
|
|
|
55
55
|
escHtml: escHtml
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
+
/*!
|
|
59
|
+
* === @amekusa/util.js/time === *
|
|
60
|
+
* MIT License
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) 2024 Satoshi Soma
|
|
63
|
+
*
|
|
64
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
65
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
66
|
+
* in the Software without restriction, including without limitation the rights
|
|
67
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
68
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
69
|
+
* furnished to do so, subject to the following conditions:
|
|
70
|
+
*
|
|
71
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
72
|
+
* copies or substantial portions of the Software.
|
|
73
|
+
*
|
|
74
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
75
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
76
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
77
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
78
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
79
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
80
|
+
* SOFTWARE.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Coerces the given value into a `Date` object.
|
|
85
|
+
* @param {...any} args - A `Date` object or args to pass to `Date()`
|
|
86
|
+
* @return {Date}
|
|
87
|
+
*/
|
|
88
|
+
function date(...args) {
|
|
89
|
+
if (!args.length || !args[0]) return new Date();
|
|
90
|
+
if (args[0] instanceof Date) return args[0];
|
|
91
|
+
return new Date(...args);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Coerces the given value into a number of milliseconds.
|
|
96
|
+
* @param {...args} args - A number or args to pass to `Date()`
|
|
97
|
+
* @return {number} milliseconds
|
|
98
|
+
*/
|
|
99
|
+
function ms(...args) {
|
|
100
|
+
if (!args.length || !args[0]) return Date.now();
|
|
101
|
+
let x = args[0];
|
|
102
|
+
if (typeof x == 'number') return x;
|
|
103
|
+
if (x instanceof Date) return x.getTime();
|
|
104
|
+
return (new Date(...args)).getTime();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Adds the given amount of time to a `Date` object.
|
|
109
|
+
* @param {Date} d - Date object to modify
|
|
110
|
+
* @param {number} amount - Millieconds to add
|
|
111
|
+
* @return {Date} modified Date
|
|
112
|
+
*/
|
|
113
|
+
function addTime(d, amount) {
|
|
114
|
+
d.setTime(d.getTime() + amount);
|
|
115
|
+
return d;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Subtracts the timezone offset from a `Date` object.
|
|
120
|
+
* @param {Date} d - Date object to modify
|
|
121
|
+
* @return {Date} modified Date
|
|
122
|
+
*/
|
|
123
|
+
function localize(d) {
|
|
124
|
+
d.setTime(d.getTime() - d.getTimezoneOffset() * 60000);
|
|
125
|
+
return d;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Quantizes a `Date` object with the given amount of time.
|
|
130
|
+
* @param {Date} d - Date object to modify
|
|
131
|
+
* @param {number} step - Quantization step size
|
|
132
|
+
* @param {string} [method='round'] - `Math` method to apply
|
|
133
|
+
* @return {Date} modified Date
|
|
134
|
+
*/
|
|
135
|
+
function quantize(d, step, method = 'round') {
|
|
136
|
+
d.setTime(Math[method](d.getTime() / step) * step);
|
|
137
|
+
return d;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Alias of `quantize(d, step, 'round')`.
|
|
142
|
+
*/
|
|
143
|
+
function round(d, step) {
|
|
144
|
+
return quantize(d, step, 'round');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Alias of `quantize(d, step, 'floor')`.
|
|
149
|
+
*/
|
|
150
|
+
function floor(d, step) {
|
|
151
|
+
return quantize(d, step, 'floor');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Alias of `quantize(d, step, 'ceil')`.
|
|
156
|
+
*/
|
|
157
|
+
function ceil(d, step) {
|
|
158
|
+
return quantize(d, step, 'ceil');
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Returns `YYYY`, `MM`, and `DD` representations of a `Date` object.
|
|
163
|
+
* @param {Date} d - Date object
|
|
164
|
+
* @param {string|object} [format]
|
|
165
|
+
* - If omitted, the return value will be an array consists of the three parts.
|
|
166
|
+
* - If a string is passed, the three parts will be joined with the string as a separator.
|
|
167
|
+
* - If an object is passed, the three parts will be assigned as `Y`, `M`, and `D` properties.
|
|
168
|
+
* @return {string|string[]|object}
|
|
169
|
+
*/
|
|
170
|
+
function ymd(d, format = null) {
|
|
171
|
+
let r = [
|
|
172
|
+
d.getFullYear().toString(),
|
|
173
|
+
(d.getMonth() + 1).toString().padStart(2, '0'),
|
|
174
|
+
d.getDate().toString().padStart(2, '0'),
|
|
175
|
+
];
|
|
176
|
+
switch (typeof format) {
|
|
177
|
+
case 'string':
|
|
178
|
+
return r.join(format);
|
|
179
|
+
case 'object':
|
|
180
|
+
if (!format) return r;
|
|
181
|
+
format.Y = r[0];
|
|
182
|
+
format.M = r[1];
|
|
183
|
+
format.D = r[2];
|
|
184
|
+
return format;
|
|
185
|
+
default:
|
|
186
|
+
if (!format) return r;
|
|
187
|
+
throw `invalid type`;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns `hh`, `mm`, and `ss` representations of a `Date` object.
|
|
193
|
+
* @param {Date} d - Date object
|
|
194
|
+
* @param {string|object} [format]
|
|
195
|
+
* - If omited, the return value will be an array consists of the three parts.
|
|
196
|
+
* - If a string is passed, the three parts will be joined with the string as a separator.
|
|
197
|
+
* - If an object is passed, the three parts will be assigned as `h`, `m`, and `s` properties.
|
|
198
|
+
* @return {string|string[]|object}
|
|
199
|
+
*/
|
|
200
|
+
function hms(d, format = null) {
|
|
201
|
+
let r = [
|
|
202
|
+
d.getHours().toString().padStart(2, '0'),
|
|
203
|
+
d.getMinutes().toString().padStart(2, '0'),
|
|
204
|
+
d.getSeconds().toString().padStart(2, '0'),
|
|
205
|
+
];
|
|
206
|
+
switch (typeof format) {
|
|
207
|
+
case 'string':
|
|
208
|
+
return r.join(format);
|
|
209
|
+
case 'object':
|
|
210
|
+
if (!format) return r;
|
|
211
|
+
format.h = r[0];
|
|
212
|
+
format.m = r[1];
|
|
213
|
+
format.s = r[2];
|
|
214
|
+
return format;
|
|
215
|
+
default:
|
|
216
|
+
if (!format) return r;
|
|
217
|
+
throw `invalid type`;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Returns a string representation of the given `Date` in ISO 9075 format, which is standard for MySQL.
|
|
223
|
+
* @param {Date} d - Date object
|
|
224
|
+
* @return {string} a string like `YYYY-MM-DD hh:mm:ss`
|
|
225
|
+
*/
|
|
226
|
+
function iso9075(d) {
|
|
227
|
+
return ymd(d, '-') + ' ' + hms(d, ':');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
var time = /*#__PURE__*/Object.freeze({
|
|
231
|
+
__proto__: null,
|
|
232
|
+
addTime: addTime,
|
|
233
|
+
ceil: ceil,
|
|
234
|
+
date: date,
|
|
235
|
+
floor: floor,
|
|
236
|
+
hms: hms,
|
|
237
|
+
iso9075: iso9075,
|
|
238
|
+
localize: localize,
|
|
239
|
+
ms: ms,
|
|
240
|
+
quantize: quantize,
|
|
241
|
+
round: round,
|
|
242
|
+
ymd: ymd
|
|
243
|
+
});
|
|
244
|
+
|
|
58
245
|
/*!
|
|
59
246
|
* === @amekusa/util.js === *
|
|
60
247
|
* MIT License
|
|
@@ -89,6 +276,26 @@ function arr(x) {
|
|
|
89
276
|
return Array.isArray(x) ? x : [x];
|
|
90
277
|
}
|
|
91
278
|
|
|
279
|
+
/**
|
|
280
|
+
* Alias of `Array.isArray`.
|
|
281
|
+
* @return {boolean}
|
|
282
|
+
*/
|
|
283
|
+
const isArray = Array.isArray;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Returns whether the given value is a number or a string.
|
|
287
|
+
* @param {any} x
|
|
288
|
+
* @return {boolean}
|
|
289
|
+
*/
|
|
290
|
+
function isNumOrStr(x) {
|
|
291
|
+
switch (typeof x) {
|
|
292
|
+
case 'number':
|
|
293
|
+
case 'string':
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
|
|
92
299
|
/**
|
|
93
300
|
* Returns whether the given value can be considered as "empty".
|
|
94
301
|
* @param {any} x
|
|
@@ -185,4 +392,4 @@ var main = {
|
|
|
185
392
|
merge,
|
|
186
393
|
};
|
|
187
394
|
|
|
188
|
-
export { arr, clean, main as default, isEmpty, merge, web };
|
|
395
|
+
export { arr, clean, main as default, isArray, isEmpty, isNumOrStr, merge, time, web };
|
package/dist/require/bundle.cjs
CHANGED
|
@@ -59,6 +59,193 @@ escHTML: escHTML,
|
|
|
59
59
|
escHtml: escHtml
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
+
/*!
|
|
63
|
+
* === @amekusa/util.js/time === *
|
|
64
|
+
* MIT License
|
|
65
|
+
*
|
|
66
|
+
* Copyright (c) 2024 Satoshi Soma
|
|
67
|
+
*
|
|
68
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
69
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
70
|
+
* in the Software without restriction, including without limitation the rights
|
|
71
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
73
|
+
* furnished to do so, subject to the following conditions:
|
|
74
|
+
*
|
|
75
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
76
|
+
* copies or substantial portions of the Software.
|
|
77
|
+
*
|
|
78
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
79
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
81
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
82
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
83
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
84
|
+
* SOFTWARE.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Coerces the given value into a `Date` object.
|
|
89
|
+
* @param {...any} args - A `Date` object or args to pass to `Date()`
|
|
90
|
+
* @return {Date}
|
|
91
|
+
*/
|
|
92
|
+
function date(...args) {
|
|
93
|
+
if (!args.length || !args[0]) return new Date();
|
|
94
|
+
if (args[0] instanceof Date) return args[0];
|
|
95
|
+
return new Date(...args);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Coerces the given value into a number of milliseconds.
|
|
100
|
+
* @param {...args} args - A number or args to pass to `Date()`
|
|
101
|
+
* @return {number} milliseconds
|
|
102
|
+
*/
|
|
103
|
+
function ms(...args) {
|
|
104
|
+
if (!args.length || !args[0]) return Date.now();
|
|
105
|
+
let x = args[0];
|
|
106
|
+
if (typeof x == 'number') return x;
|
|
107
|
+
if (x instanceof Date) return x.getTime();
|
|
108
|
+
return (new Date(...args)).getTime();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Adds the given amount of time to a `Date` object.
|
|
113
|
+
* @param {Date} d - Date object to modify
|
|
114
|
+
* @param {number} amount - Millieconds to add
|
|
115
|
+
* @return {Date} modified Date
|
|
116
|
+
*/
|
|
117
|
+
function addTime(d, amount) {
|
|
118
|
+
d.setTime(d.getTime() + amount);
|
|
119
|
+
return d;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Subtracts the timezone offset from a `Date` object.
|
|
124
|
+
* @param {Date} d - Date object to modify
|
|
125
|
+
* @return {Date} modified Date
|
|
126
|
+
*/
|
|
127
|
+
function localize(d) {
|
|
128
|
+
d.setTime(d.getTime() - d.getTimezoneOffset() * 60000);
|
|
129
|
+
return d;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Quantizes a `Date` object with the given amount of time.
|
|
134
|
+
* @param {Date} d - Date object to modify
|
|
135
|
+
* @param {number} step - Quantization step size
|
|
136
|
+
* @param {string} [method='round'] - `Math` method to apply
|
|
137
|
+
* @return {Date} modified Date
|
|
138
|
+
*/
|
|
139
|
+
function quantize(d, step, method = 'round') {
|
|
140
|
+
d.setTime(Math[method](d.getTime() / step) * step);
|
|
141
|
+
return d;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Alias of `quantize(d, step, 'round')`.
|
|
146
|
+
*/
|
|
147
|
+
function round(d, step) {
|
|
148
|
+
return quantize(d, step, 'round');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Alias of `quantize(d, step, 'floor')`.
|
|
153
|
+
*/
|
|
154
|
+
function floor(d, step) {
|
|
155
|
+
return quantize(d, step, 'floor');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Alias of `quantize(d, step, 'ceil')`.
|
|
160
|
+
*/
|
|
161
|
+
function ceil(d, step) {
|
|
162
|
+
return quantize(d, step, 'ceil');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Returns `YYYY`, `MM`, and `DD` representations of a `Date` object.
|
|
167
|
+
* @param {Date} d - Date object
|
|
168
|
+
* @param {string|object} [format]
|
|
169
|
+
* - If omitted, the return value will be an array consists of the three parts.
|
|
170
|
+
* - If a string is passed, the three parts will be joined with the string as a separator.
|
|
171
|
+
* - If an object is passed, the three parts will be assigned as `Y`, `M`, and `D` properties.
|
|
172
|
+
* @return {string|string[]|object}
|
|
173
|
+
*/
|
|
174
|
+
function ymd(d, format = null) {
|
|
175
|
+
let r = [
|
|
176
|
+
d.getFullYear().toString(),
|
|
177
|
+
(d.getMonth() + 1).toString().padStart(2, '0'),
|
|
178
|
+
d.getDate().toString().padStart(2, '0'),
|
|
179
|
+
];
|
|
180
|
+
switch (typeof format) {
|
|
181
|
+
case 'string':
|
|
182
|
+
return r.join(format);
|
|
183
|
+
case 'object':
|
|
184
|
+
if (!format) return r;
|
|
185
|
+
format.Y = r[0];
|
|
186
|
+
format.M = r[1];
|
|
187
|
+
format.D = r[2];
|
|
188
|
+
return format;
|
|
189
|
+
default:
|
|
190
|
+
if (!format) return r;
|
|
191
|
+
throw `invalid type`;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Returns `hh`, `mm`, and `ss` representations of a `Date` object.
|
|
197
|
+
* @param {Date} d - Date object
|
|
198
|
+
* @param {string|object} [format]
|
|
199
|
+
* - If omited, the return value will be an array consists of the three parts.
|
|
200
|
+
* - If a string is passed, the three parts will be joined with the string as a separator.
|
|
201
|
+
* - If an object is passed, the three parts will be assigned as `h`, `m`, and `s` properties.
|
|
202
|
+
* @return {string|string[]|object}
|
|
203
|
+
*/
|
|
204
|
+
function hms(d, format = null) {
|
|
205
|
+
let r = [
|
|
206
|
+
d.getHours().toString().padStart(2, '0'),
|
|
207
|
+
d.getMinutes().toString().padStart(2, '0'),
|
|
208
|
+
d.getSeconds().toString().padStart(2, '0'),
|
|
209
|
+
];
|
|
210
|
+
switch (typeof format) {
|
|
211
|
+
case 'string':
|
|
212
|
+
return r.join(format);
|
|
213
|
+
case 'object':
|
|
214
|
+
if (!format) return r;
|
|
215
|
+
format.h = r[0];
|
|
216
|
+
format.m = r[1];
|
|
217
|
+
format.s = r[2];
|
|
218
|
+
return format;
|
|
219
|
+
default:
|
|
220
|
+
if (!format) return r;
|
|
221
|
+
throw `invalid type`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Returns a string representation of the given `Date` in ISO 9075 format, which is standard for MySQL.
|
|
227
|
+
* @param {Date} d - Date object
|
|
228
|
+
* @return {string} a string like `YYYY-MM-DD hh:mm:ss`
|
|
229
|
+
*/
|
|
230
|
+
function iso9075(d) {
|
|
231
|
+
return ymd(d, '-') + ' ' + hms(d, ':');
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
var time = /*#__PURE__*/Object.freeze({
|
|
235
|
+
__proto__: null,
|
|
236
|
+
addTime: addTime,
|
|
237
|
+
ceil: ceil,
|
|
238
|
+
date: date,
|
|
239
|
+
floor: floor,
|
|
240
|
+
hms: hms,
|
|
241
|
+
iso9075: iso9075,
|
|
242
|
+
localize: localize,
|
|
243
|
+
ms: ms,
|
|
244
|
+
quantize: quantize,
|
|
245
|
+
round: round,
|
|
246
|
+
ymd: ymd
|
|
247
|
+
});
|
|
248
|
+
|
|
62
249
|
/*!
|
|
63
250
|
* === @amekusa/util.js === *
|
|
64
251
|
* MIT License
|
|
@@ -93,6 +280,26 @@ function arr(x) {
|
|
|
93
280
|
return Array.isArray(x) ? x : [x];
|
|
94
281
|
}
|
|
95
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Alias of `Array.isArray`.
|
|
285
|
+
* @return {boolean}
|
|
286
|
+
*/
|
|
287
|
+
const isArray = Array.isArray;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Returns whether the given value is a number or a string.
|
|
291
|
+
* @param {any} x
|
|
292
|
+
* @return {boolean}
|
|
293
|
+
*/
|
|
294
|
+
function isNumOrStr(x) {
|
|
295
|
+
switch (typeof x) {
|
|
296
|
+
case 'number':
|
|
297
|
+
case 'string':
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
|
|
96
303
|
/**
|
|
97
304
|
* Returns whether the given value can be considered as "empty".
|
|
98
305
|
* @param {any} x
|
|
@@ -192,6 +399,9 @@ var main = {
|
|
|
192
399
|
exports.arr = arr;
|
|
193
400
|
exports.clean = clean;
|
|
194
401
|
exports.default = main;
|
|
402
|
+
exports.isArray = isArray;
|
|
195
403
|
exports.isEmpty = isEmpty;
|
|
404
|
+
exports.isNumOrStr = isNumOrStr;
|
|
196
405
|
exports.merge = merge;
|
|
406
|
+
exports.time = time;
|
|
197
407
|
exports.web = web;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.1
|
|
8
|
+
"version": "1.2.1",
|
|
9
9
|
"description": "General purpose utility for JS",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"files": [
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
},
|
|
32
32
|
"watch": {
|
|
33
33
|
"build": {
|
|
34
|
-
"inherit": true,
|
|
35
34
|
"patterns": [
|
|
36
35
|
"src"
|
|
37
36
|
],
|
|
38
37
|
"extensions": "js",
|
|
39
|
-
"delay": 100
|
|
38
|
+
"delay": 100,
|
|
39
|
+
"inherit": true
|
|
40
40
|
},
|
|
41
41
|
"test": {
|
|
42
|
-
"inherit": true,
|
|
43
42
|
"patterns": [
|
|
44
43
|
"test",
|
|
45
44
|
"dist/**"
|
|
46
45
|
],
|
|
47
46
|
"extensions": "js,mjs,cjs",
|
|
48
|
-
"delay": 100
|
|
47
|
+
"delay": 100,
|
|
48
|
+
"inherit": true
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"repository": {
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"author": "Satoshi Soma (https://amekusa.com)",
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@amekusa/nodeutil": "^
|
|
62
|
+
"@amekusa/nodeutil": "^3.4.0"
|
|
63
63
|
}
|
|
64
64
|
}
|