@fedify/vocab-runtime 2.1.0-dev.565 → 2.1.0-dev.599

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.
Files changed (71) hide show
  1. package/deno.json +4 -3
  2. package/dist/chunk-CUT6urMc.cjs +30 -0
  3. package/dist/jsonld.cjs +8 -0
  4. package/dist/jsonld.d.cts +6 -0
  5. package/dist/jsonld.d.ts +6 -0
  6. package/dist/jsonld.js +7 -0
  7. package/dist/mod.cjs +4485 -4329
  8. package/dist/mod.d.cts +95 -4
  9. package/dist/mod.d.ts +95 -4
  10. package/dist/mod.js +4474 -4299
  11. package/dist/tests/decimal.test.cjs +154 -0
  12. package/dist/tests/decimal.test.d.cts +1 -0
  13. package/dist/tests/decimal.test.d.ts +1 -0
  14. package/dist/tests/decimal.test.js +153 -0
  15. package/dist/tests/docloader-B7jXFZpf.cjs +4562 -0
  16. package/dist/tests/docloader-DMCOWvVB.js +4550 -0
  17. package/dist/tests/docloader.test.cjs +7 -4491
  18. package/dist/tests/docloader.test.js +4 -4488
  19. package/dist/tests/internal/multicodec.test.cjs +77 -0
  20. package/dist/tests/internal/multicodec.test.d.cts +1 -0
  21. package/dist/tests/internal/multicodec.test.d.ts +1 -0
  22. package/dist/tests/internal/multicodec.test.js +76 -0
  23. package/dist/tests/key-ByCmSI2y.js +183 -0
  24. package/dist/tests/key-CCPn6TEY.cjs +231 -0
  25. package/dist/tests/key.test.cjs +36 -212
  26. package/dist/tests/key.test.js +9 -185
  27. package/dist/tests/langstr-BsVE3s9u.js +30 -0
  28. package/dist/tests/langstr-EPh86hXK.cjs +36 -0
  29. package/dist/tests/langstr.test.cjs +5 -33
  30. package/dist/tests/langstr.test.js +1 -29
  31. package/dist/tests/link.test.cjs +1 -1
  32. package/dist/tests/link.test.js +1 -1
  33. package/dist/tests/multibase/multibase.test.cjs +1 -1
  34. package/dist/tests/multibase/multibase.test.js +1 -1
  35. package/dist/tests/multicodec--6hQ74zI.cjs +59 -0
  36. package/dist/tests/multicodec-Dq3IiOV4.js +41 -0
  37. package/dist/tests/{request-3ywvRFy1.js → request-BQtyeAfw.js} +6 -3
  38. package/dist/tests/{request-Dhnqve0g.cjs → request-CW9KOmQu.cjs} +6 -3
  39. package/dist/tests/request.test.cjs +1 -1
  40. package/dist/tests/request.test.js +1 -1
  41. package/dist/tests/url.test.cjs +1 -1
  42. package/dist/tests/url.test.js +1 -1
  43. package/package.json +12 -2
  44. package/src/contexts/activitystreams.json +379 -0
  45. package/src/contexts/did-v1.json +57 -0
  46. package/src/contexts/fep-5711.json +36 -0
  47. package/src/contexts/gotosocial.json +86 -0
  48. package/src/contexts/identity-v1.json +152 -0
  49. package/src/contexts/joinmastodon.json +28 -0
  50. package/src/contexts/schemaorg.json +8845 -0
  51. package/src/contexts/security-data-integrity-v1.json +78 -0
  52. package/src/contexts/security-data-integrity-v2.json +81 -0
  53. package/src/contexts/security-multikey-v1.json +35 -0
  54. package/src/contexts/security-v1.json +74 -0
  55. package/src/contexts/webfinger.json +10 -0
  56. package/src/contexts.ts +33 -4392
  57. package/src/decimal.test.ts +90 -0
  58. package/src/decimal.ts +112 -0
  59. package/src/internal/multicodec.test.ts +68 -0
  60. package/src/internal/multicodec.ts +53 -0
  61. package/src/jsonld.ts +4 -0
  62. package/src/key.test.ts +22 -1
  63. package/src/key.ts +9 -8
  64. package/src/mod.ts +6 -0
  65. package/tsdown.config.ts +1 -1
  66. /package/dist/tests/{link-Ck2yj4dH.js → link-C3q2TC2G.js} +0 -0
  67. /package/dist/tests/{link-CdFPEo9O.cjs → link-DYNFAdNu.cjs} +0 -0
  68. /package/dist/tests/{multibase-DStmqni9.js → multibase-B4g8pz6F.js} +0 -0
  69. /package/dist/tests/{multibase-BFbBiaPE.cjs → multibase-o_ovPHYJ.cjs} +0 -0
  70. /package/dist/tests/{url-fW_DHbih.js → url-CWEP9Zs9.js} +0 -0
  71. /package/dist/tests/{url-C5Vs9nYh.cjs → url-DIjOdK8Q.cjs} +0 -0
package/deno.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@fedify/vocab-runtime",
3
- "version": "2.1.0-dev.565+b4d238a9",
3
+ "version": "2.1.0-dev.599+1ff26884",
4
4
  "license": "MIT",
5
5
  "exports": {
6
- ".": "./src/mod.ts"
6
+ ".": "./src/mod.ts",
7
+ "./jsonld": "./src/jsonld.ts"
7
8
  },
8
9
  "description": "Runtime library for @fedify/vocab",
9
10
  "author": {
@@ -16,7 +17,7 @@
16
17
  "asn1js": "npm:asn1js@^3.0.6",
17
18
  "byte-encodings": "npm:byte-encodings@^1.0.11",
18
19
  "fetch-mock": "npm:fetch-mock@^12.5.4",
19
- "multicodec": "npm:multicodec@^3.2.1",
20
+ "jsonld": "npm:jsonld@^9.0.0",
20
21
  "pkijs": "npm:pkijs@^3.2.5"
21
22
  },
22
23
  "exclude": [
@@ -0,0 +1,30 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+
25
+ Object.defineProperty(exports, '__toESM', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return __toESM;
29
+ }
30
+ });
@@ -0,0 +1,8 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const jsonld_dist_jsonld_esm_js = require_chunk.__toESM(require("jsonld/dist/jsonld.esm.js"));
3
+
4
+ //#region src/jsonld.ts
5
+ var jsonld_default = jsonld_dist_jsonld_esm_js.default;
6
+
7
+ //#endregion
8
+ module.exports = jsonld_default;
@@ -0,0 +1,6 @@
1
+ import * as jsonld0 from "jsonld";
2
+
3
+ //#region src/jsonld.d.ts
4
+ declare const _default: typeof jsonld0;
5
+ //#endregion
6
+ export { _default as default };
@@ -0,0 +1,6 @@
1
+ import * as jsonld0 from "jsonld";
2
+
3
+ //#region src/jsonld.d.ts
4
+ declare const _default: typeof jsonld0;
5
+ //#endregion
6
+ export { _default as default };
package/dist/jsonld.js ADDED
@@ -0,0 +1,7 @@
1
+ import jsonld from "jsonld/dist/jsonld.esm.js";
2
+
3
+ //#region src/jsonld.ts
4
+ var jsonld_default = jsonld;
5
+
6
+ //#endregion
7
+ export { jsonld_default as default };