@forsakringskassan/docs-generator 2.15.4 → 2.15.5

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.
@@ -3,10 +3,10 @@
3
3
  var path$1 = require('node:path');
4
4
  var esbuild = require('esbuild');
5
5
  var vue = require('vue');
6
- var vue3 = require('./vue3-Cp7zCQ3F.js');
6
+ var vue3 = require('./vue3-Dgc-sSad.js');
7
7
  var path = require('node:path/posix');
8
8
  require('@vue/compiler-sfc');
9
- require('./vendor-CH9TWbb8.js');
9
+ require('./vendor-Bxk8vVJ2.js');
10
10
  require('node:url');
11
11
  require('fs');
12
12
  require('node:fs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var vendor = require('./vendor-CH9TWbb8.js');
3
+ var vendor = require('./vendor-Bxk8vVJ2.js');
4
4
  var path = require('node:path/posix');
5
5
  var path$1 = require('node:path');
6
6
  require('crypto');
@@ -8,7 +8,7 @@ var crypto = require('node:crypto');
8
8
  require('node:child_process');
9
9
  var fs = require('node:fs');
10
10
  var vue = require('vue');
11
- var vue3 = require('./vue3-Cp7zCQ3F.js');
11
+ var vue3 = require('./vue3-Dgc-sSad.js');
12
12
 
13
13
  function findDocument(haystack, needle) {
14
14
  const match = haystack.find((it) => {
package/dist/index.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  var fs = require('node:fs/promises');
4
4
  var path = require('node:path/posix');
5
- var vendor = require('./vendor-CH9TWbb8.js');
5
+ var vendor = require('./vendor-Bxk8vVJ2.js');
6
6
  var path$1 = require('node:path');
7
7
  var require$$1 = require('crypto');
8
8
  require('node:crypto');
9
- var createMarkdownRenderer = require('./create-markdown-renderer-BZa4tA3t.js');
9
+ var createMarkdownRenderer = require('./create-markdown-renderer-BeXKdFXE.js');
10
10
  var node_child_process = require('node:child_process');
11
11
  var util = require('node:util');
12
12
  var vueDocgenApi = require('vue-docgen-api');
@@ -43,7 +43,7 @@ require('tls');
43
43
  require('tty');
44
44
  require('querystring');
45
45
  require('vue');
46
- require('./vue3-Cp7zCQ3F.js');
46
+ require('./vue3-Dgc-sSad.js');
47
47
 
48
48
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
49
49
  function toArray$2(value) {
package/dist/markdown.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var createMarkdownRenderer = require('./create-markdown-renderer-BZa4tA3t.js');
4
- require('./vendor-CH9TWbb8.js');
3
+ var createMarkdownRenderer = require('./create-markdown-renderer-BeXKdFXE.js');
4
+ require('./vendor-Bxk8vVJ2.js');
5
5
  require('node:url');
6
6
  require('node:path');
7
7
  require('fs');
@@ -37,7 +37,7 @@ require('querystring');
37
37
  require('node:path/posix');
38
38
  require('node:crypto');
39
39
  require('vue');
40
- require('./vue3-Cp7zCQ3F.js');
40
+ require('./vue3-Dgc-sSad.js');
41
41
 
42
42
 
43
43
 
@@ -21648,6 +21648,7 @@ function requireFs () {
21648
21648
  'chown',
21649
21649
  'close',
21650
21650
  'copyFile',
21651
+ 'cp',
21651
21652
  'fchmod',
21652
21653
  'fchown',
21653
21654
  'fdatasync',
@@ -21655,8 +21656,10 @@ function requireFs () {
21655
21656
  'fsync',
21656
21657
  'ftruncate',
21657
21658
  'futimes',
21659
+ 'glob',
21658
21660
  'lchmod',
21659
21661
  'lchown',
21662
+ 'lutimes',
21660
21663
  'link',
21661
21664
  'lstat',
21662
21665
  'mkdir',
@@ -21671,6 +21674,7 @@ function requireFs () {
21671
21674
  'rm',
21672
21675
  'rmdir',
21673
21676
  'stat',
21677
+ 'statfs',
21674
21678
  'symlink',
21675
21679
  'truncate',
21676
21680
  'unlink',
@@ -21679,6 +21683,8 @@ function requireFs () {
21679
21683
  ].filter(key => {
21680
21684
  // Some commands are not available on some systems. Ex:
21681
21685
  // fs.cp was added in Node.js v16.7.0
21686
+ // fs.statfs was added in Node v19.6.0, v18.15.0
21687
+ // fs.glob was added in Node.js v22.0.0
21682
21688
  // fs.lchown is not available on at least some Linux
21683
21689
  return typeof fs[key] === 'function'
21684
21690
  });
@@ -22212,23 +22218,28 @@ function requireCopy$1 () {
22212
22218
  await fs.mkdir(dest);
22213
22219
  }
22214
22220
 
22215
- const items = await fs.readdir(src);
22221
+ const promises = [];
22216
22222
 
22217
22223
  // loop through the files in the current directory to copy everything
22218
- await Promise.all(items.map(async item => {
22219
- const srcItem = path.join(src, item);
22220
- const destItem = path.join(dest, item);
22221
-
22222
- // skip the item if it is matches by the filter function
22223
- const include = await runFilter(srcItem, destItem, opts);
22224
- if (!include) return
22225
-
22226
- const { destStat } = await stat.checkPaths(srcItem, destItem, 'copy', opts);
22224
+ for await (const item of await fs.opendir(src)) {
22225
+ const srcItem = path.join(src, item.name);
22226
+ const destItem = path.join(dest, item.name);
22227
+
22228
+ promises.push(
22229
+ runFilter(srcItem, destItem, opts).then(include => {
22230
+ if (include) {
22231
+ // only copy the item if it matches the filter function
22232
+ return stat.checkPaths(srcItem, destItem, 'copy', opts).then(({ destStat }) => {
22233
+ // If the item is a copyable file, `getStatsAndPerformCopy` will copy it
22234
+ // If the item is a directory, `getStatsAndPerformCopy` will call `onDir` recursively
22235
+ return getStatsAndPerformCopy(destStat, srcItem, destItem, opts)
22236
+ })
22237
+ }
22238
+ })
22239
+ );
22240
+ }
22227
22241
 
22228
- // If the item is a copyable file, `getStatsAndPerformCopy` will copy it
22229
- // If the item is a directory, `getStatsAndPerformCopy` will call `onDir` recursively
22230
- return getStatsAndPerformCopy(destStat, srcItem, destItem, opts)
22231
- }));
22242
+ await Promise.all(promises);
22232
22243
 
22233
22244
  if (!destStat) {
22234
22245
  await fs.chmod(dest, srcStat.mode);
@@ -22390,7 +22401,17 @@ function requireCopySync () {
22390
22401
  }
22391
22402
 
22392
22403
  function copyDir (src, dest, opts) {
22393
- fs.readdirSync(src).forEach(item => copyDirItem(item, src, dest, opts));
22404
+ const dir = fs.opendirSync(src);
22405
+
22406
+ try {
22407
+ let dirent;
22408
+
22409
+ while ((dirent = dir.readSync()) !== null) {
22410
+ copyDirItem(dirent.name, src, dest, opts);
22411
+ }
22412
+ } finally {
22413
+ dir.closeSync();
22414
+ }
22394
22415
  }
22395
22416
 
22396
22417
  function copyDirItem (item, src, dest, opts) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$0 = require('@vue/compiler-sfc');
4
- require('./vendor-CH9TWbb8.js');
4
+ require('./vendor-Bxk8vVJ2.js');
5
5
 
6
6
  var __create = Object.create;
7
7
  var __defProp = Object.defineProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "2.15.4",
3
+ "version": "2.15.5",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"