@manuscripts/transform 1.1.4 → 1.1.5-vite-support
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.
|
@@ -25,12 +25,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.loadIssnBundleIndex = exports.loadBundlesMap = void 0;
|
|
27
27
|
const loadBundlesMap = async () => {
|
|
28
|
-
const { default: bundles } = await Promise.resolve().then(() => __importStar(require('
|
|
28
|
+
const { default: bundles } = await Promise.resolve().then(() => __importStar(require('../../node_modules/@manuscripts/data/dist/shared/bundles.json')));
|
|
29
29
|
return new Map(bundles.map((bundle) => [bundle._id, bundle]));
|
|
30
30
|
};
|
|
31
31
|
exports.loadBundlesMap = loadBundlesMap;
|
|
32
32
|
const loadIssnBundleIndex = async () => {
|
|
33
|
-
const { default: issnBundleIndex } = await Promise.resolve().then(() => __importStar(require('
|
|
33
|
+
const { default: issnBundleIndex } = await Promise.resolve().then(() => __importStar(require('../../node_modules/@manuscripts/data/dist/shared/issn-bundle-index.json')));
|
|
34
34
|
return issnBundleIndex;
|
|
35
35
|
};
|
|
36
36
|
exports.loadIssnBundleIndex = loadIssnBundleIndex;
|
|
@@ -26,6 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.loadSharedData = void 0;
|
|
27
27
|
const loadSharedData = (file) => {
|
|
28
28
|
var _a;
|
|
29
|
-
return (_a =
|
|
29
|
+
return (_a = `../../node_modules/@manuscripts/data/dist/shared/${file}.json`, Promise.resolve().then(() => __importStar(require(_a)))).then((module) => module.default);
|
|
30
30
|
};
|
|
31
31
|
exports.loadSharedData = loadSharedData;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const loadBundlesMap = async () => {
|
|
2
|
-
const { default: bundles } = await import('
|
|
2
|
+
const { default: bundles } = await import('../../node_modules/@manuscripts/data/dist/shared/bundles.json');
|
|
3
3
|
return new Map(bundles.map((bundle) => [bundle._id, bundle]));
|
|
4
4
|
};
|
|
5
5
|
export const loadIssnBundleIndex = async () => {
|
|
6
|
-
const { default: issnBundleIndex } = await import('
|
|
6
|
+
const { default: issnBundleIndex } = await import('../../node_modules/@manuscripts/data/dist/shared/issn-bundle-index.json');
|
|
7
7
|
return issnBundleIndex;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const loadSharedData = (file) => import(
|
|
1
|
+
export const loadSharedData = (file) => import(`../../node_modules/@manuscripts/data/dist/shared/${file}.json`).then((module) => module.default);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/transform",
|
|
3
3
|
"description": "ProseMirror transformer for Manuscripts applications",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.5-vite-support",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|