@holo-js/media 0.1.7 → 0.1.9
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/dist/index.mjs +7 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -192,8 +192,13 @@ function createDefaultMediaConversionExecutor() {
|
|
|
192
192
|
var defaultMediaConversionExecutor = createDefaultMediaConversionExecutor();
|
|
193
193
|
|
|
194
194
|
// src/registry.ts
|
|
195
|
-
var
|
|
196
|
-
var
|
|
195
|
+
var mediaRegistrySymbol = /* @__PURE__ */ Symbol.for("@holo-js/media.registry");
|
|
196
|
+
var mediaRegistryState = globalThis[mediaRegistrySymbol] ??= {
|
|
197
|
+
definitions: /* @__PURE__ */ new WeakMap(),
|
|
198
|
+
morphClasses: /* @__PURE__ */ new Map()
|
|
199
|
+
};
|
|
200
|
+
var mediaDefinitionRegistry = mediaRegistryState.definitions;
|
|
201
|
+
var mediaDefinitionMorphClassRegistry = mediaRegistryState.morphClasses;
|
|
197
202
|
function sanitizePathSegment(value) {
|
|
198
203
|
return value.trim().replace(/\\/g, "/").split("/").filter(Boolean).join("-");
|
|
199
204
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/media",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Holo-JS Framework - media collections and conversions for Holo-JS models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"test": "vitest --run"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@holo-js/db": "^0.1.
|
|
26
|
-
"@holo-js/queue": "^0.1.
|
|
27
|
-
"@holo-js/storage": "^0.1.
|
|
25
|
+
"@holo-js/db": "^0.1.9",
|
|
26
|
+
"@holo-js/queue": "^0.1.9",
|
|
27
|
+
"@holo-js/storage": "^0.1.9",
|
|
28
28
|
"sharp": "^0.34.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|