@yourrentals/cloudevent-receiver-hapi 0.1.4 → 0.4.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/README.md +79 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +412 -0
- package/index.esm.js +404 -0
- package/package.json +10 -4
- package/src/index.d.ts +3 -0
- package/{lib → src/lib}/cloud-event-receiver-plugin.d.ts +1 -1
- package/index.d.ts +0 -3
- package/index.js +0 -16
- package/index.mjs +0 -2908
package/index.esm.js
ADDED
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { isReceiverError } from '@yourrentals/util-receiver-error';
|
|
2
|
+
export * from '@yourrentals/util-receiver-error';
|
|
3
|
+
export * from '@yourrentals/cloudevent-receiver-core';
|
|
4
|
+
|
|
5
|
+
function _regeneratorRuntime() {
|
|
6
|
+
_regeneratorRuntime = function () {
|
|
7
|
+
return e;
|
|
8
|
+
};
|
|
9
|
+
var t,
|
|
10
|
+
e = {},
|
|
11
|
+
r = Object.prototype,
|
|
12
|
+
n = r.hasOwnProperty,
|
|
13
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
14
|
+
t[e] = r.value;
|
|
15
|
+
},
|
|
16
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
17
|
+
a = i.iterator || "@@iterator",
|
|
18
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
19
|
+
u = i.toStringTag || "@@toStringTag";
|
|
20
|
+
function define(t, e, r) {
|
|
21
|
+
return Object.defineProperty(t, e, {
|
|
22
|
+
value: r,
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0,
|
|
25
|
+
writable: !0
|
|
26
|
+
}), t[e];
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
define({}, "");
|
|
30
|
+
} catch (t) {
|
|
31
|
+
define = function (t, e, r) {
|
|
32
|
+
return t[e] = r;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function wrap(t, e, r, n) {
|
|
36
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
37
|
+
a = Object.create(i.prototype),
|
|
38
|
+
c = new Context(n || []);
|
|
39
|
+
return o(a, "_invoke", {
|
|
40
|
+
value: makeInvokeMethod(t, r, c)
|
|
41
|
+
}), a;
|
|
42
|
+
}
|
|
43
|
+
function tryCatch(t, e, r) {
|
|
44
|
+
try {
|
|
45
|
+
return {
|
|
46
|
+
type: "normal",
|
|
47
|
+
arg: t.call(e, r)
|
|
48
|
+
};
|
|
49
|
+
} catch (t) {
|
|
50
|
+
return {
|
|
51
|
+
type: "throw",
|
|
52
|
+
arg: t
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
e.wrap = wrap;
|
|
57
|
+
var h = "suspendedStart",
|
|
58
|
+
l = "suspendedYield",
|
|
59
|
+
f = "executing",
|
|
60
|
+
s = "completed",
|
|
61
|
+
y = {};
|
|
62
|
+
function Generator() {}
|
|
63
|
+
function GeneratorFunction() {}
|
|
64
|
+
function GeneratorFunctionPrototype() {}
|
|
65
|
+
var p = {};
|
|
66
|
+
define(p, a, function () {
|
|
67
|
+
return this;
|
|
68
|
+
});
|
|
69
|
+
var d = Object.getPrototypeOf,
|
|
70
|
+
v = d && d(d(values([])));
|
|
71
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
72
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
73
|
+
function defineIteratorMethods(t) {
|
|
74
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
75
|
+
define(t, e, function (t) {
|
|
76
|
+
return this._invoke(e, t);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function AsyncIterator(t, e) {
|
|
81
|
+
function invoke(r, o, i, a) {
|
|
82
|
+
var c = tryCatch(t[r], t, o);
|
|
83
|
+
if ("throw" !== c.type) {
|
|
84
|
+
var u = c.arg,
|
|
85
|
+
h = u.value;
|
|
86
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
87
|
+
invoke("next", t, i, a);
|
|
88
|
+
}, function (t) {
|
|
89
|
+
invoke("throw", t, i, a);
|
|
90
|
+
}) : e.resolve(h).then(function (t) {
|
|
91
|
+
u.value = t, i(u);
|
|
92
|
+
}, function (t) {
|
|
93
|
+
return invoke("throw", t, i, a);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
a(c.arg);
|
|
97
|
+
}
|
|
98
|
+
var r;
|
|
99
|
+
o(this, "_invoke", {
|
|
100
|
+
value: function (t, n) {
|
|
101
|
+
function callInvokeWithMethodAndArg() {
|
|
102
|
+
return new e(function (e, r) {
|
|
103
|
+
invoke(t, n, e, r);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function makeInvokeMethod(e, r, n) {
|
|
111
|
+
var o = h;
|
|
112
|
+
return function (i, a) {
|
|
113
|
+
if (o === f) throw new Error("Generator is already running");
|
|
114
|
+
if (o === s) {
|
|
115
|
+
if ("throw" === i) throw a;
|
|
116
|
+
return {
|
|
117
|
+
value: t,
|
|
118
|
+
done: !0
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
for (n.method = i, n.arg = a;;) {
|
|
122
|
+
var c = n.delegate;
|
|
123
|
+
if (c) {
|
|
124
|
+
var u = maybeInvokeDelegate(c, n);
|
|
125
|
+
if (u) {
|
|
126
|
+
if (u === y) continue;
|
|
127
|
+
return u;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
131
|
+
if (o === h) throw o = s, n.arg;
|
|
132
|
+
n.dispatchException(n.arg);
|
|
133
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
134
|
+
o = f;
|
|
135
|
+
var p = tryCatch(e, r, n);
|
|
136
|
+
if ("normal" === p.type) {
|
|
137
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
138
|
+
return {
|
|
139
|
+
value: p.arg,
|
|
140
|
+
done: n.done
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function maybeInvokeDelegate(e, r) {
|
|
148
|
+
var n = r.method,
|
|
149
|
+
o = e.iterator[n];
|
|
150
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
151
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
152
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
153
|
+
var a = i.arg;
|
|
154
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
155
|
+
}
|
|
156
|
+
function pushTryEntry(t) {
|
|
157
|
+
var e = {
|
|
158
|
+
tryLoc: t[0]
|
|
159
|
+
};
|
|
160
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
161
|
+
}
|
|
162
|
+
function resetTryEntry(t) {
|
|
163
|
+
var e = t.completion || {};
|
|
164
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
165
|
+
}
|
|
166
|
+
function Context(t) {
|
|
167
|
+
this.tryEntries = [{
|
|
168
|
+
tryLoc: "root"
|
|
169
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
170
|
+
}
|
|
171
|
+
function values(e) {
|
|
172
|
+
if (e || "" === e) {
|
|
173
|
+
var r = e[a];
|
|
174
|
+
if (r) return r.call(e);
|
|
175
|
+
if ("function" == typeof e.next) return e;
|
|
176
|
+
if (!isNaN(e.length)) {
|
|
177
|
+
var o = -1,
|
|
178
|
+
i = function next() {
|
|
179
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
180
|
+
return next.value = t, next.done = !0, next;
|
|
181
|
+
};
|
|
182
|
+
return i.next = i;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
186
|
+
}
|
|
187
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
188
|
+
value: GeneratorFunctionPrototype,
|
|
189
|
+
configurable: !0
|
|
190
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
191
|
+
value: GeneratorFunction,
|
|
192
|
+
configurable: !0
|
|
193
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
194
|
+
var e = "function" == typeof t && t.constructor;
|
|
195
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
196
|
+
}, e.mark = function (t) {
|
|
197
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
198
|
+
}, e.awrap = function (t) {
|
|
199
|
+
return {
|
|
200
|
+
__await: t
|
|
201
|
+
};
|
|
202
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
203
|
+
return this;
|
|
204
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
205
|
+
void 0 === i && (i = Promise);
|
|
206
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
207
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
208
|
+
return t.done ? t.value : a.next();
|
|
209
|
+
});
|
|
210
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
211
|
+
return this;
|
|
212
|
+
}), define(g, "toString", function () {
|
|
213
|
+
return "[object Generator]";
|
|
214
|
+
}), e.keys = function (t) {
|
|
215
|
+
var e = Object(t),
|
|
216
|
+
r = [];
|
|
217
|
+
for (var n in e) r.push(n);
|
|
218
|
+
return r.reverse(), function next() {
|
|
219
|
+
for (; r.length;) {
|
|
220
|
+
var t = r.pop();
|
|
221
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
222
|
+
}
|
|
223
|
+
return next.done = !0, next;
|
|
224
|
+
};
|
|
225
|
+
}, e.values = values, Context.prototype = {
|
|
226
|
+
constructor: Context,
|
|
227
|
+
reset: function (e) {
|
|
228
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
229
|
+
},
|
|
230
|
+
stop: function () {
|
|
231
|
+
this.done = !0;
|
|
232
|
+
var t = this.tryEntries[0].completion;
|
|
233
|
+
if ("throw" === t.type) throw t.arg;
|
|
234
|
+
return this.rval;
|
|
235
|
+
},
|
|
236
|
+
dispatchException: function (e) {
|
|
237
|
+
if (this.done) throw e;
|
|
238
|
+
var r = this;
|
|
239
|
+
function handle(n, o) {
|
|
240
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
241
|
+
}
|
|
242
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
243
|
+
var i = this.tryEntries[o],
|
|
244
|
+
a = i.completion;
|
|
245
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
246
|
+
if (i.tryLoc <= this.prev) {
|
|
247
|
+
var c = n.call(i, "catchLoc"),
|
|
248
|
+
u = n.call(i, "finallyLoc");
|
|
249
|
+
if (c && u) {
|
|
250
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
251
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
252
|
+
} else if (c) {
|
|
253
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
254
|
+
} else {
|
|
255
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
256
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
abrupt: function (t, e) {
|
|
262
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
263
|
+
var o = this.tryEntries[r];
|
|
264
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
265
|
+
var i = o;
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
270
|
+
var a = i ? i.completion : {};
|
|
271
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
272
|
+
},
|
|
273
|
+
complete: function (t, e) {
|
|
274
|
+
if ("throw" === t.type) throw t.arg;
|
|
275
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
276
|
+
},
|
|
277
|
+
finish: function (t) {
|
|
278
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
279
|
+
var r = this.tryEntries[e];
|
|
280
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
catch: function (t) {
|
|
284
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
285
|
+
var r = this.tryEntries[e];
|
|
286
|
+
if (r.tryLoc === t) {
|
|
287
|
+
var n = r.completion;
|
|
288
|
+
if ("throw" === n.type) {
|
|
289
|
+
var o = n.arg;
|
|
290
|
+
resetTryEntry(r);
|
|
291
|
+
}
|
|
292
|
+
return o;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
throw new Error("illegal catch attempt");
|
|
296
|
+
},
|
|
297
|
+
delegateYield: function (e, r, n) {
|
|
298
|
+
return this.delegate = {
|
|
299
|
+
iterator: values(e),
|
|
300
|
+
resultName: r,
|
|
301
|
+
nextLoc: n
|
|
302
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
303
|
+
}
|
|
304
|
+
}, e;
|
|
305
|
+
}
|
|
306
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
307
|
+
try {
|
|
308
|
+
var info = gen[key](arg);
|
|
309
|
+
var value = info.value;
|
|
310
|
+
} catch (error) {
|
|
311
|
+
reject(error);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
if (info.done) {
|
|
315
|
+
resolve(value);
|
|
316
|
+
} else {
|
|
317
|
+
Promise.resolve(value).then(_next, _throw);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function _asyncToGenerator(fn) {
|
|
321
|
+
return function () {
|
|
322
|
+
var self = this,
|
|
323
|
+
args = arguments;
|
|
324
|
+
return new Promise(function (resolve, reject) {
|
|
325
|
+
var gen = fn.apply(self, args);
|
|
326
|
+
function _next(value) {
|
|
327
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
328
|
+
}
|
|
329
|
+
function _throw(err) {
|
|
330
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
331
|
+
}
|
|
332
|
+
_next(undefined);
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
var cloudEventReceiverPlugin = function cloudEventReceiverPlugin(pluginOptions) {
|
|
338
|
+
return {
|
|
339
|
+
name: 'cloud-event-receiver-plugin',
|
|
340
|
+
register: function () {
|
|
341
|
+
var _register = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(server, options) {
|
|
342
|
+
var normalizedPathPrefix;
|
|
343
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
344
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
345
|
+
case 0:
|
|
346
|
+
if (!(!pluginOptions || !pluginOptions.receiver || !pluginOptions.pathPrefix)) {
|
|
347
|
+
_context2.next = 2;
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
throw new Error('Missing required plugin options');
|
|
351
|
+
case 2:
|
|
352
|
+
normalizedPathPrefix = pluginOptions.pathPrefix.startsWith('/') ? pluginOptions.pathPrefix : '/' + pluginOptions.pathPrefix;
|
|
353
|
+
server.route({
|
|
354
|
+
method: 'POST',
|
|
355
|
+
path: "".concat(normalizedPathPrefix, "/{queueName}"),
|
|
356
|
+
handler: function () {
|
|
357
|
+
var _handler = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(request, h) {
|
|
358
|
+
var queueName;
|
|
359
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
360
|
+
while (1) switch (_context.prev = _context.next) {
|
|
361
|
+
case 0:
|
|
362
|
+
_context.prev = 0;
|
|
363
|
+
queueName = request.params.queueName;
|
|
364
|
+
_context.next = 4;
|
|
365
|
+
return pluginOptions.receiver.handle(queueName, request.headers, request.payload);
|
|
366
|
+
case 4:
|
|
367
|
+
return _context.abrupt("return", h.response().code(200));
|
|
368
|
+
case 7:
|
|
369
|
+
_context.prev = 7;
|
|
370
|
+
_context.t0 = _context["catch"](0);
|
|
371
|
+
if (!isReceiverError(_context.t0)) {
|
|
372
|
+
_context.next = 11;
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
return _context.abrupt("return", h.response().code(_context.t0.statusCode).message(_context.t0.message));
|
|
376
|
+
case 11:
|
|
377
|
+
return _context.abrupt("return", h.response().code(500).message('Internal Server Error'));
|
|
378
|
+
case 12:
|
|
379
|
+
case "end":
|
|
380
|
+
return _context.stop();
|
|
381
|
+
}
|
|
382
|
+
}, _callee, null, [[0, 7]]);
|
|
383
|
+
}));
|
|
384
|
+
function handler(_x3, _x4) {
|
|
385
|
+
return _handler.apply(this, arguments);
|
|
386
|
+
}
|
|
387
|
+
return handler;
|
|
388
|
+
}()
|
|
389
|
+
});
|
|
390
|
+
case 4:
|
|
391
|
+
case "end":
|
|
392
|
+
return _context2.stop();
|
|
393
|
+
}
|
|
394
|
+
}, _callee2);
|
|
395
|
+
}));
|
|
396
|
+
function register(_x, _x2) {
|
|
397
|
+
return _register.apply(this, arguments);
|
|
398
|
+
}
|
|
399
|
+
return register;
|
|
400
|
+
}()
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
export { cloudEventReceiverPlugin };
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yourrentals/cloudevent-receiver-hapi",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"dependencies": {
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@yourrentals/cloudevent-receiver-core": "0.4.1",
|
|
6
|
+
"@yourrentals/util-receiver-error": "0.4.1"
|
|
7
|
+
},
|
|
5
8
|
"peerDependencies": {
|
|
6
|
-
"@hapi/hapi": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0"
|
|
7
|
-
}
|
|
9
|
+
"@hapi/hapi": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0"
|
|
10
|
+
},
|
|
11
|
+
"type": "commonjs",
|
|
12
|
+
"main": "./index.cjs.js",
|
|
13
|
+
"module": "./index.esm.js"
|
|
8
14
|
}
|
package/src/index.d.ts
ADDED
package/index.d.ts
DELETED