workclock 0.0.0-stage → 0.1.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.
@@ -0,0 +1,553 @@
1
+ /**
2
+ * Working time defined by rules, evaluated in IANA time zones.
3
+ *
4
+ * Instants are `Date`s or ISO 8601 strings with a UTC offset, and durations
5
+ * are numbers of milliseconds. Results are exact to the millisecond.
6
+ */
7
+ export class Schedule {
8
+ __destroy_into_raw() {
9
+ const ptr = this.__wbg_ptr;
10
+ this.__wbg_ptr = 0;
11
+ ScheduleFinalization.unregister(this);
12
+ return ptr;
13
+ }
14
+ free() {
15
+ const ptr = this.__destroy_into_raw();
16
+ wasm.__wbg_schedule_free(ptr, 0);
17
+ }
18
+ /**
19
+ * Returns `add` for each instant in `t`.
20
+ *
21
+ * @throws {RangeError} If `t` and `ms` differ in length.
22
+ * @throws What `add` throws, with the failing item's index in the
23
+ * message.
24
+ * @param {any} t
25
+ * @param {any} ms
26
+ * @returns {any}
27
+ */
28
+ addMany(t, ms) {
29
+ const ret = wasm.schedule_addMany(this.__wbg_ptr, t, ms);
30
+ if (ret[2]) {
31
+ throw takeFromExternrefTable0(ret[1]);
32
+ }
33
+ return takeFromExternrefTable0(ret[0]);
34
+ }
35
+ /**
36
+ * Finds the instant a given amount of working time after another.
37
+ *
38
+ * @param t The instant to count from.
39
+ * @param ms Working time in milliseconds; a negative amount counts back.
40
+ * @returns The earliest instant with `ms` of working time after `t`, or
41
+ * `t` itself when `ms` is zero.
42
+ * @throws {NoWorkingTimeError} If no working time is found within 366
43
+ * days, plus seven days per holiday date.
44
+ * @throws {OutOfRangeError} If `t` or the result is outside the supported
45
+ * range.
46
+ * @throws {TypeError} If `t` is neither a `Date` nor a string, or `ms` is
47
+ * not a number.
48
+ * @throws {RangeError} If `t` is malformed, or `ms` is not a whole number
49
+ * within ±`Number.MAX_SAFE_INTEGER`.
50
+ * @example
51
+ * ```js
52
+ * const due = support.add("2026-12-24T16:30:00Z", 8 * 3_600_000);
53
+ * due.toISOString(); // "2026-12-30T09:30:00.000Z"
54
+ * ```
55
+ * @param {Instant} t
56
+ * @param {number} ms
57
+ * @returns {Date}
58
+ */
59
+ add(t, ms) {
60
+ const ret = wasm.schedule_add(this.__wbg_ptr, t, ms);
61
+ if (ret[2]) {
62
+ throw takeFromExternrefTable0(ret[1]);
63
+ }
64
+ return takeFromExternrefTable0(ret[0]);
65
+ }
66
+ /**
67
+ * Returns `between` for each pair of `a` and `b`.
68
+ *
69
+ * @throws {RangeError} If `a` and `b` differ in length.
70
+ * @throws What `between` throws, with the failing item's index in the
71
+ * message.
72
+ * @param {any} a
73
+ * @param {any} b
74
+ * @returns {any}
75
+ */
76
+ betweenMany(a, b) {
77
+ const ret = wasm.schedule_betweenMany(this.__wbg_ptr, a, b);
78
+ if (ret[2]) {
79
+ throw takeFromExternrefTable0(ret[1]);
80
+ }
81
+ return takeFromExternrefTable0(ret[0]);
82
+ }
83
+ /**
84
+ * Measures the working time between two instants.
85
+ *
86
+ * @param a The start.
87
+ * @param b The end.
88
+ * @returns The working time in milliseconds; negative when `b` is before
89
+ * `a`.
90
+ * @throws {OutOfRangeError} If an instant is outside the supported range.
91
+ * @throws {TypeError} If an instant is neither a `Date` nor a string.
92
+ * @throws {RangeError} If an instant is an invalid `Date` or a string
93
+ * without a UTC offset.
94
+ * @example
95
+ * ```js
96
+ * support.between("2026-01-05T09:00:00Z", "2026-01-06T09:00:00Z"); // 25200000, 7 hours
97
+ * ```
98
+ * @param {Instant} a
99
+ * @param {Instant} b
100
+ * @returns {number}
101
+ */
102
+ between(a, b) {
103
+ const ret = wasm.schedule_between(this.__wbg_ptr, a, b);
104
+ if (ret[2]) {
105
+ throw takeFromExternrefTable0(ret[1]);
106
+ }
107
+ return ret[0];
108
+ }
109
+ /**
110
+ * Builds a schedule from its rules.
111
+ *
112
+ * @param options The default time zone and the rules.
113
+ * @throws {UnknownZoneError} If a time zone is not in the IANA database.
114
+ * @throws {NoWorkingTimeError} If the working hours minus the breaks are
115
+ * empty.
116
+ * @throws {TypeError} If `options` or a rule has the wrong shape; the
117
+ * message names the rule, such as `rules[1]`.
118
+ * @throws {RangeError} If a time, day or date cannot be read.
119
+ * @example
120
+ * ```js
121
+ * const support = new Schedule({
122
+ * timeZone: "Europe/London",
123
+ * rules: [
124
+ * { type: "workday", start: "09:00", end: "17:00" },
125
+ * { type: "break", start: "12:00", end: "13:00" },
126
+ * { type: "holidays", dates: ["2026-12-25", "2026-12-28"] },
127
+ * ],
128
+ * });
129
+ * ```
130
+ * @param {ScheduleOptions} options
131
+ */
132
+ constructor(options) {
133
+ const ret = wasm.schedule_new(options);
134
+ if (ret[2]) {
135
+ throw takeFromExternrefTable0(ret[1]);
136
+ }
137
+ this.__wbg_ptr = ret[0];
138
+ ScheduleFinalization.register(this, this.__wbg_ptr, this);
139
+ return this;
140
+ }
141
+ /**
142
+ * Finds the period of working time at or after an instant.
143
+ *
144
+ * @param t The instant to search from.
145
+ * @returns The period that contains `t`, starting at `t`, or else the
146
+ * first one after it.
147
+ * @throws {NoWorkingTimeError} If no working time is found within 366
148
+ * days, plus seven days per holiday date.
149
+ * @throws {OutOfRangeError} If `t` is outside the supported range, or the
150
+ * search reaches its end.
151
+ * @throws {TypeError} If `t` is neither a `Date` nor a string.
152
+ * @throws {RangeError} If `t` is malformed.
153
+ * @param {Instant} t
154
+ * @returns {Period}
155
+ */
156
+ nextPeriod(t) {
157
+ const ret = wasm.schedule_nextPeriod(this.__wbg_ptr, t);
158
+ if (ret[2]) {
159
+ throw takeFromExternrefTable0(ret[1]);
160
+ }
161
+ return takeFromExternrefTable0(ret[0]);
162
+ }
163
+ /**
164
+ * Finds the period of working time at or before an instant.
165
+ *
166
+ * @param t The instant to search back from.
167
+ * @returns The period that contains `t`, ending at `t`, or else the last
168
+ * one before it.
169
+ * @throws {NoWorkingTimeError} If no working time is found within 366
170
+ * days, plus seven days per holiday date.
171
+ * @throws {OutOfRangeError} If `t` is outside the supported range, or the
172
+ * search reaches its start.
173
+ * @throws {TypeError} If `t` is neither a `Date` nor a string.
174
+ * @throws {RangeError} If `t` is malformed.
175
+ * @param {Instant} t
176
+ * @returns {Period}
177
+ */
178
+ previousPeriod(t) {
179
+ const ret = wasm.schedule_previousPeriod(this.__wbg_ptr, t);
180
+ if (ret[2]) {
181
+ throw takeFromExternrefTable0(ret[1]);
182
+ }
183
+ return takeFromExternrefTable0(ret[0]);
184
+ }
185
+ /**
186
+ * Returns `sub` for each instant in `t`.
187
+ *
188
+ * @throws {RangeError} If `t` and `ms` differ in length.
189
+ * @throws What `sub` throws, with the failing item's index in the
190
+ * message.
191
+ * @param {any} t
192
+ * @param {any} ms
193
+ * @returns {any}
194
+ */
195
+ subMany(t, ms) {
196
+ const ret = wasm.schedule_subMany(this.__wbg_ptr, t, ms);
197
+ if (ret[2]) {
198
+ throw takeFromExternrefTable0(ret[1]);
199
+ }
200
+ return takeFromExternrefTable0(ret[0]);
201
+ }
202
+ /**
203
+ * Finds the instant a given amount of working time before another.
204
+ *
205
+ * @param t The instant to count back from.
206
+ * @param ms Working time in milliseconds; a negative amount counts
207
+ * forward.
208
+ * @returns The latest instant with `ms` of working time before `t`, or
209
+ * `t` itself when `ms` is zero.
210
+ * @throws {NoWorkingTimeError} If no working time is found within 366
211
+ * days, plus seven days per holiday date.
212
+ * @throws {OutOfRangeError} If `t` or the result is outside the supported
213
+ * range.
214
+ * @throws {TypeError} If `t` is neither a `Date` nor a string, or `ms` is
215
+ * not a number.
216
+ * @throws {RangeError} If `t` is malformed, or `ms` is not a whole number
217
+ * within ±`Number.MAX_SAFE_INTEGER`.
218
+ * @param {Instant} t
219
+ * @param {number} ms
220
+ * @returns {Date}
221
+ */
222
+ sub(t, ms) {
223
+ const ret = wasm.schedule_sub(this.__wbg_ptr, t, ms);
224
+ if (ret[2]) {
225
+ throw takeFromExternrefTable0(ret[1]);
226
+ }
227
+ return takeFromExternrefTable0(ret[0]);
228
+ }
229
+ }
230
+ if (Symbol.dispose) Schedule.prototype[Symbol.dispose] = Schedule.prototype.free;
231
+
232
+ /**
233
+ * Returns the version of workclock this module was built from, such as
234
+ * `"0.1.0"`.
235
+ * @returns {string}
236
+ */
237
+ export function version() {
238
+ let deferred1_0;
239
+ let deferred1_1;
240
+ try {
241
+ const ret = wasm.version();
242
+ deferred1_0 = ret[0];
243
+ deferred1_1 = ret[1];
244
+ return getStringFromWasm0(ret[0], ret[1]);
245
+ } finally {
246
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
247
+ }
248
+ }
249
+ export function __wbg___wbindgen_is_bigint_b123553bed3bb382(arg0) {
250
+ const ret = typeof(arg0) === 'bigint';
251
+ return ret;
252
+ }
253
+ export function __wbg___wbindgen_is_object_3c45d4f2dde4e749(arg0) {
254
+ const val = arg0;
255
+ const ret = typeof(val) === 'object' && val !== null;
256
+ return ret;
257
+ }
258
+ export function __wbg___wbindgen_is_undefined_8865fb403f8fe9d8(arg0) {
259
+ const ret = arg0 === undefined;
260
+ return ret;
261
+ }
262
+ export function __wbg___wbindgen_number_get_2e0e7dee9f701a71(arg0, arg1) {
263
+ const obj = arg1;
264
+ const ret = typeof(obj) === 'number' ? obj : undefined;
265
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
266
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
267
+ }
268
+ export function __wbg___wbindgen_string_get_0380ccaa2f57f0d9(arg0, arg1) {
269
+ const obj = arg1;
270
+ const ret = typeof(obj) === 'string' ? obj : undefined;
271
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
272
+ var len1 = WASM_VECTOR_LEN;
273
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
274
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
275
+ }
276
+ export function __wbg___wbindgen_throw_41e9ee4f547fc59a(arg0, arg1) {
277
+ throw new Error(getStringFromWasm0(arg0, arg1));
278
+ }
279
+ export function __wbg___wbindgen_typeof_e777a26e115d416b(arg0) {
280
+ const ret = typeof arg0;
281
+ return ret;
282
+ }
283
+ export function __wbg_from_296ca31f8d0f1c52(arg0) {
284
+ const ret = Array.from(arg0);
285
+ return ret;
286
+ }
287
+ export function __wbg_getTime_f5a55efff2585d5d(arg0) {
288
+ const ret = arg0.getTime();
289
+ return ret;
290
+ }
291
+ export function __wbg_get_31af05bd4842a84f() { return handleError(function (arg0, arg1) {
292
+ const ret = Reflect.get(arg0, arg1);
293
+ return ret;
294
+ }, arguments); }
295
+ export function __wbg_get_unchecked_288889d017702237(arg0, arg1) {
296
+ const ret = arg0[arg1 >>> 0];
297
+ return ret;
298
+ }
299
+ export function __wbg_instanceof_Date_31bc0134230c39be(arg0) {
300
+ let result;
301
+ try {
302
+ result = arg0 instanceof Date;
303
+ } catch (_) {
304
+ result = false;
305
+ }
306
+ const ret = result;
307
+ return ret;
308
+ }
309
+ export function __wbg_instanceof_Error_80a725f81f2e102d(arg0) {
310
+ let result;
311
+ try {
312
+ result = arg0 instanceof Error;
313
+ } catch (_) {
314
+ result = false;
315
+ }
316
+ const ret = result;
317
+ return ret;
318
+ }
319
+ export function __wbg_instanceof_Float64Array_8a59377f9eec1b8b(arg0) {
320
+ let result;
321
+ try {
322
+ result = arg0 instanceof Float64Array;
323
+ } catch (_) {
324
+ result = false;
325
+ }
326
+ const ret = result;
327
+ return ret;
328
+ }
329
+ export function __wbg_isArray_e15a2ff68ffdbef2(arg0) {
330
+ const ret = Array.isArray(arg0);
331
+ return ret;
332
+ }
333
+ export function __wbg_length_b5f0008bbf60cf59(arg0) {
334
+ const ret = arg0.length;
335
+ return ret;
336
+ }
337
+ export function __wbg_length_d4bdea10311bd9cf(arg0) {
338
+ const ret = arg0.length;
339
+ return ret;
340
+ }
341
+ export function __wbg_message_5f8387f0c32b90a7(arg0) {
342
+ const ret = arg0.message;
343
+ return ret;
344
+ }
345
+ export function __wbg_new_2bdcdfcebdfc34d2(arg0, arg1) {
346
+ const ret = new TypeError(getStringFromWasm0(arg0, arg1));
347
+ return ret;
348
+ }
349
+ export function __wbg_new_343a093a3c2ffb4e(arg0, arg1) {
350
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
351
+ return ret;
352
+ }
353
+ export function __wbg_new_34e56228080aa9f8(arg0) {
354
+ const ret = new Date(arg0);
355
+ return ret;
356
+ }
357
+ export function __wbg_new_617a8cdb8bb1130e() {
358
+ const ret = new Object();
359
+ return ret;
360
+ }
361
+ export function __wbg_new_6ab88fbe741af6b5(arg0, arg1) {
362
+ const ret = new RangeError(getStringFromWasm0(arg0, arg1));
363
+ return ret;
364
+ }
365
+ export function __wbg_new_ee2291f50781bf1d() {
366
+ const ret = new Array();
367
+ return ret;
368
+ }
369
+ export function __wbg_new_from_slice_f545fd22ddc142b8(arg0, arg1) {
370
+ const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
371
+ return ret;
372
+ }
373
+ export function __wbg_prototypesetcall_d49a4fab5ca427bc(arg0, arg1, arg2) {
374
+ Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
375
+ }
376
+ export function __wbg_push_2baf45db356cf468(arg0, arg1) {
377
+ const ret = arg0.push(arg1);
378
+ return ret;
379
+ }
380
+ export function __wbg_set_145a351398b48c65() { return handleError(function (arg0, arg1, arg2) {
381
+ const ret = Reflect.set(arg0, arg1, arg2);
382
+ return ret;
383
+ }, arguments); }
384
+ export function __wbg_set_message_db0b496321654368(arg0, arg1, arg2) {
385
+ arg0.message = getStringFromWasm0(arg1, arg2);
386
+ }
387
+ export function __wbg_set_name_2c630595dc90a7aa(arg0, arg1, arg2) {
388
+ arg0.name = getStringFromWasm0(arg1, arg2);
389
+ }
390
+ export function __wbg_stringify_52ff602c1cc4fbb6() { return handleError(function (arg0) {
391
+ const ret = JSON.stringify(arg0);
392
+ return ret;
393
+ }, arguments); }
394
+ export function __wbg_toISOString_3217c36cf55f719b(arg0) {
395
+ const ret = arg0.toISOString();
396
+ return ret;
397
+ }
398
+ export function __wbg_toString_3e46331018353800() { return handleError(function (arg0, arg1) {
399
+ const ret = arg0.toString(arg1);
400
+ return ret;
401
+ }, arguments); }
402
+ export function __wbindgen_generic_0000000000000001(arg0) {
403
+ // Cast intrinsic for `F64 -> Externref`.
404
+ const ret = arg0;
405
+ return ret;
406
+ }
407
+ export function __wbindgen_generic_0000000000000002(arg0, arg1) {
408
+ // Cast intrinsic for `Ref(String) -> Externref`.
409
+ const ret = getStringFromWasm0(arg0, arg1);
410
+ return ret;
411
+ }
412
+ export function __wbindgen_init_externref_table() {
413
+ const table = wasm.__wbindgen_externrefs;
414
+ const offset = table.grow(4);
415
+ table.set(0, undefined);
416
+ table.set(offset + 0, undefined);
417
+ table.set(offset + 1, null);
418
+ table.set(offset + 2, true);
419
+ table.set(offset + 3, false);
420
+ }
421
+ const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
422
+ ? { register: () => {}, unregister: () => {} }
423
+ : new FinalizationRegistry(ptr => wasm.__wbg_schedule_free(ptr, 1));
424
+
425
+ function addToExternrefTable0(obj) {
426
+ const idx = wasm.__externref_table_alloc();
427
+ wasm.__wbindgen_externrefs.set(idx, obj);
428
+ return idx;
429
+ }
430
+
431
+ function getArrayF64FromWasm0(ptr, len) {
432
+ ptr = ptr >>> 0;
433
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
434
+ }
435
+
436
+ let cachedDataViewMemory0 = null;
437
+ function getDataViewMemory0() {
438
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
439
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
440
+ }
441
+ return cachedDataViewMemory0;
442
+ }
443
+
444
+ let cachedFloat64ArrayMemory0 = null;
445
+ function getFloat64ArrayMemory0() {
446
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
447
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
448
+ }
449
+ return cachedFloat64ArrayMemory0;
450
+ }
451
+
452
+ function getStringFromWasm0(ptr, len) {
453
+ return decodeText(ptr >>> 0, len);
454
+ }
455
+
456
+ let cachedUint8ArrayMemory0 = null;
457
+ function getUint8ArrayMemory0() {
458
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
459
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
460
+ }
461
+ return cachedUint8ArrayMemory0;
462
+ }
463
+
464
+ function handleError(f, args) {
465
+ try {
466
+ return f.apply(this, args);
467
+ } catch (e) {
468
+ const idx = addToExternrefTable0(e);
469
+ wasm.__wbindgen_exn_store(idx);
470
+ }
471
+ }
472
+
473
+ function isLikeNone(x) {
474
+ return x === undefined || x === null;
475
+ }
476
+
477
+ function passStringToWasm0(arg, malloc, realloc) {
478
+ if (realloc === undefined) {
479
+ const buf = cachedTextEncoder.encode(arg);
480
+ const ptr = malloc(buf.length, 1) >>> 0;
481
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
482
+ WASM_VECTOR_LEN = buf.length;
483
+ return ptr;
484
+ }
485
+
486
+ let len = arg.length;
487
+ let ptr = malloc(len, 1) >>> 0;
488
+
489
+ const mem = getUint8ArrayMemory0();
490
+
491
+ let offset = 0;
492
+
493
+ for (; offset < len; offset++) {
494
+ const code = arg.charCodeAt(offset);
495
+ if (code > 0x7F) break;
496
+ mem[ptr + offset] = code;
497
+ }
498
+ if (offset !== len) {
499
+ if (offset !== 0) {
500
+ arg = arg.slice(offset);
501
+ }
502
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
503
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
504
+ const ret = cachedTextEncoder.encodeInto(arg, view);
505
+
506
+ offset += ret.written;
507
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
508
+ }
509
+
510
+ WASM_VECTOR_LEN = offset;
511
+ return ptr;
512
+ }
513
+
514
+ function takeFromExternrefTable0(idx) {
515
+ const value = wasm.__wbindgen_externrefs.get(idx);
516
+ wasm.__externref_table_dealloc(idx);
517
+ return value;
518
+ }
519
+
520
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
521
+ cachedTextDecoder.decode();
522
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
523
+ let numBytesDecoded = 0;
524
+ function decodeText(ptr, len) {
525
+ numBytesDecoded += len;
526
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
527
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
528
+ cachedTextDecoder.decode();
529
+ numBytesDecoded = len;
530
+ }
531
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
532
+ }
533
+
534
+ const cachedTextEncoder = new TextEncoder();
535
+
536
+ if (!('encodeInto' in cachedTextEncoder)) {
537
+ cachedTextEncoder.encodeInto = function (arg, view) {
538
+ const buf = cachedTextEncoder.encode(arg);
539
+ view.set(buf);
540
+ return {
541
+ read: arg.length,
542
+ written: buf.length
543
+ };
544
+ };
545
+ }
546
+
547
+ let WASM_VECTOR_LEN = 0;
548
+
549
+
550
+ let wasm;
551
+ export function __wbg_set_wasm(val) {
552
+ wasm = val;
553
+ }
Binary file
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_schedule_free: (a: number, b: number) => void;
5
+ export const schedule_add: (a: number, b: any, c: any) => [number, number, number];
6
+ export const schedule_addMany: (a: number, b: any, c: any) => [number, number, number];
7
+ export const schedule_between: (a: number, b: any, c: any) => [number, number, number];
8
+ export const schedule_betweenMany: (a: number, b: any, c: any) => [number, number, number];
9
+ export const schedule_new: (a: any) => [number, number, number];
10
+ export const schedule_nextPeriod: (a: number, b: any) => [number, number, number];
11
+ export const schedule_previousPeriod: (a: number, b: any) => [number, number, number];
12
+ export const schedule_sub: (a: number, b: any, c: any) => [number, number, number];
13
+ export const schedule_subMany: (a: number, b: any, c: any) => [number, number, number];
14
+ export const version: () => [number, number];
15
+ export const __wbindgen_malloc: (a: number, b: number) => number;
16
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
17
+ export const __wbindgen_exn_store: (a: number) => void;
18
+ export const __externref_table_alloc: () => number;
19
+ export const __wbindgen_externrefs: WebAssembly.Table;
20
+ export const __externref_table_dealloc: (a: number) => void;
21
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
22
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "workclock-wasm",
3
+ "version": "0.1.1",
4
+ "license": "MIT",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/Karthik-beta/workclock"
8
+ },
9
+ "files": [
10
+ "workclock_bg.wasm",
11
+ "workclock.js",
12
+ "workclock.d.ts"
13
+ ],
14
+ "main": "workclock.js",
15
+ "types": "workclock.d.ts"
16
+ }