@jpmorganchase/mosaic-plugins 0.1.0-beta.6 → 0.1.0-beta.8
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/CHANGELOG.md +35 -0
- package/dist/$AliasPlugin.js +229 -64
- package/dist/$AliasPlugin.js.map +1 -1
- package/dist/$CodeModPlugin.js +118 -36
- package/dist/$CodeModPlugin.js.map +1 -1
- package/dist/$RefPlugin.js +449 -122
- package/dist/$RefPlugin.js.map +1 -1
- package/dist/$TagPlugin.js +236 -77
- package/dist/$TagPlugin.js.map +1 -1
- package/dist/BreadcrumbsPlugin.js +114 -42
- package/dist/BreadcrumbsPlugin.js.map +1 -1
- package/dist/LazyPagePlugin.js +255 -86
- package/dist/LazyPagePlugin.js.map +1 -1
- package/dist/LocalFolderSavePlugin.js +165 -0
- package/dist/LocalFolderSavePlugin.js.map +1 -0
- package/dist/NextPrevPagePlugin.js +157 -47
- package/dist/NextPrevPagePlugin.js.map +1 -1
- package/dist/PagesWithoutFileExtPlugin.js +119 -38
- package/dist/PagesWithoutFileExtPlugin.js.map +1 -1
- package/dist/ReadingTimePlugin.mjs.map +1 -1
- package/dist/SearchIndexPlugin.mjs +268 -0
- package/dist/SearchIndexPlugin.mjs.map +1 -0
- package/dist/SharedConfigPlugin.js +174 -43
- package/dist/SharedConfigPlugin.js.map +1 -1
- package/dist/SidebarPlugin.js +319 -87
- package/dist/SidebarPlugin.js.map +1 -1
- package/dist/SiteMapPlugin.js +90 -38
- package/dist/SiteMapPlugin.js.map +1 -1
- package/dist/TableOfContentsPlugin.mjs +49 -58
- package/dist/TableOfContentsPlugin.mjs.map +1 -1
- package/dist/__tests__/BreadcrumbsPlugin.test.js +160 -0
- package/dist/__tests__/BreadcrumbsPlugin.test.js.map +1 -0
- package/dist/utils/normaliseRefs.js +276 -74
- package/dist/utils/normaliseRefs.js.map +1 -1
- package/package.json +16 -5
|
@@ -1,83 +1,285 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
function _arrayLikeToArray(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
function _arrayWithHoles(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return arr;
|
|
8
|
+
}
|
|
9
|
+
function _arrayWithoutHoles(arr) {
|
|
10
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
11
|
+
}
|
|
12
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
|
+
try {
|
|
14
|
+
var info = gen[key](arg);
|
|
15
|
+
var value = info.value;
|
|
16
|
+
} catch (error) {
|
|
17
|
+
reject(error);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (info.done) {
|
|
21
|
+
resolve(value);
|
|
22
|
+
} else {
|
|
23
|
+
Promise.resolve(value).then(_next, _throw);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function _asyncToGenerator(fn) {
|
|
27
|
+
return function() {
|
|
28
|
+
var self = this, args = arguments;
|
|
29
|
+
return new Promise(function(resolve, reject) {
|
|
30
|
+
var gen = fn.apply(self, args);
|
|
31
|
+
function _next(value) {
|
|
32
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33
|
+
}
|
|
34
|
+
function _throw(err) {
|
|
35
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
36
|
+
}
|
|
37
|
+
_next(undefined);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function _iterableToArray(iter) {
|
|
42
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
43
|
+
}
|
|
44
|
+
function _iterableToArrayLimit(arr, i) {
|
|
45
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
46
|
+
if (_i == null) return;
|
|
47
|
+
var _arr = [];
|
|
48
|
+
var _n = true;
|
|
49
|
+
var _d = false;
|
|
50
|
+
var _s, _e;
|
|
51
|
+
try {
|
|
52
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
53
|
+
_arr.push(_s.value);
|
|
54
|
+
if (i && _arr.length === i) break;
|
|
55
|
+
}
|
|
56
|
+
} catch (err) {
|
|
57
|
+
_d = true;
|
|
58
|
+
_e = err;
|
|
59
|
+
} finally{
|
|
60
|
+
try {
|
|
61
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
62
|
+
} finally{
|
|
63
|
+
if (_d) throw _e;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return _arr;
|
|
67
|
+
}
|
|
68
|
+
function _nonIterableRest() {
|
|
69
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
70
|
+
}
|
|
71
|
+
function _nonIterableSpread() {
|
|
72
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
73
|
+
}
|
|
74
|
+
function _slicedToArray(arr, i) {
|
|
75
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
76
|
+
}
|
|
77
|
+
function _toConsumableArray(arr) {
|
|
78
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
79
|
+
}
|
|
80
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
81
|
+
if (!o) return;
|
|
82
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
83
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
84
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
85
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
86
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
87
|
+
}
|
|
88
|
+
import regeneratorRuntime from "regenerator-runtime";
|
|
89
|
+
import path from "path";
|
|
90
|
+
import glob from "fast-glob";
|
|
91
|
+
import set from "lodash/set";
|
|
18
92
|
function createFileGlob(url, pageExtensions) {
|
|
19
93
|
if (pageExtensions.length === 1) {
|
|
20
|
-
return
|
|
94
|
+
return "".concat(url).concat(pageExtensions[0]);
|
|
21
95
|
}
|
|
22
|
-
return
|
|
96
|
+
return "".concat(url, "{").concat(pageExtensions.join(","), "}");
|
|
23
97
|
}
|
|
24
|
-
function normaliseRefs(filepath, refs, filesystem, pageExtensions, ignorePages) {
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
98
|
+
export default function normaliseRefs(filepath, refs, filesystem, pageExtensions, ignorePages) {
|
|
99
|
+
return _normaliseRefs.apply(this, arguments);
|
|
100
|
+
};
|
|
101
|
+
function _normaliseRefs() {
|
|
102
|
+
_normaliseRefs = _asyncToGenerator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(filepath, refs, filesystem, pageExtensions, ignorePages) {
|
|
103
|
+
var configWithoutGlobs, i, ref, ref1, url, tmp, fragment, fullUrl, refRealPath, stat, globResolvedRefs, resolvedRefs, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, value, refRealPath1;
|
|
104
|
+
return regeneratorRuntime.wrap(function _callee$(_ctx) {
|
|
105
|
+
while(1)switch(_ctx.prev = _ctx.next){
|
|
106
|
+
case 0:
|
|
107
|
+
configWithoutGlobs = {};
|
|
108
|
+
i = 0;
|
|
109
|
+
case 2:
|
|
110
|
+
if (!(i < refs.length)) {
|
|
111
|
+
_ctx.next = 79;
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
ref = refs[i];
|
|
115
|
+
ref1 = _slicedToArray(ref.$$value.split("#"), 2), url = ref1[0], tmp = ref1[1], fragment = tmp === void 0 ? "" : tmp;
|
|
116
|
+
if (url) {
|
|
117
|
+
_ctx.next = 7;
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
return _ctx.abrupt("continue", 76);
|
|
121
|
+
case 7:
|
|
122
|
+
fullUrl = path.resolve(path.dirname(filepath), url);
|
|
123
|
+
if (glob.isDynamicPattern(url)) {
|
|
124
|
+
_ctx.next = 34;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
_ctx.next = 11;
|
|
128
|
+
return filesystem.promises.exists(fullUrl);
|
|
129
|
+
case 11:
|
|
130
|
+
if (_ctx.sent) {
|
|
131
|
+
_ctx.next = 13;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
throw new Error("A `$ref` for '".concat(filepath, "' pointed to page '").concat(fullUrl, "' - which could not be found."));
|
|
135
|
+
case 13:
|
|
136
|
+
_ctx.next = 15;
|
|
137
|
+
return filesystem.promises.realpath(fullUrl);
|
|
138
|
+
case 15:
|
|
139
|
+
refRealPath = _ctx.sent;
|
|
140
|
+
_ctx.next = 18;
|
|
141
|
+
return filesystem.promises.stat(refRealPath);
|
|
142
|
+
case 18:
|
|
143
|
+
stat = _ctx.sent;
|
|
144
|
+
if (!stat.isDirectory()) {
|
|
145
|
+
_ctx.next = 32;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
_ctx.t0 = // && !/\/index(\.\w{1,4})?$/.test(url)) {
|
|
149
|
+
set;
|
|
150
|
+
_ctx.t1 = configWithoutGlobs;
|
|
151
|
+
_ctx.t2 = ref.$$path.slice(0, -1);
|
|
152
|
+
_ctx.t3 = "";
|
|
153
|
+
_ctx.next = 26;
|
|
154
|
+
return filesystem.promises.realpath(path.join(refRealPath, "index"));
|
|
155
|
+
case 26:
|
|
156
|
+
_ctx.t4 = _ctx.sent;
|
|
157
|
+
_ctx.t5 = _ctx.t3.concat.call(_ctx.t3, _ctx.t4, "#").concat(fragment);
|
|
158
|
+
_ctx.t6 = {
|
|
159
|
+
$ref: _ctx.t5
|
|
160
|
+
};
|
|
161
|
+
(0, _ctx.t0)(_ctx.t1, _ctx.t2, _ctx.t6);
|
|
162
|
+
_ctx.next = 33;
|
|
163
|
+
break;
|
|
164
|
+
case 32:
|
|
165
|
+
{
|
|
166
|
+
set(configWithoutGlobs, ref.$$path.slice(0, -1), {
|
|
167
|
+
$ref: "".concat(refRealPath, "#").concat(fragment)
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
case 33:
|
|
171
|
+
return _ctx.abrupt("continue", 76);
|
|
172
|
+
case 34:
|
|
173
|
+
_ctx.prev = 34;
|
|
174
|
+
_ctx.next = 37;
|
|
175
|
+
return filesystem.promises.glob(!/\/[^/]+\.\w{2,4}$/.test(url) ? createFileGlob(url, pageExtensions) : url, {
|
|
176
|
+
ignore: [
|
|
177
|
+
filepath
|
|
178
|
+
].concat(_toConsumableArray(ignorePages.map(function(ignore) {
|
|
179
|
+
return "**/".concat(ignore);
|
|
180
|
+
}))),
|
|
181
|
+
cwd: path.dirname(filepath),
|
|
182
|
+
absolute: true
|
|
53
183
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
65
|
-
// Use a set so we de-dupe any symlinks that point to the same page
|
|
66
|
-
const resolvedRefs = new Set();
|
|
67
|
-
for (const value of globResolvedRefs) {
|
|
68
|
-
const refRealPath = yield filesystem.promises.realpath(path_1.default.resolve(filepath, value));
|
|
69
|
-
if (refRealPath !== (yield filesystem.promises.realpath(filepath))) {
|
|
70
|
-
resolvedRefs.add(`${refRealPath}#${fragment}`);
|
|
184
|
+
case 37:
|
|
185
|
+
globResolvedRefs = _ctx.sent;
|
|
186
|
+
resolvedRefs = new Set();
|
|
187
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
188
|
+
_ctx.prev = 40;
|
|
189
|
+
_iterator = globResolvedRefs[Symbol.iterator]();
|
|
190
|
+
case 42:
|
|
191
|
+
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
|
|
192
|
+
_ctx.next = 56;
|
|
193
|
+
break;
|
|
71
194
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
195
|
+
value = _step.value;
|
|
196
|
+
_ctx.next = 46;
|
|
197
|
+
return filesystem.promises.realpath(path.resolve(filepath, value));
|
|
198
|
+
case 46:
|
|
199
|
+
refRealPath1 = _ctx.sent;
|
|
200
|
+
_ctx.t7 = refRealPath1;
|
|
201
|
+
_ctx.next = 50;
|
|
202
|
+
return filesystem.promises.realpath(filepath);
|
|
203
|
+
case 50:
|
|
204
|
+
_ctx.t8 = _ctx.sent;
|
|
205
|
+
if (!(_ctx.t7 !== _ctx.t8)) {
|
|
206
|
+
_ctx.next = 53;
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
{
|
|
210
|
+
resolvedRefs.add("".concat(refRealPath1, "#").concat(fragment));
|
|
211
|
+
}
|
|
212
|
+
case 53:
|
|
213
|
+
_iteratorNormalCompletion = true;
|
|
214
|
+
_ctx.next = 42;
|
|
215
|
+
break;
|
|
216
|
+
case 56:
|
|
217
|
+
_ctx.next = 62;
|
|
218
|
+
break;
|
|
219
|
+
case 58:
|
|
220
|
+
_ctx.prev = 58;
|
|
221
|
+
_ctx.t9 = _ctx["catch"](40);
|
|
222
|
+
_didIteratorError = true;
|
|
223
|
+
_iteratorError = _ctx.t9;
|
|
224
|
+
case 62:
|
|
225
|
+
_ctx.prev = 62;
|
|
226
|
+
_ctx.prev = 63;
|
|
227
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
228
|
+
_iterator.return();
|
|
229
|
+
}
|
|
230
|
+
case 65:
|
|
231
|
+
_ctx.prev = 65;
|
|
232
|
+
if (!_didIteratorError) {
|
|
233
|
+
_ctx.next = 68;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
throw _iteratorError;
|
|
237
|
+
case 68:
|
|
238
|
+
return _ctx.finish(65);
|
|
239
|
+
case 69:
|
|
240
|
+
return _ctx.finish(62);
|
|
241
|
+
case 70:
|
|
242
|
+
set(configWithoutGlobs, ref.$$path.slice(0, -1), Array.from(resolvedRefs).map(function($ref) {
|
|
243
|
+
return {
|
|
244
|
+
$ref: $ref
|
|
245
|
+
};
|
|
246
|
+
}));
|
|
247
|
+
_ctx.next = 76;
|
|
248
|
+
break;
|
|
249
|
+
case 73:
|
|
250
|
+
_ctx.prev = 73;
|
|
251
|
+
_ctx.t10 = _ctx["catch"](34);
|
|
252
|
+
throw _ctx.t10;
|
|
253
|
+
case 76:
|
|
254
|
+
i++;
|
|
255
|
+
_ctx.next = 2;
|
|
256
|
+
break;
|
|
257
|
+
case 79:
|
|
258
|
+
return _ctx.abrupt("return", configWithoutGlobs);
|
|
259
|
+
case 80:
|
|
260
|
+
case "end":
|
|
261
|
+
return _ctx.stop();
|
|
77
262
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
263
|
+
}, _callee, null, [
|
|
264
|
+
[
|
|
265
|
+
34,
|
|
266
|
+
73
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
40,
|
|
270
|
+
58,
|
|
271
|
+
62,
|
|
272
|
+
70
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
63,
|
|
276
|
+
,
|
|
277
|
+
65,
|
|
278
|
+
69
|
|
279
|
+
]
|
|
280
|
+
]);
|
|
281
|
+
}));
|
|
282
|
+
return _normaliseRefs.apply(this, arguments);
|
|
81
283
|
}
|
|
82
|
-
|
|
284
|
+
|
|
83
285
|
//# sourceMappingURL=normaliseRefs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/utils/normaliseRefs.ts"],"sourcesContent":["import path from 'path';\n\nimport glob from 'fast-glob';\nimport set from 'lodash/set';\n\nfunction createFileGlob(url, pageExtensions) {\n if (pageExtensions.length === 1) {\n return `${url}${pageExtensions[0]}`;\n }\n return `${url}{${pageExtensions.join(',')}}`;\n}\n\nexport default async function normaliseRefs(\n filepath,\n refs,\n filesystem,\n pageExtensions,\n ignorePages\n) {\n const configWithoutGlobs = {};\n\n for (let i = 0; i < refs.length; i++) {\n const ref = refs[i];\n const [url, fragment = ''] = ref.$$value.split('#');\n\n if (!url) {\n continue;\n }\n\n const fullUrl = path.resolve(path.dirname(filepath), url);\n\n if (!glob.isDynamicPattern(url)) {\n if (!(await filesystem.promises.exists(fullUrl))) {\n throw new Error(\n `A \\`$ref\\` for '${filepath}' pointed to page '${fullUrl}' - which could not be found.`\n );\n }\n const refRealPath = await filesystem.promises.realpath(\n fullUrl\n //path.resolve(path.dirname(filepath), url)\n );\n const stat = await filesystem.promises.stat(refRealPath);\n // Turn directory refs into full index paths\n // TODO: But DO we want to do this?\n if (stat.isDirectory()) {\n // && !/\\/index(\\.\\w{1,4})?$/.test(url)) {\n set(configWithoutGlobs, ref.$$path.slice(0, -1), {\n $ref: `${await filesystem.promises.realpath(path.join(refRealPath, 'index'))}#${fragment}`\n });\n } else {\n set(configWithoutGlobs, ref.$$path.slice(0, -1), {\n $ref: `${refRealPath}#${fragment}`\n });\n }\n continue;\n }\n\n try {\n let globResolvedRefs =\n // If the pattern doesn't have an explicit file extension - then we'll make it just return pages\n await filesystem.promises.glob(\n !/\\/[^/]+\\.\\w{2,4}$/.test(url) ? createFileGlob(url, pageExtensions) : url,\n {\n ignore: [filepath, ...ignorePages.map(ignore => `**/${ignore}`)],\n cwd: path.dirname(filepath),\n absolute: true\n }\n );\n\n // Use a set so we de-dupe any symlinks that point to the same page\n const resolvedRefs = new Set();\n\n for (const value of globResolvedRefs) {\n const refRealPath = await filesystem.promises.realpath(path.resolve(filepath, value));\n if (refRealPath !== (await filesystem.promises.realpath(filepath))) {\n resolvedRefs.add(`${refRealPath}#${fragment}`);\n }\n }\n\n set(\n configWithoutGlobs,\n ref.$$path.slice(0, -1),\n Array.from(resolvedRefs).map($ref => ({ $ref }))\n );\n } catch (e) {\n throw e;\n }\n }\n\n return configWithoutGlobs;\n}\n"],"names":["path","glob","set","createFileGlob","url","pageExtensions","length","join","normaliseRefs","filepath","refs","filesystem","ignorePages","configWithoutGlobs","i","ref","fragment","fullUrl","refRealPath","stat","globResolvedRefs","resolvedRefs","value","$$value","split","resolve","dirname","isDynamicPattern","promises","exists","Error","realpath","isDirectory","$$path","slice","$ref","test","ignore","map","cwd","absolute","Set","add","Array","from"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,IAAI,MAAM,MAAM,CAAC;AAExB,OAAOC,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAOC,GAAG,MAAM,YAAY,CAAC;AAE7B,SAASC,cAAc,CAACC,GAAG,EAAEC,cAAc,EAAE;IAC3C,IAAIA,cAAc,CAACC,MAAM,KAA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AX,cAAW;;;;;;oBAOhBd,GAAG,CACDW,kBAAkB,EAClBE,GAAG,CAACkB,MAAM,CAACC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EACvBS,KAAK,CAACC,IAAI,CAACvB,YAAY,CAAC,CAACiB,GAAG,CAACH,SAAAA,IAAI;+BAAK;4BAAEA,IAAI,EAAJA,IAAI;yBAAE;qBAAC,CAAC,CACjD,CAAC;;;;;;oBAEF,eAAQ;;oBAhEqBrB,CAAC,EAAE,CAAA;;;;iDAoE7BD,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;KAC1B,EAAA;WA9E6BL,cAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-plugins",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.8",
|
|
4
4
|
"author": "",
|
|
5
5
|
"description": "Mosaic plugins for core file system",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "yarn clean && tsc && swc
|
|
15
|
+
"build": "yarn clean && tsc && swc src -d dist && renamer --find \".mjs.js\" --replace \".mjs\" \"dist/*.mjs.js\" && renamer --find \".mjs.js.map\" --replace \".mjs.map\" \"dist/*.mjs.js.map\"",
|
|
16
16
|
"clean": "rm -fr dist"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
@@ -22,17 +22,28 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@swc/cli": "^0.1.55",
|
|
24
24
|
"@swc/core": "^1.2.237",
|
|
25
|
+
"@types/fs-extra": "^9.0.13",
|
|
25
26
|
"renamer": "^4.0.0"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
29
|
-
"@jpmorganchase/mosaic-
|
|
30
|
+
"@jpmorganchase/mosaic-serialisers": "^0.1.0-beta.8",
|
|
31
|
+
"@jpmorganchase/mosaic-source-git-repo": "^0.1.0-beta.8",
|
|
32
|
+
"@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.8",
|
|
33
|
+
"@jpmorganchase/mosaic-types": "^0.1.0-beta.8",
|
|
30
34
|
"@types/github-slugger": "^1.3.0",
|
|
35
|
+
"@vcarl/remark-headings": "^0.1.0",
|
|
36
|
+
"fs-extra": "^10.1.0",
|
|
31
37
|
"github-slugger": "^1.4.0",
|
|
32
|
-
"hast-util-to-string": "^2.0.0",
|
|
33
38
|
"lodash": "^4.17.21",
|
|
34
39
|
"memfs": "^3.3.0",
|
|
35
40
|
"reading-time": "^1.5.0",
|
|
36
|
-
"
|
|
41
|
+
"remark-mdx": "^2.1.5",
|
|
42
|
+
"remark-parse": "^10.0.1",
|
|
43
|
+
"remark-stringify": "^10.0.2",
|
|
44
|
+
"rxjs": "^7.5.5",
|
|
45
|
+
"unified": "^10.1.2",
|
|
46
|
+
"unist-util-visit": "^4.1.1",
|
|
47
|
+
"uuid": "^7.0.3"
|
|
37
48
|
}
|
|
38
49
|
}
|