@daysnap/utils 0.1.27 → 0.1.29
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/docs/classes/Poller.md +9 -9
- package/docs/classes/Storage.md +13 -13
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/PollerOptions.md +1 -1
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +204 -155
- package/es/chunk-6CNTNYSN.js +8 -0
- package/es/chunk-ODZQXCS4.js +319 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +14 -6
- package/es/sounds.d.ts +14 -0
- package/es/sounds.js +6 -0
- package/es/toPosix.d.ts +6 -0
- package/es/toPosix.js +6 -0
- package/lib/chunk-EUL63MJO.cjs +8 -0
- package/lib/chunk-GCRDIQOE.cjs +319 -0
- package/lib/index.cjs +14 -6
- package/lib/index.d.cts +2 -0
- package/lib/sounds.cjs +6 -0
- package/lib/sounds.d.cts +14 -0
- package/lib/toPosix.cjs +6 -0
- package/lib/toPosix.d.cts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/sounds.ts
|
|
2
|
+
var audioContext = null;
|
|
3
|
+
function getAudioContext() {
|
|
4
|
+
if (!audioContext) {
|
|
5
|
+
audioContext = new AudioContext();
|
|
6
|
+
}
|
|
7
|
+
if (audioContext.state === "suspended") {
|
|
8
|
+
audioContext.resume();
|
|
9
|
+
}
|
|
10
|
+
return audioContext;
|
|
11
|
+
}
|
|
12
|
+
var sounds = {
|
|
13
|
+
click: () => {
|
|
14
|
+
try {
|
|
15
|
+
const ctx = getAudioContext();
|
|
16
|
+
const t = ctx.currentTime;
|
|
17
|
+
const noise = ctx.createBufferSource();
|
|
18
|
+
const buf = ctx.createBuffer(1, ctx.sampleRate * 8e-3, ctx.sampleRate);
|
|
19
|
+
const data = buf.getChannelData(0);
|
|
20
|
+
for (let i = 0; i < data.length; i++) {
|
|
21
|
+
data[i] = (Math.random() * 2 - 1) * Math.exp(-i / 50);
|
|
22
|
+
}
|
|
23
|
+
noise.buffer = buf;
|
|
24
|
+
const filter = ctx.createBiquadFilter();
|
|
25
|
+
filter.type = "bandpass";
|
|
26
|
+
filter.frequency.value = 4e3 + Math.random() * 1e3;
|
|
27
|
+
filter.Q.value = 3;
|
|
28
|
+
const gain = ctx.createGain();
|
|
29
|
+
gain.gain.value = 0.5 + Math.random() * 0.15;
|
|
30
|
+
noise.connect(filter);
|
|
31
|
+
filter.connect(gain);
|
|
32
|
+
gain.connect(ctx.destination);
|
|
33
|
+
noise.start(t);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error("Error playing click sound");
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
pop: () => {
|
|
39
|
+
try {
|
|
40
|
+
const ctx = getAudioContext();
|
|
41
|
+
const t = ctx.currentTime;
|
|
42
|
+
const osc = ctx.createOscillator();
|
|
43
|
+
const gain = ctx.createGain();
|
|
44
|
+
osc.type = "sine";
|
|
45
|
+
osc.frequency.setValueAtTime(400, t);
|
|
46
|
+
osc.frequency.exponentialRampToValueAtTime(150, t + 0.04);
|
|
47
|
+
gain.gain.setValueAtTime(0.35, t);
|
|
48
|
+
gain.gain.exponentialRampToValueAtTime(1e-3, t + 0.05);
|
|
49
|
+
osc.connect(gain);
|
|
50
|
+
gain.connect(ctx.destination);
|
|
51
|
+
osc.start(t);
|
|
52
|
+
osc.stop(t + 0.05);
|
|
53
|
+
} catch (e2) {
|
|
54
|
+
console.error("Error playing pop sound");
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
toggle: () => {
|
|
58
|
+
try {
|
|
59
|
+
const ctx = getAudioContext();
|
|
60
|
+
const t = ctx.currentTime;
|
|
61
|
+
const noise = ctx.createBufferSource();
|
|
62
|
+
const buf = ctx.createBuffer(1, ctx.sampleRate * 0.012, ctx.sampleRate);
|
|
63
|
+
const data = buf.getChannelData(0);
|
|
64
|
+
for (let i = 0; i < data.length; i++) {
|
|
65
|
+
data[i] = (Math.random() * 2 - 1) * Math.exp(-i / 80);
|
|
66
|
+
}
|
|
67
|
+
noise.buffer = buf;
|
|
68
|
+
const filter = ctx.createBiquadFilter();
|
|
69
|
+
filter.type = "bandpass";
|
|
70
|
+
filter.frequency.value = 2500;
|
|
71
|
+
filter.Q.value = 4;
|
|
72
|
+
const gain = ctx.createGain();
|
|
73
|
+
gain.gain.value = 0.4;
|
|
74
|
+
noise.connect(filter);
|
|
75
|
+
filter.connect(gain);
|
|
76
|
+
gain.connect(ctx.destination);
|
|
77
|
+
noise.start(t);
|
|
78
|
+
const osc = ctx.createOscillator();
|
|
79
|
+
const oscGain = ctx.createGain();
|
|
80
|
+
osc.type = "sine";
|
|
81
|
+
osc.frequency.setValueAtTime(800, t);
|
|
82
|
+
osc.frequency.exponentialRampToValueAtTime(400, t + 0.03);
|
|
83
|
+
oscGain.gain.setValueAtTime(0.15, t);
|
|
84
|
+
oscGain.gain.exponentialRampToValueAtTime(1e-3, t + 0.04);
|
|
85
|
+
osc.connect(oscGain);
|
|
86
|
+
oscGain.connect(ctx.destination);
|
|
87
|
+
osc.start(t);
|
|
88
|
+
osc.stop(t + 0.04);
|
|
89
|
+
} catch (e3) {
|
|
90
|
+
console.error("Error playing toggle sound");
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
tick: () => {
|
|
94
|
+
try {
|
|
95
|
+
const ctx = getAudioContext();
|
|
96
|
+
const t = ctx.currentTime;
|
|
97
|
+
const noise = ctx.createBufferSource();
|
|
98
|
+
const buf = ctx.createBuffer(1, ctx.sampleRate * 4e-3, ctx.sampleRate);
|
|
99
|
+
const data = buf.getChannelData(0);
|
|
100
|
+
for (let i = 0; i < data.length; i++) {
|
|
101
|
+
data[i] = (Math.random() * 2 - 1) * Math.exp(-i / 20);
|
|
102
|
+
}
|
|
103
|
+
noise.buffer = buf;
|
|
104
|
+
const filter = ctx.createBiquadFilter();
|
|
105
|
+
filter.type = "highpass";
|
|
106
|
+
filter.frequency.value = 3e3;
|
|
107
|
+
const gain = ctx.createGain();
|
|
108
|
+
gain.gain.value = 0.3;
|
|
109
|
+
noise.connect(filter);
|
|
110
|
+
filter.connect(gain);
|
|
111
|
+
gain.connect(ctx.destination);
|
|
112
|
+
noise.start(t);
|
|
113
|
+
} catch (e4) {
|
|
114
|
+
console.error("Error playing tick sound");
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
whoosh: () => {
|
|
118
|
+
try {
|
|
119
|
+
const ctx = getAudioContext();
|
|
120
|
+
const t = ctx.currentTime;
|
|
121
|
+
const noise = ctx.createBufferSource();
|
|
122
|
+
const buf = ctx.createBuffer(1, ctx.sampleRate * 0.08, ctx.sampleRate);
|
|
123
|
+
const data = buf.getChannelData(0);
|
|
124
|
+
for (let i = 0; i < data.length; i++) {
|
|
125
|
+
const env = Math.sin(i / data.length * Math.PI);
|
|
126
|
+
data[i] = (Math.random() * 2 - 1) * env;
|
|
127
|
+
}
|
|
128
|
+
noise.buffer = buf;
|
|
129
|
+
const filter = ctx.createBiquadFilter();
|
|
130
|
+
filter.type = "bandpass";
|
|
131
|
+
filter.frequency.setValueAtTime(4e3, t);
|
|
132
|
+
filter.frequency.exponentialRampToValueAtTime(1500, t + 0.08);
|
|
133
|
+
filter.Q.value = 1;
|
|
134
|
+
const gain = ctx.createGain();
|
|
135
|
+
gain.gain.value = 0.15;
|
|
136
|
+
noise.connect(filter);
|
|
137
|
+
filter.connect(gain);
|
|
138
|
+
gain.connect(ctx.destination);
|
|
139
|
+
noise.start(t);
|
|
140
|
+
} catch (e5) {
|
|
141
|
+
console.error("Error playing whoosh sound");
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
success: () => {
|
|
145
|
+
try {
|
|
146
|
+
const ctx = getAudioContext();
|
|
147
|
+
const t = ctx.currentTime;
|
|
148
|
+
const notes = [523.25, 659.25, 783.99];
|
|
149
|
+
const spacing = 0.08;
|
|
150
|
+
notes.forEach((freq, i) => {
|
|
151
|
+
const osc = ctx.createOscillator();
|
|
152
|
+
const osc2 = ctx.createOscillator();
|
|
153
|
+
const gain = ctx.createGain();
|
|
154
|
+
const filter = ctx.createBiquadFilter();
|
|
155
|
+
osc.type = "triangle";
|
|
156
|
+
osc.frequency.value = freq;
|
|
157
|
+
osc2.type = "sine";
|
|
158
|
+
osc2.frequency.value = freq * 2;
|
|
159
|
+
filter.type = "lowpass";
|
|
160
|
+
filter.frequency.value = 3e3;
|
|
161
|
+
const start = t + i * spacing;
|
|
162
|
+
const duration = 0.15;
|
|
163
|
+
gain.gain.setValueAtTime(0, start);
|
|
164
|
+
gain.gain.linearRampToValueAtTime(0.25, start + 0.01);
|
|
165
|
+
gain.gain.exponentialRampToValueAtTime(1e-3, start + duration);
|
|
166
|
+
osc.connect(gain);
|
|
167
|
+
osc2.connect(gain);
|
|
168
|
+
gain.connect(filter);
|
|
169
|
+
filter.connect(ctx.destination);
|
|
170
|
+
osc.start(start);
|
|
171
|
+
osc2.start(start);
|
|
172
|
+
osc.stop(start + duration);
|
|
173
|
+
osc2.stop(start + duration);
|
|
174
|
+
});
|
|
175
|
+
const shimmer = ctx.createOscillator();
|
|
176
|
+
const shimmerGain = ctx.createGain();
|
|
177
|
+
shimmer.type = "sine";
|
|
178
|
+
shimmer.frequency.value = 1046.5;
|
|
179
|
+
shimmerGain.gain.setValueAtTime(0, t + 0.24);
|
|
180
|
+
shimmerGain.gain.linearRampToValueAtTime(0.15, t + 0.26);
|
|
181
|
+
shimmerGain.gain.exponentialRampToValueAtTime(1e-3, t + 0.45);
|
|
182
|
+
shimmer.connect(shimmerGain);
|
|
183
|
+
shimmerGain.connect(ctx.destination);
|
|
184
|
+
shimmer.start(t + 0.24);
|
|
185
|
+
shimmer.stop(t + 0.45);
|
|
186
|
+
} catch (e6) {
|
|
187
|
+
console.error("Error playing success sound");
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
confirm: () => {
|
|
191
|
+
try {
|
|
192
|
+
const ctx = getAudioContext();
|
|
193
|
+
const t = ctx.currentTime;
|
|
194
|
+
const noise = ctx.createBufferSource();
|
|
195
|
+
const buf = ctx.createBuffer(1, ctx.sampleRate * 0.015, ctx.sampleRate);
|
|
196
|
+
const data = buf.getChannelData(0);
|
|
197
|
+
for (let i = 0; i < data.length; i++) {
|
|
198
|
+
data[i] = (Math.random() * 2 - 1) * Math.exp(-i / 100);
|
|
199
|
+
}
|
|
200
|
+
noise.buffer = buf;
|
|
201
|
+
const filter = ctx.createBiquadFilter();
|
|
202
|
+
filter.type = "bandpass";
|
|
203
|
+
filter.frequency.value = 2e3;
|
|
204
|
+
filter.Q.value = 2;
|
|
205
|
+
const gain = ctx.createGain();
|
|
206
|
+
gain.gain.value = 0.4;
|
|
207
|
+
noise.connect(filter);
|
|
208
|
+
filter.connect(gain);
|
|
209
|
+
gain.connect(ctx.destination);
|
|
210
|
+
noise.start(t);
|
|
211
|
+
const osc = ctx.createOscillator();
|
|
212
|
+
const oscGain = ctx.createGain();
|
|
213
|
+
osc.type = "sine";
|
|
214
|
+
osc.frequency.setValueAtTime(150, t);
|
|
215
|
+
osc.frequency.exponentialRampToValueAtTime(60, t + 0.05);
|
|
216
|
+
oscGain.gain.setValueAtTime(0.25, t);
|
|
217
|
+
oscGain.gain.exponentialRampToValueAtTime(1e-3, t + 0.06);
|
|
218
|
+
osc.connect(oscGain);
|
|
219
|
+
oscGain.connect(ctx.destination);
|
|
220
|
+
osc.start(t);
|
|
221
|
+
osc.stop(t + 0.06);
|
|
222
|
+
} catch (e7) {
|
|
223
|
+
console.error("Error playing confirm sound");
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
error: () => {
|
|
227
|
+
try {
|
|
228
|
+
const ctx = getAudioContext();
|
|
229
|
+
const t = ctx.currentTime;
|
|
230
|
+
const osc1 = ctx.createOscillator();
|
|
231
|
+
const osc2 = ctx.createOscillator();
|
|
232
|
+
const gain = ctx.createGain();
|
|
233
|
+
const distortion = ctx.createWaveShaper();
|
|
234
|
+
const curve = new Float32Array(256);
|
|
235
|
+
for (let i = 0; i < 256; i++) {
|
|
236
|
+
const x = i / 128 - 1;
|
|
237
|
+
curve[i] = Math.tanh(x * 2);
|
|
238
|
+
}
|
|
239
|
+
distortion.curve = curve;
|
|
240
|
+
osc1.type = "sawtooth";
|
|
241
|
+
osc1.frequency.setValueAtTime(180, t);
|
|
242
|
+
osc1.frequency.exponentialRampToValueAtTime(80, t + 0.25);
|
|
243
|
+
osc2.type = "square";
|
|
244
|
+
osc2.frequency.setValueAtTime(190, t);
|
|
245
|
+
osc2.frequency.exponentialRampToValueAtTime(85, t + 0.25);
|
|
246
|
+
gain.gain.setValueAtTime(0, t);
|
|
247
|
+
gain.gain.linearRampToValueAtTime(0.3, t + 0.02);
|
|
248
|
+
gain.gain.setValueAtTime(0.3, t + 0.08);
|
|
249
|
+
gain.gain.linearRampToValueAtTime(0.25, t + 0.1);
|
|
250
|
+
gain.gain.exponentialRampToValueAtTime(1e-3, t + 0.3);
|
|
251
|
+
const filter = ctx.createBiquadFilter();
|
|
252
|
+
filter.type = "lowpass";
|
|
253
|
+
filter.frequency.value = 800;
|
|
254
|
+
osc1.connect(distortion);
|
|
255
|
+
osc2.connect(distortion);
|
|
256
|
+
distortion.connect(gain);
|
|
257
|
+
gain.connect(filter);
|
|
258
|
+
filter.connect(ctx.destination);
|
|
259
|
+
osc1.start(t);
|
|
260
|
+
osc2.start(t);
|
|
261
|
+
osc1.stop(t + 0.3);
|
|
262
|
+
osc2.stop(t + 0.3);
|
|
263
|
+
} catch (e8) {
|
|
264
|
+
console.error("Error playing error sound");
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
warning: () => {
|
|
268
|
+
try {
|
|
269
|
+
const ctx = getAudioContext();
|
|
270
|
+
const t = ctx.currentTime;
|
|
271
|
+
[0, 0.15].forEach((delay, i) => {
|
|
272
|
+
const osc = ctx.createOscillator();
|
|
273
|
+
const gain = ctx.createGain();
|
|
274
|
+
const filter = ctx.createBiquadFilter();
|
|
275
|
+
osc.type = "triangle";
|
|
276
|
+
osc.frequency.value = i === 0 ? 880 : 698.46;
|
|
277
|
+
filter.type = "bandpass";
|
|
278
|
+
filter.frequency.value = 1200;
|
|
279
|
+
filter.Q.value = 1;
|
|
280
|
+
const start = t + delay;
|
|
281
|
+
gain.gain.setValueAtTime(0, start);
|
|
282
|
+
gain.gain.linearRampToValueAtTime(0.3, start + 0.01);
|
|
283
|
+
gain.gain.setValueAtTime(0.3, start + 0.08);
|
|
284
|
+
gain.gain.exponentialRampToValueAtTime(1e-3, start + 0.12);
|
|
285
|
+
osc.connect(filter);
|
|
286
|
+
filter.connect(gain);
|
|
287
|
+
gain.connect(ctx.destination);
|
|
288
|
+
osc.start(start);
|
|
289
|
+
osc.stop(start + 0.12);
|
|
290
|
+
});
|
|
291
|
+
} catch (e9) {
|
|
292
|
+
console.error("Error playing warning sound");
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
hover: () => {
|
|
296
|
+
try {
|
|
297
|
+
const ctx = getAudioContext();
|
|
298
|
+
const t = ctx.currentTime;
|
|
299
|
+
const osc = ctx.createOscillator();
|
|
300
|
+
const gain = ctx.createGain();
|
|
301
|
+
osc.type = "sine";
|
|
302
|
+
osc.frequency.setValueAtTime(950, t);
|
|
303
|
+
osc.frequency.linearRampToValueAtTime(700, t + 0.12);
|
|
304
|
+
gain.gain.setValueAtTime(0, t);
|
|
305
|
+
gain.gain.linearRampToValueAtTime(0.08, t + 0.02);
|
|
306
|
+
gain.gain.linearRampToValueAtTime(0.01, t + 0.12);
|
|
307
|
+
osc.connect(gain);
|
|
308
|
+
gain.connect(ctx.destination);
|
|
309
|
+
osc.start(t);
|
|
310
|
+
osc.stop(t + 0.13);
|
|
311
|
+
} catch (e10) {
|
|
312
|
+
console.error("Error playing hover sound");
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
exports.sounds = sounds;
|
package/lib/index.cjs
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkEUL63MJOcjs = require('./chunk-EUL63MJO.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkMPVUIHAGcjs = require('./chunk-MPVUIHAG.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
var _chunkKU2JNLWGcjs = require('./chunk-KU2JNLWG.cjs');
|
|
4
11
|
|
|
5
12
|
|
|
@@ -19,6 +26,9 @@ var _chunk4YOKT62Rcjs = require('./chunk-4YOKT62R.cjs');
|
|
|
19
26
|
var _chunkGQFHHWIVcjs = require('./chunk-GQFHHWIV.cjs');
|
|
20
27
|
|
|
21
28
|
|
|
29
|
+
var _chunkDLFVAWQEcjs = require('./chunk-DLFVAWQE.cjs');
|
|
30
|
+
|
|
31
|
+
|
|
22
32
|
var _chunkLP2WQB3Xcjs = require('./chunk-LP2WQB3X.cjs');
|
|
23
33
|
|
|
24
34
|
|
|
@@ -42,10 +52,6 @@ var _chunkEE6TAHREcjs = require('./chunk-EE6TAHRE.cjs');
|
|
|
42
52
|
var _chunkYBDABMYBcjs = require('./chunk-YBDABMYB.cjs');
|
|
43
53
|
|
|
44
54
|
|
|
45
|
-
|
|
46
|
-
var _chunkMPVUIHAGcjs = require('./chunk-MPVUIHAG.cjs');
|
|
47
|
-
|
|
48
|
-
|
|
49
55
|
var _chunkKEDGCQDCcjs = require('./chunk-KEDGCQDC.cjs');
|
|
50
56
|
|
|
51
57
|
|
|
@@ -64,7 +70,7 @@ var _chunkIOIAYNDBcjs = require('./chunk-IOIAYNDB.cjs');
|
|
|
64
70
|
var _chunkU6NQZGBGcjs = require('./chunk-U6NQZGBG.cjs');
|
|
65
71
|
|
|
66
72
|
|
|
67
|
-
var
|
|
73
|
+
var _chunkGCRDIQOEcjs = require('./chunk-GCRDIQOE.cjs');
|
|
68
74
|
|
|
69
75
|
|
|
70
76
|
var _chunkBMT7LU53cjs = require('./chunk-BMT7LU53.cjs');
|
|
@@ -577,4 +583,6 @@ var _chunkOP4R4DYKcjs = require('./chunk-OP4R4DYK.cjs');
|
|
|
577
583
|
|
|
578
584
|
|
|
579
585
|
|
|
580
|
-
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
exports.Poller = _chunkX4KLPUWQcjs.Poller; exports.Storage = _chunkGQFHHWIVcjs.Storage; exports.ato = _chunkJM2YJOLHcjs.ato; exports.atob = _chunkFHNJXQ7Ccjs.atob; exports.base64ToBlob = _chunkAPR56HNVcjs.base64ToBlob; exports.blobToBase64 = _chunkYIW4PW4Qcjs.blobToBase64; exports.btoa = _chunkFHNJXQ7Ccjs.btoa; exports.cached = _chunkT5HZJXJZcjs.cached; exports.camelCase = _chunkKVFFHAG5cjs.camelCase; exports.canvasToBlob = _chunkXEH7QVTCcjs.canvasToBlob; exports.capitalize = _chunk3PWVY4SHcjs.capitalize; exports.chooseMedia = _chunkOP4R4DYKcjs.chooseMedia; exports.clamp = _chunk7OZ5UUVBcjs.clamp; exports.clone = _chunkCFV6PO5Ecjs.clone; exports.cloneSimple = _chunkWOIBXERDcjs.cloneSimple; exports.colorGenByHash = _chunk5ARDICATcjs.colorGenByHash; exports.compareVersion = _chunkFSSKYWRTcjs.compareVersion; exports.compressImage = _chunkL5KGR7MEcjs.compressImage; exports.crToBr = _chunkZSDKKWIQcjs.crToBr; exports.createFactory = _chunk5NP37CWOcjs.createFactory; exports.createLinearFunction = _chunk3TP6R4WAcjs.createLinearFunction; exports.createTrapInstance = _chunkMPVUIHAGcjs.createTrapInstance; exports.createWithLoading = _chunk74PINGFKcjs.createWithLoading; exports.crlfToBr = _chunkTMCJ3HTAcjs.crlfToBr; exports.debounce = _chunkHFUAXSGVcjs.debounce; exports.downloadFile = _chunkHGSEX5HQcjs.downloadFile; exports.each = _chunkUR2ABWZ4cjs.each; exports.eventBus = _chunkNSZPG5NOcjs.eventBus; exports.exitFullscreen = _chunkLG44HBZ4cjs.exitFullscreen; exports.factory = _chunk4YOKT62Rcjs.factory; exports.filterBankCardNo = _chunkH4CB6RZ5cjs.filterBankCardNo; exports.filterCRLF = _chunkTMCJ3HTAcjs.filterCRLF; exports.filterEmoji = _chunkPRWCT37Dcjs.filterEmoji; exports.filterEmptyValue = _chunk4P4EJVBWcjs.filterEmptyValue; exports.filterIdCard = _chunkIS7BS4UCcjs.filterIdCard; exports.filterName = _chunkPQTXZSTUcjs.filterName; exports.filterPhone = _chunk5KTUK4SScjs.filterPhone; exports.filterString = _chunkXK4UPPRRcjs.filterString; exports.formatAmount = _chunkGPBXHPDAcjs.formatAmount; exports.formatDate = _chunkBQ7SLF6Ccjs.formatDate; exports.formatDateStr = _chunkHJFHIODBcjs.formatDateStr; exports.formatDateToZN = _chunkKT3FWGJGcjs.formatDateToZN; exports.formatFileSize = _chunkEDVQTNLJcjs.formatFileSize; exports.formatGapDate = _chunkZ42N5FUVcjs.formatGapDate; exports.formatMessage = _chunk22FM4HKFcjs.formatMessage; exports.formatPathParams = _chunkE7MIER2Tcjs.formatPathParams; exports.getBlobByUrl = _chunkFJDQPA7Acjs.getBlobByUrl; exports.getCache = _chunk2PEWYRYDcjs.getCache; exports.getDateBoundsByMonths = _chunk44UMWNOZcjs.getDateBoundsByMonths; exports.getDayMillisecond = _chunkEZJIAA6Bcjs.getDayMillisecond; exports.getDaysOfMonth = _chunkEUH2FDMTcjs.getDaysOfMonth; exports.getImageInfo = _chunkPLAR2CBQcjs.getImageInfo; exports.getLocal = _chunk2PEWYRYDcjs.getLocal; exports.getMonthBounds = _chunkSZOUFWPJcjs.getMonthBounds; exports.getRandom = _chunkJFPD5JTYcjs.getRandom; exports.getRandomColor = _chunk3DLBDFKUcjs.getRandomColor; exports.getRandomNumber = _chunkIGD442DScjs.getRandomNumber; exports.getRangeDate = _chunkNEFFCHO5cjs.getRangeDate; exports.getScrollTop = _chunkXSHZO4H7cjs.getScrollTop; exports.getVideoInfo = _chunkHS5BXXAPcjs.getVideoInfo; exports.getWeekBounds = _chunk4WWOJSX3cjs.getWeekBounds; exports.getWeekday = _chunk6TABJ32Lcjs.getWeekday; exports.inBrowser = _chunkMWTRB6PBcjs.inBrowser; exports.insertLink = _chunkYSJISFDDcjs.insertLink; exports.insertScript = _chunkA5V2JWRFcjs.insertScript; exports.insertStyle = _chunkY65BJOJJcjs.insertStyle; exports.isAmount = _chunkFALWMHVNcjs.isAmount; exports.isAndroid = _chunk4AORUEO2cjs.isAndroid; exports.isArray = _chunk5PB5B4HHcjs.isArray; exports.isBoolean = _chunk6NGVHTCIcjs.isBoolean; exports.isChinese = _chunkEWEGXHJQcjs.isChinese; exports.isDate = _chunk2UG6AKMUcjs.isDate; exports.isEmail = _chunkRMH4RB2Dcjs.isEmail; exports.isEmpty = _chunkA2J34A3Kcjs.isEmpty; exports.isEmptyArray = _chunkX3A4TUQLcjs.isEmptyArray; exports.isEmptyObject = _chunk5XVQSGWZcjs.isEmptyObject; exports.isError = _chunkDZOWS2MAcjs.isError; exports.isFunction = _chunkOHDNJMMWcjs.isFunction; exports.isIE = _chunkKXUFBNO6cjs.isIE; exports.isIOS = _chunkGPSJ6TVVcjs.isIOS; exports.isIdCard = _chunkZIZGHVWBcjs.isIdCard; exports.isJSONString = _chunkE2DCMX7Ecjs.isJSONString; exports.isLan = _chunkC2J6KM7Acjs.isLan; exports.isLeapYear = _chunkUTUKZLENcjs.isLeapYear; exports.isLicenseCode = _chunk7PO2RFTNcjs.isLicenseCode; exports.isMobile = _chunk6RAOGPVDcjs.isMobile; exports.isNativeFunction = _chunkUEATWSR2cjs.isNativeFunction; exports.isNull = _chunkHILUSXLZcjs.isNull; exports.isNumber = _chunkOWRVHVPVcjs.isNumber; exports.isObject = _chunkOSEQ7XR6cjs.isObject; exports.isPhone = _chunk25SIHWQPcjs.isPhone; exports.isPromise = _chunkKZ4FXD7Xcjs.isPromise; exports.isRegExp = _chunk6U7TWPFKcjs.isRegExp; exports.isString = _chunkT5JI3MECcjs.isString; exports.isType = _chunkSGXWZSMScjs.isType; exports.isUndefined = _chunkFV6ZXO2Bcjs.isUndefined; exports.isUrl = _chunkI6VB2D7Ccjs.isUrl; exports.isValidDate = _chunkSOBKBDECcjs.isValidDate; exports.isWeChat = _chunkYRGRWQ7Lcjs.isWeChat; exports.isWeChatMiniProgram = _chunkASLPGL5Kcjs.isWeChatMiniProgram; exports.isWeixin = _chunkYRGRWQ7Lcjs.isWeixin; exports.isWindow = _chunkM6IV2L5Ccjs.isWindow; exports.kebabCase = _chunkM23T6OXJcjs.kebabCase; exports.lfToBr = _chunkXSCXPGEIcjs.lfToBr; exports.listGenerator = _chunk2C3XINC3cjs.listGenerator; exports.makePhoneCall = _chunkZZZLASMIcjs.makePhoneCall; exports.mousewheel = _chunkODAKGDKHcjs.mousewheel; exports.nf = _chunkJEUL7IDUcjs.nf; exports.normalizeDate = _chunkHEVW5ZN2cjs.normalizeDate; exports.normalizePath = _chunkZGX4PSUDcjs.normalizePath; exports.numberToLetter = _chunkHAOBASRWcjs.numberToLetter; exports.omit = _chunkSN4K47PZcjs.omit; exports.omitBy = _chunkMAS642WYcjs.omitBy; exports.padding = _chunkGDDKMJAIcjs.padding; exports.parseDate = _chunkJGIFNIG6cjs.parseDate; exports.parseDecimalString = _chunkJ5LO5FYMcjs.parseDecimalString; exports.parseError = _chunkSYJEN3G6cjs.parseError; exports.parseNumberString = _chunkMDWZRDATcjs.parseNumberString; exports.parseObject = _chunkOZ4OLVHRcjs.parseObject; exports.parsePath = _chunkKWKJUVO6cjs.parsePath; exports.parseQuery = _chunkBMT7LU53cjs.parseQuery; exports.parseQueryString = _chunk5R3HPYN2cjs.parseQueryString; exports.pascalCase = _chunkSGFZYTKRcjs.pascalCase; exports.pick = _chunkG4WAYEDTcjs.pick; exports.pickBy = _chunk7YW5G75Scjs.pickBy; exports.replaceCrlf = _chunkE6II5N2Qcjs.replaceCrlf; exports.requestFullScreen = _chunkTDDP3MWOcjs.requestFullScreen; exports.reserve = _chunkKEDGCQDCcjs.reserve; exports.rgbToHex = _chunkJEYNULD2cjs.rgbToHex; exports.round = _chunkH3CSJ2K4cjs.round; exports.roundUpToNearestInteger = _chunkKNITIDZ3cjs.roundUpToNearestInteger; exports.scrollToTop = _chunkIOIAYNDBcjs.scrollToTop; exports.setScrollTop = _chunkU6NQZGBGcjs.setScrollTop; exports.sleep = _chunkYODLJ422cjs.sleep; exports.sounds = _chunkGCRDIQOEcjs.sounds; exports.splitArray = _chunkDLFVAWQEcjs.splitArray; exports.stringTrim = _chunkLP2WQB3Xcjs.stringTrim; exports.stringifyQuery = _chunk4USHGA4Pcjs.stringifyQuery; exports.stringifyQueryString = _chunkHTVUYJEVcjs.stringifyQueryString; exports.throttle = _chunkTVAUIFMFcjs.throttle; exports.throttleLeading = _chunkTVAUIFMFcjs.throttleLeading; exports.throttleTrailing = _chunkTVAUIFMFcjs.throttleTrailing; exports.toCDB = _chunk7CGDZ7SUcjs.toCDB; exports.toDBC = _chunkEE6TAHREcjs.toDBC; exports.toFormData = _chunkYBDABMYBcjs.toFormData; exports.toPosix = _chunkEUL63MJOcjs.toPosix; exports.trap = _chunkMPVUIHAGcjs.trap; exports.typeOf = _chunkKU2JNLWGcjs.typeOf; exports.withCache = _chunk2XXFQQUMcjs.withCache; exports.withPreventConsecutiveClicks = _chunkLTSAC5DKcjs.withPreventConsecutiveClicks;
|
package/lib/index.d.cts
CHANGED
|
@@ -124,6 +124,7 @@ export { roundUpToNearestInteger } from './roundUpToNearestInteger.cjs';
|
|
|
124
124
|
export { scrollToTop } from './scrollToTop.cjs';
|
|
125
125
|
export { setScrollTop } from './setScrollTop.cjs';
|
|
126
126
|
export { sleep } from './sleep.cjs';
|
|
127
|
+
export { sounds } from './sounds.cjs';
|
|
127
128
|
export { splitArray } from './splitArray.cjs';
|
|
128
129
|
export { getCache, getLocal } from './storage/index.cjs';
|
|
129
130
|
export { stringTrim } from './stringTrim.cjs';
|
|
@@ -133,6 +134,7 @@ export { throttle, throttleLeading, throttleTrailing } from './throttle.cjs';
|
|
|
133
134
|
export { toCDB } from './toCDB.cjs';
|
|
134
135
|
export { toDBC } from './toDBC.cjs';
|
|
135
136
|
export { toFormData } from './toFormData.cjs';
|
|
137
|
+
export { toPosix } from './toPosix.cjs';
|
|
136
138
|
export { Trap, createTrapInstance, trap } from './trap.cjs';
|
|
137
139
|
export { typeOf } from './typeOf.cjs';
|
|
138
140
|
export { withCache } from './withCache.cjs';
|
package/lib/sounds.cjs
ADDED
package/lib/sounds.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const sounds: {
|
|
2
|
+
click: () => void;
|
|
3
|
+
pop: () => void;
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
tick: () => void;
|
|
6
|
+
whoosh: () => void;
|
|
7
|
+
success: () => void;
|
|
8
|
+
confirm: () => void;
|
|
9
|
+
error: () => void;
|
|
10
|
+
warning: () => void;
|
|
11
|
+
hover: () => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { sounds };
|
package/lib/toPosix.cjs
ADDED