@glodon-aiot/dataset-annotation 3.3.2 → 3.3.3

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.
@@ -1,33 +1,34 @@
1
- var g = (e, t, n) => new Promise((s, r) => {
1
+ var u = (t, e, n) => new Promise((r, s) => {
2
2
  var c = (i) => {
3
3
  try {
4
- h(n.next(i));
5
- } catch (o) {
6
- r(o);
4
+ o(n.next(i));
5
+ } catch (h) {
6
+ s(h);
7
7
  }
8
- }, u = (i) => {
8
+ }, g = (i) => {
9
9
  try {
10
- h(n.throw(i));
11
- } catch (o) {
12
- r(o);
10
+ o(n.throw(i));
11
+ } catch (h) {
12
+ s(h);
13
13
  }
14
- }, h = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(c, u);
15
- h((n = n.apply(e, t)).next());
14
+ }, o = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(c, g);
15
+ o((n = n.apply(t, e)).next());
16
16
  });
17
- import { Sha256 as m } from "@aws-crypto/sha256-js";
18
- const f = (e) => Buffer.from(e).toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_"), $ = (e) => Buffer.from(e, "hex"), x = (e, t, n) => {
19
- const s = new m($(t));
20
- return s.update($(n)), s.update(e), s.digest();
21
- }, w = (e, t, n) => new Promise((s, r) => {
22
- x(e, t, n).then((c) => {
23
- s(f(c));
24
- }, r);
25
- }), b = (e, t) => g(void 0, null, function* () {
26
- const n = t.prefix, s = e.substring(e.lastIndexOf(".") + 1), r = t != null && t.width ? `/rs:fit:${t.width}:0/${f(e)}.${s}` : `/${f(e)}.${s}`, c = yield w(r, t.key, t.salt);
27
- return `${n}/${c}${r}`;
17
+ import { Sha256 as x } from "@aws-crypto/sha256-js";
18
+ import { Buffer as $ } from "buffer";
19
+ const f = (t) => $.from(t).toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_"), m = (t) => $.from(t, "hex"), w = (t, e, n) => {
20
+ const r = new x(m(e));
21
+ return r.update(m(n)), r.update(t), r.digest();
22
+ }, a = (t, e, n) => new Promise((r, s) => {
23
+ w(t, e, n).then((c) => {
24
+ r(f(c));
25
+ }, s);
26
+ }), p = (t, e) => u(void 0, null, function* () {
27
+ const n = e.prefix, r = t.substring(t.lastIndexOf(".") + 1), s = e != null && e.width ? `/rs:fit:${e.width}:0/${f(t)}.${r}` : `/${f(t)}.${r}`, c = yield a(s, e.key, e.salt);
28
+ return `${n}/${c}${s}`;
28
29
  });
29
30
  export {
30
- b as getThumbnailtUrl,
31
- x as hash,
32
- w as sign
31
+ p as getThumbnailtUrl,
32
+ w as hash,
33
+ a as sign
33
34
  };