@amagaki/amagaki 2.2.2 → 3.0.0

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.
@@ -229,7 +229,7 @@ class Document {
229
229
  else {
230
230
  // Otherwise, look up the engine associated with the view by its extension.
231
231
  const templateEngine = this.pod.engines.getEngineByFilename(this.view);
232
- return templateEngine.render(this.view, defaultContext);
232
+ return await templateEngine.render(this.view, defaultContext);
233
233
  }
234
234
  }
235
235
  finally {
@@ -151,52 +151,52 @@ class NunjucksTemplateEngine {
151
151
  podPath: podPath,
152
152
  });
153
153
  }
154
- render(path, context) {
155
- return new Promise((resolve, reject) => {
156
- const timer = this.getTimer(path);
154
+ async render(path, context) {
155
+ const timer = this.getTimer(path);
156
+ // Use a promise for handling the nunjucks render callback.
157
+ const renderPromise = new Promise((resolve, reject) => {
157
158
  this.env.render(path, context, (err, res) => {
158
159
  if (err) {
159
160
  reject(err);
160
161
  return;
161
162
  }
162
- const renderResult = {
163
- path,
164
- content: res,
165
- context
166
- };
167
- timer.stop();
168
- const afterTimer = this.getTimerAfterRender(path);
169
- this.pod.plugins.trigger('afterRender', renderResult).then(() => {
170
- resolve(renderResult.content || '');
171
- afterTimer.stop();
172
- }, (err) => {
173
- reject(err);
174
- });
163
+ resolve(res);
175
164
  });
176
165
  });
177
- }
178
- renderFromString(template, context) {
179
- return new Promise((resolve, reject) => {
180
- const timer = this.getTimer();
166
+ const content = await renderPromise;
167
+ timer.stop();
168
+ const renderResult = {
169
+ path,
170
+ content,
171
+ context
172
+ };
173
+ const afterTimer = this.getTimerAfterRender(path);
174
+ this.pod.plugins.triggerSync('afterRender', renderResult);
175
+ afterTimer.stop();
176
+ return renderResult.content || '';
177
+ }
178
+ async renderFromString(template, context) {
179
+ const timer = this.getTimer();
180
+ // Use a promise for handling the nunjucks render callback.
181
+ const renderPromise = new Promise((resolve, reject) => {
181
182
  this.env.renderString(template, context, (err, res) => {
182
183
  if (err) {
183
184
  reject(err);
184
185
  return;
185
186
  }
186
- const renderResult = {
187
- content: res,
188
- context
189
- };
190
- timer.stop();
191
- const afterTimer = this.getTimerAfterRender();
192
- this.pod.plugins.trigger('afterRender', renderResult).then(() => {
193
- resolve(renderResult.content || '');
194
- afterTimer.stop();
195
- }, (err) => {
196
- reject(err);
197
- });
187
+ resolve(res);
198
188
  });
199
189
  });
190
+ const content = await renderPromise;
191
+ timer.stop();
192
+ const renderResult = {
193
+ content,
194
+ context
195
+ };
196
+ const afterTimer = this.getTimerAfterRender();
197
+ this.pod.plugins.triggerSync('afterRender', renderResult);
198
+ afterTimer.stop();
199
+ return renderResult.content || '';
200
200
  }
201
201
  }
202
202
  exports.NunjucksTemplateEngine = NunjucksTemplateEngine;
@@ -12,12 +12,12 @@ export interface PluginComponent {
12
12
  */
13
13
  afterBuildHook?: (result: BuildResult) => Promise<void>;
14
14
  /**
15
- * Hook for modifying the content after rendering.
15
+ * Hook for synchronously modifying the content after rendering.
16
16
  *
17
17
  * Note: This hook is called from the Template Engine, not all template
18
18
  * engines support this hook.
19
19
  */
20
- afterRenderHook?: (result: TemplateEngineRenderResult) => Promise<void>;
20
+ afterRenderHook?: (result: TemplateEngineRenderResult) => void;
21
21
  /**
22
22
  * Hook for working with the builder before the build is executed.
23
23
  */
@@ -42,24 +42,28 @@ class Plugins {
42
42
  const triggerTimer = this.pod.profiler.timer(`plugins.hook.${hookName}`, `Hook: ${hookName}`, {
43
43
  hook: hookName,
44
44
  });
45
- const triggerPromises = [];
46
45
  const eventMethodName = `${hookName}${Plugins.HookPostfix}`;
47
46
  try {
48
47
  // Start the triggering of the async hooks.
49
- for (const plugin of this.plugins) {
48
+ const triggerPromises = this.plugins.map((plugin) => {
50
49
  if (plugin[eventMethodName]) {
51
50
  const timer = this.pod.profiler.timer(`plugins.hook.${hookName}.${plugin.constructor.name}`, `${plugin.constructor.name} hook: ${hookName}`, {
52
51
  hook: hookName,
53
52
  plugin: plugin.constructor.name,
54
53
  });
55
- const triggerPromise = plugin[eventMethodName](...args);
56
- triggerPromises.push(triggerPromise);
57
- // Stop the timer whenever the promise is complete.
58
- triggerPromise.then(() => {
54
+ // Use a containing async function to stop the timer directly after
55
+ // the plugin is finished and still allow for all promises to resolve
56
+ // before finishing the triggering process.
57
+ const timedTrigger = async function (timer) {
58
+ await plugin[eventMethodName](...args);
59
59
  timer.stop();
60
- });
60
+ };
61
+ return timedTrigger(timer);
61
62
  }
62
- }
63
+ else {
64
+ return Promise.resolve();
65
+ }
66
+ });
63
67
  // Wait for the triggered promises to finish.
64
68
  await Promise.all(triggerPromises);
65
69
  }
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@types/async/index.d.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../node_modules/@types/cli-progress/index.d.ts","../node_modules/@types/js-yaml/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@blinkk/editor.dev-ui/dist/utility/deepWalk.d.ts","../src/environment.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/express/index.d.ts","../src/templateEngine.ts","../src/url.ts","../src/staticFile.ts","../src/string.ts","../src/plugins/yaml.ts","../node_modules/@types/cli-table/index.d.ts","../src/profile.ts","../src/plugins.ts","../node_modules/@types/mime-types/index.d.ts","../src/router.ts","../src/plugins/builder.ts","../../../node_modules/@types/nunjucks/index.d.ts","../node_modules/@types/marked/index.d.ts","../src/plugins/nunjucks.ts","../src/plugins/router.ts","../src/plugins/server.ts","../node_modules/chalk/types/index.d.ts","../src/pod.ts","../src/document.ts","../src/collection.ts","../src/cache.ts","../src/plugins/index.ts","../../../node_modules/anymatch/index.d.ts","../../../node_modules/chokidar/types/index.d.ts","../../../node_modules/@types/compression/index.d.ts","../src/server.ts","../src/index.ts","../src/locale.ts","../src/utils.ts","../../../node_modules/isomorphic-git/index.d.ts","../src/gitData.ts","../src/builder.ts","../src/commands/global.ts","../src/commands/build.ts","../src/commands/export.ts","../src/commands/serve.ts","../../../node_modules/commander/typings/index.d.ts","../src/cli.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"7bf8f476ba12f2302b4152a04eb03de9f4b43acda830768908498444d5008043","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"738be1a50fe998c2ee7af57ac6a551adf8c46ab888bcc0a35e0c6dbef0e302e7","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5eb881ed2a0d5b17ea36df5cd4c4be500e460c412f270c3170e906bec65580ac","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"a40be9f6243a0a32f578ba8db1a31de58cd98d6fd0eedaec416307c8ad53442a","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","09326ae5f7e3d49be5cd9ea00eb814770e71870a438faa2efd8bdd9b4db21320",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"a84d2c9d5d7f5ced40d05a3e0740fa2197fd069671b2db01923ea60af3e89474","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","b76fdd0e1eed5d7879e20634183c79e7c4e9eb7435b6a244663029c0d6bcd24e","73a371996ab8b5f895fc4aff8018ad79804254ae32648c9ac11e87f2fce5658a","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","e42b048dc46ca58a51b1a306cc23aba12fd642635190faa9d0068e35d305bcd9","e138100cd7077fd8965333531c0c3b25f7e3efd4cc9db0957e2ec573c7781776","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"d2f7baf43dfa349d4010cbd9d64d84cdf3ec26c65fa5f44c8f74f052bedd0b49","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","42e283516c325de5703477e4b511701d4fda00026b3a5df1b619e9e844031470","4757f177a4f3ab383135430fc521ba4bea34ff1d13063501e097989662d5f40b","b0b66c7e91fb99069fb413bbfb3b6f7bb4a60661f11b9863f346a838d1195817","95993a863c97a4721c217b7496f255adff7441ba4a8f99b2ac6ed29025710bdf","b1a696c4e00d3a99e187f2712133d984eeeb1638125f516170710f627387c597","9f54de22096034ffa8a6df64b4de7a806b7bc2d150309b76cb4aff3fff227c4d","9fd22ff0194237c63dbdb5324ce22cd8079ed0fe63d2d3f1093d419fa149ab32","673c3d3d5e8ed9ce4f76c18b209eb344bb6026762fcd891428ee466426e72c18","f17dd220e27f33e3f1c5bb6f00999420520a6dd1e7f71ee66c11cfc1c2990f20","55777bc1cfaabca0e20a4278db42675a147319eb0df73ed76438c26eb1837a19","e99d078c9c67fa84a049a08bf172d9f0d636a4a2bfb05910bc46c3239fb57bc9","697f79a2f49816d1e67bc4d12858710e2576f25561baf939c1dfedbdcb0ea1ce","590b59ae5f747834d41caa6ec9e17c4e1c9403d83506ba04eefbf0737150bfd0","d8cac086d23bf34b6deda7c9ed5aa1974af2dc1f8a9df983e7c6fa72c689d212","7c8aa0ffa461a5cab628ac794357a3975f532532ee939e77a23f79383c8cf3ec","854decc394f4d5b5cfc0f65d305cd2da095859c50d282ebc605a274ae8a91ddd","091f417275a51ab3c47b949723e9e8a193012157ecc64a96e2d7b1505e82f395","852b2063639152bfac6fe4c4d0dbf5114248bcffbf6ed5237c6ea4beebcabbc1","b8a66ef0c20333545c184760e487fd09fd4a438f7bda90af04050411d0bc2a2f","1e8c370bb3ab4f9353b89a9527226211fcb6e97db762e196230cd7aa2da97afc","af32082410da21941e499ed03e35ba7c34c8ab871212fcc73811d8316490b846","47e5dc6ce7a67bb72a295d024c4bf7a57ba1a63ad53b613897dc472597a88cc6","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","a7e430e32eaefba6b1ebf23a94a4562bfe7051cc83558d33ddc8ff342f3c18e9",{"version":"717e5f864ab6e755a23b66a7935920d9a73ec7d4728b84ddf85c1d334a9414ae","affectsGlobalScope":true},"263ab40be1ec42471ae3f893563157dffc7f7619add39aa65ae63e10bae99dbe","da48fb95001d64a402a42794328b777b8112bf825eed244c5f1f928a8693fa21","f724907d26cdfafefb7660647caa5afce14628814ba53b743b1ce2b176092012","525216e0baf32d0b57b92f13e0fd208dff1a9a762abcd925328fd6577b80318f","a486262ce60a91eec1b79e3554149d03fbbc16c299bb87db7b57d107012617f2","c9dc01e117e8d4cc1531d56726b49444fedef55bdcbb1154c31a5255b9485a96","f2a8d53ceb013da5081ae76836bbe9ab71633bd95a4594d4bb60767b8a304c1e","c3b3a8aca914ea3c7e6645aaced0e847db8df3e18eff6a624f57ca8db8784a13","44c5eafdc09f6784548c340051a17f64cae38dbc618c45cb334ff3e873f81bf0","c51503b58bfadeedb0525900075b398a5a29788941272b186ef60c6952a132bd","91e882bea2eec82a28fe05a07e7627f5af436e26b1d6210da266e8a0a24dc86e","7717e1ba82d36aee8d76cb53e218b2ffc78d2177c089775244ddde9118b88c83","6ff4b4c3e1cca82f92bb5f43e42602ff2fff46d4d3ccbfb67035a074eacea437"],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","rootDir":"..","skipLibCheck":true,"target":7},"fileIdsList":[[86],[59,86,93,105],[86,107],[59,86,93],[56,59,86,93,100,101],[86,101,102,104,106],[56,57,86,93,96],[40,86],[43,86],[44,49,77,86],[45,56,57,64,74,85,86],[45,46,56,64,86],[47,86],[48,49,57,65,86],[49,74,82,86],[50,52,56,64,86],[51,86],[52,53,86],[56,86],[54,56,86],[56,57,58,74,85,86],[56,57,58,71,74,77,86],[86,90],[52,59,64,74,85,86],[56,57,59,60,64,74,82,85,86],[59,61,74,82,85,86],[40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],[56,62,86],[63,85,86],[52,56,64,74,86],[65,86],[66,86],[43,67,86],[68,84,86,90],[69,86],[70,86],[56,71,72,86],[71,73,86,88],[44,56,74,75,76,77,86],[44,74,76,86],[74,75,86],[77,86],[78,86],[56,80,81,86],[80,81,86],[49,64,74,82,86],[83,86],[64,84,86],[44,59,70,85,86],[49,86],[74,86,87],[86,88],[86,89],[44,49,56,58,67,74,85,86,88,90],[74,86,91],[59,86,93,103],[56,57,86,93,130],[56,86,93],[39,49,57,66,74,86,94,96,111,117,124,125,136,138],[86,95,110,111,117,125,126,127,135],[86,141,142,143,144],[57,66,86,97,125,126,135],[86,114,140],[86,139,140],[57,86,134],[86,124,133,140],[66,86,96,97,98,99,107,109,117,125,127,135,136],[57,66,86,137],[86,99,108,109,110,111,114,115,117,125,126,127,128,129,133,135,136,139],[86,111,125,126,134],[86,107,108,112,114,125,139],[86,115,125,139],[86,112,118,121,122,123],[86,108,109,115,119,120,125,126,135,136],[86,115,125],[86,107,115,125],[86,95,99,110,111,115,125,126,127,135,136],[57,66,86,95,99,108,110,111,112,114,115,117,118,121,122,123,124,126,127,128,134,135,136,139],[67,86,113],[66,86,107,109,110,116,125,126,135,136],[56,59,66,86,107,117,119,124,125,131,132,136],[49,86,109,125],[86,125,135],[86,125],[66,86,99,126,136],[57,66,86,125,135]],"referencedMap":[[98,1],[106,2],[132,3],[105,4],[102,5],[107,6],[97,7],[103,1],[96,1],[40,8],[41,8],[43,9],[44,10],[45,11],[46,12],[47,13],[48,14],[49,15],[50,16],[51,17],[52,18],[53,18],[55,19],[54,20],[56,19],[57,21],[58,22],[42,23],[92,1],[59,24],[60,25],[61,26],[93,27],[62,28],[63,29],[64,30],[65,31],[66,32],[67,33],[68,34],[69,35],[70,36],[71,37],[72,37],[73,38],[74,39],[76,40],[75,41],[77,42],[78,43],[79,1],[80,44],[81,45],[82,46],[83,47],[84,48],[85,49],[86,50],[87,51],[88,52],[89,53],[90,54],[91,55],[119,1],[101,1],[100,1],[104,56],[130,1],[131,57],[144,1],[137,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[7,1],[37,1],[33,1],[34,1],[35,1],[36,1],[1,1],[38,1],[39,1],[94,58],[113,1],[95,1],[120,1],[116,1],[124,1],[139,59],[128,60],[145,61],[127,62],[141,63],[142,64],[140,65],[143,66],[126,67],[99,1],[138,68],[134,69],[135,70],[115,71],[118,72],[129,73],[121,74],[122,75],[123,76],[112,77],[125,78],[114,79],[117,80],[133,81],[110,82],[111,83],[108,84],[109,85],[136,86]],"exportedModulesMap":[[98,1],[106,2],[132,3],[105,4],[102,5],[107,6],[97,7],[103,1],[96,1],[40,8],[41,8],[43,9],[44,10],[45,11],[46,12],[47,13],[48,14],[49,15],[50,16],[51,17],[52,18],[53,18],[55,19],[54,20],[56,19],[57,21],[58,22],[42,23],[92,1],[59,24],[60,25],[61,26],[93,27],[62,28],[63,29],[64,30],[65,31],[66,32],[67,33],[68,34],[69,35],[70,36],[71,37],[72,37],[73,38],[74,39],[76,40],[75,41],[77,42],[78,43],[79,1],[80,44],[81,45],[82,46],[83,47],[84,48],[85,49],[86,50],[87,51],[88,52],[89,53],[90,54],[91,55],[119,1],[101,1],[100,1],[104,56],[130,1],[131,57],[144,1],[137,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[7,1],[37,1],[33,1],[34,1],[35,1],[36,1],[1,1],[38,1],[39,1],[94,58],[113,1],[95,1],[120,1],[116,1],[124,1],[139,59],[128,60],[145,61],[127,62],[141,63],[142,64],[140,65],[143,66],[126,67],[99,1],[138,68],[134,69],[135,70],[115,71],[118,72],[129,73],[121,74],[122,75],[123,76],[112,77],[125,78],[114,79],[117,80],[133,81],[110,82],[111,83],[108,84],[109,85],[136,86]],"semanticDiagnosticsPerFile":[98,106,132,105,102,107,97,103,96,40,41,43,44,45,46,47,48,49,50,51,52,53,55,54,56,57,58,42,92,59,60,61,93,62,63,64,65,66,67,68,69,70,71,72,73,74,76,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,119,101,100,104,130,131,144,137,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,37,33,34,35,36,1,38,39,94,113,95,120,116,124,139,128,145,127,141,142,140,143,126,99,138,134,135,115,118,129,121,122,123,112,125,114,117,133,110,111,108,109,136]},"version":"4.5.5"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amagaki/amagaki",
3
- "version": "2.2.2",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://amagaki.dev",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "@types/js-yaml": "^4.0.1",
58
58
  "@types/marked": "^2.0.2",
59
59
  "@types/mime-types": "^2.1.0",
60
- "@types/node": "^15.0.1",
60
+ "@types/node": "^18.11.18",
61
61
  "@types/nunjucks": "^3.1.4",
62
62
  "@types/semver": "^7.3.5",
63
63
  "ava": "^4.0.1",