vis-dev-utils 3.0.120 → 3.1.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.
- package/babel-register/index.js +10 -35
- package/babel-register/index.js.map +1 -1
- package/bin/ci-utils.js +7 -15
- package/bin/ci-utils.js.map +1 -1
- package/bin/generate-examples-index.js +155 -225
- package/bin/generate-examples-index.js.map +1 -1
- package/bin/test-e2e-interop.js +1162 -915
- package/bin/test-e2e-interop.js.map +1 -1
- package/declarations/generate-rollup-configuration/index.d.ts +4 -4
- package/declarations/generate-rollup-configuration/index.d.ts.map +1 -1
- package/dist/vis-dev-utils.cjs.js +80 -140
- package/dist/vis-dev-utils.cjs.js.map +1 -1
- package/dist/vis-dev-utils.esm.js +14 -8
- package/dist/vis-dev-utils.esm.js.map +1 -1
- package/package.json +17 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RollupOptions } from "rollup";
|
|
2
2
|
import { Target as CopyTarget } from "rollup-plugin-copy";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { type HeaderOptions } from "../header";
|
|
4
|
+
import { type OptionalOptions } from "../util";
|
|
5
5
|
export interface GRCOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Where to look for files when inlining assets into CSS.
|
|
@@ -78,15 +78,15 @@ export interface GRCOptions {
|
|
|
78
78
|
* stripped.
|
|
79
79
|
*
|
|
80
80
|
* Plugins:
|
|
81
|
+
* - `\@rollup/plugin-babel` (skipped in ESNext)
|
|
81
82
|
* - `\@rollup/plugin-commonjs`
|
|
82
83
|
* - `\@rollup/plugin-json`
|
|
83
84
|
* - `\@rollup/plugin-node-resolve`
|
|
84
85
|
* - `\@rollup/plugin-strip` (skipped with VIS_DEBUG=true env var)
|
|
86
|
+
* - `\@rollup/plugin-terser` (only in minified)
|
|
85
87
|
* - `postcss-assets`
|
|
86
|
-
* - `rollup-plugin-babel` (skipped in ESNext)
|
|
87
88
|
* - `rollup-plugin-copy`
|
|
88
89
|
* - `rollup-plugin-postcss`
|
|
89
|
-
* - `rollup-plugin-terser` (only in minified)
|
|
90
90
|
* - `rollup-plugin-typescript2` (skipped if the entry is .js)
|
|
91
91
|
* @param options - See {@link GRCOptions}.
|
|
92
92
|
* @param mode - Whether the code should be processed for production,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/module/generate-rollup-configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,QAAQ,CAAC;AAKzD,OAAmB,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/module/generate-rollup-configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,QAAQ,CAAC;AAKzD,OAAmB,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBtE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AA0B/C,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE;QACX;;;WAGG;QACH,MAAM,EAAE,UAAU,EAAE,CAAC;QACrB;;;WAGG;QACH,OAAO,EAAE,UAAU,EAAE,CAAC;KACvB,CAAC;IACF;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC1C,CAAC;IACF;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AA8RD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,CAAC,UAAU,CAAC,EACpC,IAAI,GAAE,YAAY,GAAG,aAAa,GAAG,MAIrB,GACf,OAAO,CAAC,aAAa,EAAE,CAAC,CAmV1B"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Development utilities for the Vis family projects.
|
|
6
6
|
*
|
|
7
|
-
* @version 3.0
|
|
8
|
-
* @date 2023-
|
|
7
|
+
* @version 3.1.0
|
|
8
|
+
* @date 2023-03-04T19:12:02.714Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -26,8 +26,6 @@
|
|
|
26
26
|
|
|
27
27
|
'use strict';
|
|
28
28
|
|
|
29
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30
|
-
|
|
31
29
|
var _Object$freeze = require('@babel/runtime-corejs3/core-js-stable/object/freeze');
|
|
32
30
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
33
31
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -57,7 +55,7 @@ var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
57
55
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
58
56
|
var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
59
57
|
var analyzerPlugin = require('rollup-plugin-analyzer');
|
|
60
|
-
var babelPlugin = require('rollup
|
|
58
|
+
var babelPlugin = require('@rollup/plugin-babel');
|
|
61
59
|
var chaiFs = require('chai-fs');
|
|
62
60
|
var commonjsPlugin = require('@rollup/plugin-commonjs');
|
|
63
61
|
var copyPlugin = require('rollup-plugin-copy');
|
|
@@ -66,12 +64,12 @@ var nodeResolvePlugin = require('@rollup/plugin-node-resolve');
|
|
|
66
64
|
var postcssAssetsPlugin = require('postcss-assets');
|
|
67
65
|
var postcssPlugin = require('rollup-plugin-postcss');
|
|
68
66
|
var stripCodePlugin = require('rollup-plugin-strip-code');
|
|
67
|
+
var terserPlugin = require('@rollup/plugin-terser');
|
|
69
68
|
var typescriptPlugin = require('rollup-plugin-typescript2');
|
|
70
69
|
var findUp = require('find-up');
|
|
71
70
|
var node_fs = require('node:fs');
|
|
72
71
|
var node_path = require('node:path');
|
|
73
72
|
var rollupPluginString = require('rollup-plugin-string');
|
|
74
|
-
var rollupPluginTerser = require('rollup-plugin-terser');
|
|
75
73
|
var chai = require('chai');
|
|
76
74
|
var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
77
75
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
@@ -80,71 +78,7 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
80
78
|
var node_child_process = require('node:child_process');
|
|
81
79
|
var tmpPromise = require('tmp-promise');
|
|
82
80
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
function _interopNamespace(e) {
|
|
86
|
-
if (e && e.__esModule) return e;
|
|
87
|
-
var n = Object.create(null);
|
|
88
|
-
if (e) {
|
|
89
|
-
Object.keys(e).forEach(function (k) {
|
|
90
|
-
if (k !== 'default') {
|
|
91
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
92
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
93
|
-
enumerable: true,
|
|
94
|
-
get: function () { return e[k]; }
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
n["default"] = e;
|
|
100
|
-
return Object.freeze(n);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var _Object$freeze__default = /*#__PURE__*/_interopDefaultLegacy(_Object$freeze);
|
|
104
|
-
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefaultLegacy(_Object$getOwnPropertySymbols);
|
|
105
|
-
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_filterInstanceProperty);
|
|
106
|
-
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefaultLegacy(_Object$getOwnPropertyDescriptor);
|
|
107
|
-
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_forEachInstanceProperty);
|
|
108
|
-
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefaultLegacy(_Object$getOwnPropertyDescriptors);
|
|
109
|
-
var _Object$defineProperties__default = /*#__PURE__*/_interopDefaultLegacy(_Object$defineProperties);
|
|
110
|
-
var _Object$defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_Object$defineProperty);
|
|
111
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
112
|
-
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
113
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
114
|
-
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
115
|
-
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
116
|
-
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
117
|
-
var _Number$MAX_SAFE_INTEGER__default = /*#__PURE__*/_interopDefaultLegacy(_Number$MAX_SAFE_INTEGER);
|
|
118
|
-
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_includesInstanceProperty);
|
|
119
|
-
var _Array$isArray__default = /*#__PURE__*/_interopDefaultLegacy(_Array$isArray);
|
|
120
|
-
var _Object$keys__default = /*#__PURE__*/_interopDefaultLegacy(_Object$keys);
|
|
121
|
-
var _flatMapInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_flatMapInstanceProperty);
|
|
122
|
-
var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_reduceInstanceProperty);
|
|
123
|
-
var _Object$entries__default = /*#__PURE__*/_interopDefaultLegacy(_Object$entries);
|
|
124
|
-
var _Object$create__default = /*#__PURE__*/_interopDefaultLegacy(_Object$create);
|
|
125
|
-
var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_endsWithInstanceProperty);
|
|
126
|
-
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_concatInstanceProperty);
|
|
127
|
-
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_mapInstanceProperty);
|
|
128
|
-
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_sortInstanceProperty);
|
|
129
|
-
var _Promise__default = /*#__PURE__*/_interopDefaultLegacy(_Promise);
|
|
130
|
-
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_bindInstanceProperty);
|
|
131
|
-
var analyzerPlugin__default = /*#__PURE__*/_interopDefaultLegacy(analyzerPlugin);
|
|
132
|
-
var babelPlugin__default = /*#__PURE__*/_interopDefaultLegacy(babelPlugin);
|
|
133
|
-
var chaiFs__default = /*#__PURE__*/_interopDefaultLegacy(chaiFs);
|
|
134
|
-
var commonjsPlugin__default = /*#__PURE__*/_interopDefaultLegacy(commonjsPlugin);
|
|
135
|
-
var copyPlugin__default = /*#__PURE__*/_interopDefaultLegacy(copyPlugin);
|
|
136
|
-
var jsonPlugin__default = /*#__PURE__*/_interopDefaultLegacy(jsonPlugin);
|
|
137
|
-
var nodeResolvePlugin__default = /*#__PURE__*/_interopDefaultLegacy(nodeResolvePlugin);
|
|
138
|
-
var postcssAssetsPlugin__default = /*#__PURE__*/_interopDefaultLegacy(postcssAssetsPlugin);
|
|
139
|
-
var postcssPlugin__default = /*#__PURE__*/_interopDefaultLegacy(postcssPlugin);
|
|
140
|
-
var stripCodePlugin__default = /*#__PURE__*/_interopDefaultLegacy(stripCodePlugin);
|
|
141
|
-
var typescriptPlugin__default = /*#__PURE__*/_interopDefaultLegacy(typescriptPlugin);
|
|
142
|
-
var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_indexOfInstanceProperty);
|
|
143
|
-
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_sliceInstanceProperty);
|
|
144
|
-
var _trimInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_trimInstanceProperty);
|
|
145
|
-
var _findInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_findInstanceProperty);
|
|
146
|
-
|
|
147
|
-
var BABEL_IGNORE_RE = _Object$freeze__default["default"](/[\\/]node_modules[\\/](?!.*[\\/]esnext[\\/])/);
|
|
81
|
+
var BABEL_IGNORE_RE = _Object$freeze(/[\\/]node_modules[\\/](?!.*[\\/]esnext[\\/])/);
|
|
148
82
|
|
|
149
83
|
/**
|
|
150
84
|
* Take a string and return a doc block comment.
|
|
@@ -156,10 +90,10 @@ var BABEL_IGNORE_RE = _Object$freeze__default["default"](/[\\/]node_modules[\\/]
|
|
|
156
90
|
*/
|
|
157
91
|
function textToComment(string) {
|
|
158
92
|
var _context, _context2;
|
|
159
|
-
if (
|
|
93
|
+
if (_includesInstanceProperty(string).call(string, "*/")) {
|
|
160
94
|
throw new Error("Don't include comments in the input string. It will be converted automatically.");
|
|
161
95
|
}
|
|
162
|
-
return "/**\n" +
|
|
96
|
+
return "/**\n" + _mapInstanceProperty(_context = _mapInstanceProperty(_context2 = string
|
|
163
97
|
// Remove empty lines from the start.
|
|
164
98
|
.replace(/^[\n\r]*/, "")
|
|
165
99
|
// Remove empty lines from the end.
|
|
@@ -186,7 +120,7 @@ var buildHeader = function buildHeader(_ref) {
|
|
|
186
120
|
homepage = _ref.homepage,
|
|
187
121
|
name = _ref.name,
|
|
188
122
|
version = _ref.version;
|
|
189
|
-
return textToComment(
|
|
123
|
+
return textToComment(_concatInstanceProperty(_context3 = _concatInstanceProperty(_context4 = _concatInstanceProperty(_context5 = _concatInstanceProperty(_context6 = _concatInstanceProperty(_context7 = "\n".concat(name, "\n")).call(_context7, homepage, "\n\n")).call(_context6, description, "\n\n@version ")).call(_context5, version, "\n@date ")).call(_context4, date, "\n\n@copyright (c) 2011-2017 Almende B.V, http://almende.com\n@copyright (c) 2017-2019 visjs contributors, https://github.com/visjs\n\n@license\nvis.js is dual licensed under both\n\n 1. The Apache 2.0 License\n http://www.apache.org/licenses/LICENSE-2.0\n\n and\n\n 2. The MIT License\n http://opensource.org/licenses/MIT\n\nvis.js may be distributed under either license.\n\n")).call(_context3, customText, "\n"));
|
|
190
124
|
};
|
|
191
125
|
var defaultDate = new Date().toISOString();
|
|
192
126
|
var defaultDescription = packageJSON.description;
|
|
@@ -229,13 +163,13 @@ function generateHeader(options) {
|
|
|
229
163
|
|
|
230
164
|
var _excluded = ["dependencies", "devDependencies", "peerDependencies"];
|
|
231
165
|
var _context, _context2;
|
|
232
|
-
function ownKeys$1(object, enumerableOnly) { var keys = _Object$
|
|
233
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context25, _context26; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ?
|
|
234
|
-
var rawGlobby =
|
|
235
|
-
chai.config.truncateThreshold = _Number$
|
|
236
|
-
chai.use(
|
|
237
|
-
var VIS_DEBUG =
|
|
238
|
-
var VIS_TEST =
|
|
166
|
+
function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
167
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context25, _context26; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context25 = ownKeys$1(Object(source), !0)).call(_context25, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context26 = ownKeys$1(Object(source))).call(_context26, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
168
|
+
var rawGlobby = import('globby');
|
|
169
|
+
chai.config.truncateThreshold = _Number$MAX_SAFE_INTEGER;
|
|
170
|
+
chai.use(chaiFs);
|
|
171
|
+
var VIS_DEBUG = _includesInstanceProperty(_context = ["1", "true", "y", "yes"]).call(_context, process.env["VIS_DEBUG"] || "false");
|
|
172
|
+
var VIS_TEST = _includesInstanceProperty(_context2 = ["1", "true", "y", "yes"]).call(_context2, process.env["VIS_TEST"] || "false");
|
|
239
173
|
/**
|
|
240
174
|
* Simple glob with workaround for non-posix paths.
|
|
241
175
|
*
|
|
@@ -250,8 +184,8 @@ function glob(_x) {
|
|
|
250
184
|
* structure.
|
|
251
185
|
*/
|
|
252
186
|
function _glob() {
|
|
253
|
-
_glob =
|
|
254
|
-
return
|
|
187
|
+
_glob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(pattern) {
|
|
188
|
+
return _regeneratorRuntime.wrap(function _callee$(_context11) {
|
|
255
189
|
while (1) switch (_context11.prev = _context11.next) {
|
|
256
190
|
case 0:
|
|
257
191
|
_context11.next = 2;
|
|
@@ -274,9 +208,9 @@ var dependenciesWithVisExportStructure = ["vis-data", "vis-graph3d", "vis-networ
|
|
|
274
208
|
* @returns An array of dependencies for Rollup.
|
|
275
209
|
*/
|
|
276
210
|
function processDependencies(deps) {
|
|
277
|
-
var depNames = _Array$
|
|
278
|
-
return
|
|
279
|
-
return
|
|
211
|
+
var depNames = _Array$isArray(deps) ? deps : _Object$keys(deps);
|
|
212
|
+
return _flatMapInstanceProperty(depNames).call(depNames, function (key) {
|
|
213
|
+
return _includesInstanceProperty(dependenciesWithVisExportStructure).call(dependenciesWithVisExportStructure, key) ? [key + "/esnext"] : [key];
|
|
280
214
|
});
|
|
281
215
|
}
|
|
282
216
|
/**
|
|
@@ -289,19 +223,19 @@ function processDependencies(deps) {
|
|
|
289
223
|
*/
|
|
290
224
|
function processGlobals(globals) {
|
|
291
225
|
var _context3;
|
|
292
|
-
return
|
|
293
|
-
var _ref2 =
|
|
226
|
+
return _reduceInstanceProperty(_context3 = _Object$entries(globals)).call(_context3, function (acc, _ref) {
|
|
227
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
294
228
|
key = _ref2[0],
|
|
295
229
|
value = _ref2[1];
|
|
296
|
-
acc[
|
|
230
|
+
acc[_includesInstanceProperty(dependenciesWithVisExportStructure).call(dependenciesWithVisExportStructure, key) ? key + "/esnext" : key] = value;
|
|
297
231
|
return acc;
|
|
298
|
-
}, _Object$
|
|
232
|
+
}, _Object$create(null));
|
|
299
233
|
}
|
|
300
234
|
/**
|
|
301
235
|
* @param path
|
|
302
236
|
*/
|
|
303
237
|
function isTS(path) {
|
|
304
|
-
return
|
|
238
|
+
return _endsWithInstanceProperty(path).call(path, ".ts");
|
|
305
239
|
}
|
|
306
240
|
/*
|
|
307
241
|
* Make sure that Chai doesn't throw and therefore stop execution on failed
|
|
@@ -330,7 +264,7 @@ function getPaths(buildVariant, moduleFormat) {
|
|
|
330
264
|
*/
|
|
331
265
|
function getPath(lib) {
|
|
332
266
|
var _context4, _context5, _context6;
|
|
333
|
-
return
|
|
267
|
+
return _defineProperty({}, "vis-".concat(lib, "/esnext"), _concatInstanceProperty(_context4 = _concatInstanceProperty(_context5 = _concatInstanceProperty(_context6 = "vis-".concat(lib, "/")).call(_context6, buildVariant, "/")).call(_context5, moduleFormat, "/vis-")).call(_context4, lib, ".js"));
|
|
334
268
|
}
|
|
335
269
|
return _objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, getPath("charts")), getPath("data")), getPath("graph3d")), getPath("network")), getPath("timeline")), getPath("util")), getPath("uuid"));
|
|
336
270
|
}
|
|
@@ -345,9 +279,9 @@ function scopeCopyTarget() {
|
|
|
345
279
|
dirs[_key] = arguments[_key];
|
|
346
280
|
}
|
|
347
281
|
return function (target) {
|
|
348
|
-
var dest = _Array$
|
|
349
|
-
var bundleDest =
|
|
350
|
-
return
|
|
282
|
+
var dest = _Array$isArray(target.dest) ? target.dest : [target.dest];
|
|
283
|
+
var bundleDest = _flatMapInstanceProperty(dest).call(dest, function (path) {
|
|
284
|
+
return _mapInstanceProperty(dirs).call(dirs, function (dir) {
|
|
351
285
|
return node_path.join(dir, path);
|
|
352
286
|
});
|
|
353
287
|
});
|
|
@@ -372,30 +306,30 @@ var generateRollupPluginArray = function generateRollupPluginArray(libraryFilena
|
|
|
372
306
|
transpile = _ref4$transpile === void 0 ? false : _ref4$transpile,
|
|
373
307
|
_ref4$typescript = _ref4.typescript,
|
|
374
308
|
typescript = _ref4$typescript === void 0 ? false : _ref4$typescript;
|
|
375
|
-
var fullLibraryFilename =
|
|
309
|
+
var fullLibraryFilename = _concatInstanceProperty(_context7 = "".concat(libraryFilename)).call(_context7, minimize ? ".min" : "");
|
|
376
310
|
var bundleDir = bundleType;
|
|
377
|
-
var bundleVariantDirs =
|
|
311
|
+
var bundleVariantDirs = _mapInstanceProperty(_context8 = ["esm", "umd"]).call(_context8, function (variant) {
|
|
378
312
|
return node_path.join(bundleDir, variant);
|
|
379
313
|
});
|
|
380
|
-
return
|
|
314
|
+
return _concatInstanceProperty(_context9 = []).call(_context9, _toConsumableArray(strip ? [
|
|
381
315
|
// This should be first because it removes code from source files.
|
|
382
316
|
// It's much easier to follow if the removal happens before any
|
|
383
317
|
// transformations.
|
|
384
|
-
|
|
318
|
+
stripCodePlugin({
|
|
385
319
|
start_comment: "develblock:start",
|
|
386
320
|
end_comment: "develblock:end"
|
|
387
321
|
})] : [
|
|
388
322
|
// Remove the comments marking devel blocks as they can cause problems
|
|
389
323
|
// later on because transpilation shuffles things around which may
|
|
390
324
|
// lead to all kinds of issues including syntax errors.
|
|
391
|
-
|
|
325
|
+
stripCodePlugin({
|
|
392
326
|
pattern: /[\t ]*\/\* ?develblock:(start|end) ?\*\//g
|
|
393
|
-
})]), [
|
|
327
|
+
})]), [analyzerPlugin(VIS_DEBUG ? undefined : {
|
|
394
328
|
limit: 10,
|
|
395
329
|
summaryOnly: true
|
|
396
|
-
}),
|
|
330
|
+
}), copyPlugin({
|
|
397
331
|
verbose: VIS_DEBUG,
|
|
398
|
-
targets:
|
|
332
|
+
targets: _concatInstanceProperty(_context10 = [
|
|
399
333
|
// JavaScript
|
|
400
334
|
{
|
|
401
335
|
src: node_path.resolve(__dirname, "assets/bundle-root.js"),
|
|
@@ -428,29 +362,35 @@ var generateRollupPluginArray = function generateRollupPluginArray(libraryFilena
|
|
|
428
362
|
transform: function transform(content) {
|
|
429
363
|
return content.toString().replace("{{bundle-type}}", bundleType);
|
|
430
364
|
}
|
|
431
|
-
}]).call(_context10,
|
|
432
|
-
}),
|
|
365
|
+
}]).call(_context10, _toConsumableArray(_mapInstanceProperty(copyTargetsBundle).call(copyTargetsBundle, scopeCopyTarget(bundleDir))), _toConsumableArray(_mapInstanceProperty(copyTargetsVariant).call(copyTargetsVariant, scopeCopyTarget.apply(void 0, _toConsumableArray(bundleVariantDirs)))))
|
|
366
|
+
}), nodeResolvePlugin({
|
|
433
367
|
browser: true,
|
|
434
368
|
extensions: [".js", ".json", ".ts"],
|
|
435
369
|
mainFields: ["jsnext", "module", "main"],
|
|
436
370
|
preferBuiltins: false
|
|
437
|
-
})],
|
|
371
|
+
})], _toConsumableArray(typescript ? [typescriptPlugin({
|
|
438
372
|
tsconfig: tsconfig
|
|
439
|
-
})] : []), [
|
|
373
|
+
})] : []), [commonjsPlugin(), postcssPlugin({
|
|
440
374
|
extract: !injectCSS && "styles/".concat(fullLibraryFilename, ".css"),
|
|
441
375
|
inject: injectCSS,
|
|
442
376
|
minimize: minimize,
|
|
443
377
|
// Prevent the sourcemaps from being injected into JS files.
|
|
444
378
|
sourceMap: !injectCSS,
|
|
445
|
-
plugins: [
|
|
379
|
+
plugins: [postcssAssetsPlugin({
|
|
446
380
|
loadPaths: [assets]
|
|
447
381
|
})]
|
|
448
|
-
}),
|
|
382
|
+
}), jsonPlugin(), rollupPluginString.string({
|
|
449
383
|
include: "**/*.txt"
|
|
450
|
-
})],
|
|
384
|
+
})], _toConsumableArray(transpile ? [babelPlugin({
|
|
385
|
+
babelHelpers: "runtime",
|
|
386
|
+
babelrc: false,
|
|
387
|
+
configFile: false,
|
|
388
|
+
exclude: BABEL_IGNORE_RE,
|
|
451
389
|
extensions: [".js", ".ts"],
|
|
452
|
-
|
|
453
|
-
|
|
390
|
+
presets: [["vis-dev-utils/babel-preset", {
|
|
391
|
+
ts: true
|
|
392
|
+
}]]
|
|
393
|
+
})] : []), _toConsumableArray(minimize ? [terserPlugin({
|
|
454
394
|
format: {
|
|
455
395
|
comments: "some"
|
|
456
396
|
}
|
|
@@ -471,15 +411,15 @@ var generateRollupPluginArray = function generateRollupPluginArray(libraryFilena
|
|
|
471
411
|
* stripped.
|
|
472
412
|
*
|
|
473
413
|
* Plugins:
|
|
414
|
+
* - `\@rollup/plugin-babel` (skipped in ESNext)
|
|
474
415
|
* - `\@rollup/plugin-commonjs`
|
|
475
416
|
* - `\@rollup/plugin-json`
|
|
476
417
|
* - `\@rollup/plugin-node-resolve`
|
|
477
418
|
* - `\@rollup/plugin-strip` (skipped with VIS_DEBUG=true env var)
|
|
419
|
+
* - `\@rollup/plugin-terser` (only in minified)
|
|
478
420
|
* - `postcss-assets`
|
|
479
|
-
* - `rollup-plugin-babel` (skipped in ESNext)
|
|
480
421
|
* - `rollup-plugin-copy`
|
|
481
422
|
* - `rollup-plugin-postcss`
|
|
482
|
-
* - `rollup-plugin-terser` (only in minified)
|
|
483
423
|
* - `rollup-plugin-typescript2` (skipped if the entry is .js)
|
|
484
424
|
* @param options - See {@link GRCOptions}.
|
|
485
425
|
* @param mode - Whether the code should be processed for production,
|
|
@@ -491,7 +431,7 @@ function generateRollupConfiguration(_x2) {
|
|
|
491
431
|
return _generateRollupConfiguration.apply(this, arguments);
|
|
492
432
|
}
|
|
493
433
|
function _generateRollupConfiguration() {
|
|
494
|
-
_generateRollupConfiguration =
|
|
434
|
+
_generateRollupConfiguration = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(options) {
|
|
495
435
|
var _context15, _context18, _context19, _context20, _context21, _context22, _context23;
|
|
496
436
|
var mode,
|
|
497
437
|
_ref5,
|
|
@@ -536,28 +476,28 @@ function _generateRollupConfiguration() {
|
|
|
536
476
|
commonOutputUMD,
|
|
537
477
|
getPlugins,
|
|
538
478
|
_args3 = arguments;
|
|
539
|
-
return
|
|
479
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context24) {
|
|
540
480
|
while (1) switch (_context24.prev = _context24.next) {
|
|
541
481
|
case 0:
|
|
542
482
|
mode = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : VIS_TEST ? "test" : VIS_DEBUG ? "development" : "production";
|
|
543
483
|
_ref5 = options || {}, _ref5$assets = _ref5.assets, assets = _ref5$assets === void 0 ? "." : _ref5$assets, _ref5$copyTargets = _ref5.copyTargets, _ref5$copyTargets2 = _ref5$copyTargets === void 0 ? {} : _ref5$copyTargets, _ref5$copyTargets2$bu = _ref5$copyTargets2.bundle, copyTargetsBundle = _ref5$copyTargets2$bu === void 0 ? [] : _ref5$copyTargets2$bu, _ref5$copyTargets2$va = _ref5$copyTargets2.variant, copyTargetsVariant = _ref5$copyTargets2$va === void 0 ? [] : _ref5$copyTargets2$va, _ref5$externalForPeer = _ref5.externalForPeerBuild, externalForPeerBuild = _ref5$externalForPeer === void 0 ? [] : _ref5$externalForPeer, _ref5$globals = _ref5.globals, globals = _ref5$globals === void 0 ? {} : _ref5$globals, _ref5$header = _ref5.header, header = _ref5$header === void 0 ? {
|
|
544
484
|
name: "Unknown Library"
|
|
545
|
-
} : _ref5$header, _ref5$libraryFilename = _ref5.libraryFilename, libraryFilename = _ref5$libraryFilename === void 0 ? "unknown-library" : _ref5$libraryFilename, _ref5$packageJSON = _ref5.packageJSON, _ref5$packageJSON2 = _ref5$packageJSON === void 0 ? {} : _ref5$packageJSON, _ref5$packageJSON2$de = _ref5$packageJSON2.dependencies, dependencies = _ref5$packageJSON2$de === void 0 ? {} : _ref5$packageJSON2$de, _ref5$packageJSON2$de2 = _ref5$packageJSON2.devDependencies, devDependencies = _ref5$packageJSON2$de2 === void 0 ? {} : _ref5$packageJSON2$de2, _ref5$packageJSON2$pe = _ref5$packageJSON2.peerDependencies, peerDependencies = _ref5$packageJSON2$pe === void 0 ? {} : _ref5$packageJSON2$pe, packageJSONRest =
|
|
485
|
+
} : _ref5$header, _ref5$libraryFilename = _ref5.libraryFilename, libraryFilename = _ref5$libraryFilename === void 0 ? "unknown-library" : _ref5$libraryFilename, _ref5$packageJSON = _ref5.packageJSON, _ref5$packageJSON2 = _ref5$packageJSON === void 0 ? {} : _ref5$packageJSON, _ref5$packageJSON2$de = _ref5$packageJSON2.dependencies, dependencies = _ref5$packageJSON2$de === void 0 ? {} : _ref5$packageJSON2$de, _ref5$packageJSON2$de2 = _ref5$packageJSON2.devDependencies, devDependencies = _ref5$packageJSON2$de2 === void 0 ? {} : _ref5$packageJSON2$de2, _ref5$packageJSON2$pe = _ref5$packageJSON2.peerDependencies, peerDependencies = _ref5$packageJSON2$pe === void 0 ? {} : _ref5$packageJSON2$pe, packageJSONRest = _objectWithoutProperties(_ref5$packageJSON2, _excluded), _ref5$entryPoints = _ref5.entryPoints, entryPoint = _ref5$entryPoints === void 0 ? "./src" : _ref5$entryPoints, _ref5$tsconfig = _ref5.tsconfig, tsconfig = _ref5$tsconfig === void 0 ? "tsconfig.json" : _ref5$tsconfig;
|
|
546
486
|
validate(function (expect) {
|
|
547
487
|
// Note: Every array is a superset of empty array.
|
|
548
|
-
if (_Object$
|
|
549
|
-
expect(_Object$
|
|
488
|
+
if (_Object$keys(peerDependencies).length > 0) {
|
|
489
|
+
expect(_Object$keys(dependencies), "The dependencies and peer dependencies have to be disjoint sets").to.be.an("array").that.does.not.include.any.members(_Object$keys(peerDependencies));
|
|
550
490
|
}
|
|
551
491
|
});
|
|
552
492
|
validate(function (expect) {
|
|
553
|
-
|
|
493
|
+
_includesInstanceProperty(expect(_Object$keys(devDependencies), "For convenience all peer dependencies also have to be dev dependencies").to.be.an("array").that).all.members(_Object$keys(peerDependencies));
|
|
554
494
|
});
|
|
555
495
|
validate(function (expect) {
|
|
556
|
-
|
|
496
|
+
_includesInstanceProperty(expect(_Object$keys(peerDependencies), "Peer build externals have to be a subset of peer dependencies").to.be.an("array").that).all.members(externalForPeerBuild);
|
|
557
497
|
});
|
|
558
498
|
validate(function (expect) {
|
|
559
499
|
var _context12, _context13, _context14;
|
|
560
|
-
expect(
|
|
500
|
+
expect(_sortInstanceProperty(_context12 = _concatInstanceProperty(_context13 = []).call(_context13, _toConsumableArray(_Object$keys(dependencies)), _toConsumableArray(_Object$keys(peerDependencies)))).call(_context12), "Globals have to be provided for all runtime and peer dependencies but nothing else").to.be.an("array").that.deep.equals(_sortInstanceProperty(_context14 = _Object$keys(globals)).call(_context14));
|
|
561
501
|
});
|
|
562
502
|
validate(function (expect) {
|
|
563
503
|
expect(node_path.resolve(assets), "Assets have to be a directory").to.be.a("string").and.a.directory();
|
|
@@ -566,10 +506,10 @@ function _generateRollupConfiguration() {
|
|
|
566
506
|
expect(entryPoint, "The entry point has to be directory").to.be.a("string").and.a.directory();
|
|
567
507
|
});
|
|
568
508
|
_context24.next = 10;
|
|
569
|
-
return
|
|
570
|
-
var _ref6 =
|
|
509
|
+
return _Promise.all(_mapInstanceProperty(_context15 = ["ESNext", "peer", "standalone"]).call(_context15, /*#__PURE__*/function () {
|
|
510
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(name) {
|
|
571
511
|
var filenameGlob, files;
|
|
572
|
-
return
|
|
512
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context17) {
|
|
573
513
|
while (1) switch (_context17.prev = _context17.next) {
|
|
574
514
|
case 0:
|
|
575
515
|
filenameGlob = "entry-".concat(name.toLowerCase(), ".{js,ts}");
|
|
@@ -579,7 +519,7 @@ function _generateRollupConfiguration() {
|
|
|
579
519
|
files = _context17.sent;
|
|
580
520
|
validate(function (expect) {
|
|
581
521
|
var _context16;
|
|
582
|
-
expect(files,
|
|
522
|
+
expect(files, _concatInstanceProperty(_context16 = "There has to be a single entry file (".concat(filenameGlob, ") for the ")).call(_context16, name, " build")).to.have.lengthOf(1).and.to.have.ownProperty("0").that.is.a.file();
|
|
583
523
|
});
|
|
584
524
|
return _context17.abrupt("return", files[0]);
|
|
585
525
|
case 6:
|
|
@@ -594,7 +534,7 @@ function _generateRollupConfiguration() {
|
|
|
594
534
|
}()));
|
|
595
535
|
case 10:
|
|
596
536
|
_yield$Promise$all = _context24.sent;
|
|
597
|
-
_yield$Promise$all2 =
|
|
537
|
+
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
|
|
598
538
|
esnextEntry = _yield$Promise$all2[0];
|
|
599
539
|
peerEntry = _yield$Promise$all2[1];
|
|
600
540
|
standaloneEntry = _yield$Promise$all2[2];
|
|
@@ -602,7 +542,7 @@ function _generateRollupConfiguration() {
|
|
|
602
542
|
expect(node_path.resolve("./declarations"), "There has to be a directory with TypeScript declarations").to.be.a("string").and.a.directory();
|
|
603
543
|
});
|
|
604
544
|
validate(function (expect) {
|
|
605
|
-
|
|
545
|
+
_includesInstanceProperty(expect(packageJSONRest, "The directories with built files have to be included in the package").to.have.ownProperty("files").that.is.an("array").and).all.members(["declarations", "esnext", "peer", "standalone"]);
|
|
606
546
|
});
|
|
607
547
|
validate(function (expect) {
|
|
608
548
|
expect(packageJSONRest, "Package JSON's type property has to point to the declarations").to.have.ownProperty("types").that.is.a("string").and.equals("declarations/index.d.ts");
|
|
@@ -629,7 +569,7 @@ function _generateRollupConfiguration() {
|
|
|
629
569
|
banner = generateHeader(header);
|
|
630
570
|
external = {
|
|
631
571
|
// No dependencies are bundled.
|
|
632
|
-
esnext: processDependencies(
|
|
572
|
+
esnext: processDependencies(_concatInstanceProperty(_context18 = []).call(_context18, _toConsumableArray(_Object$keys(dependencies)), _toConsumableArray(_Object$keys(peerDependencies)), _toConsumableArray(_Object$keys(devDependencies)))),
|
|
633
573
|
// Only dependencies that cause compatibility issues are not bundled.
|
|
634
574
|
peer: processDependencies(externalForPeerBuild),
|
|
635
575
|
// No runtime dependencies, everything's bundled.
|
|
@@ -651,7 +591,7 @@ function _generateRollupConfiguration() {
|
|
|
651
591
|
name: "vis",
|
|
652
592
|
strict: false // Regenerator runtime causes issues with CSP in strict mode.
|
|
653
593
|
}); // Note: Binding more than 4 at a time is not typesafe in TS.
|
|
654
|
-
getPlugins =
|
|
594
|
+
getPlugins = _bindInstanceProperty(_context19 = _bindInstanceProperty(_context20 = _bindInstanceProperty(_context21 = _bindInstanceProperty(_context22 = _bindInstanceProperty(_context23 = _bindInstanceProperty(generateRollupPluginArray).call(generateRollupPluginArray, null, libraryFilename)).call(_context23, null, assets)).call(_context22, null, copyTargetsBundle)).call(_context21, null, copyTargetsVariant)).call(_context20, null, tsconfig)).call(_context19, null, mode);
|
|
655
595
|
return _context24.abrupt("return", [{
|
|
656
596
|
external: external.standalone,
|
|
657
597
|
input: standaloneEntry,
|
|
@@ -745,8 +685,8 @@ function _generateRollupConfiguration() {
|
|
|
745
685
|
return _generateRollupConfiguration.apply(this, arguments);
|
|
746
686
|
}
|
|
747
687
|
|
|
748
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$
|
|
749
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context8, _context9; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ?
|
|
688
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
689
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context8, _context9; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context8 = ownKeys(Object(source), !0)).call(_context8, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context9 = ownKeys(Object(source))).call(_context9, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
750
690
|
tmpPromise.setGracefulCleanup();
|
|
751
691
|
var PACK_CMD = ["npm", "pack", "--dry-run"];
|
|
752
692
|
/**
|
|
@@ -755,7 +695,7 @@ var PACK_CMD = ["npm", "pack", "--dry-run"];
|
|
|
755
695
|
*/
|
|
756
696
|
function logStderr(textOrLines, message) {
|
|
757
697
|
console.group('"npm pack" output');
|
|
758
|
-
console.error(_Array$
|
|
698
|
+
console.error(_Array$isArray(textOrLines) ? textOrLines.join("\n") : textOrLines);
|
|
759
699
|
console.groupEnd();
|
|
760
700
|
throw new Error(message);
|
|
761
701
|
}
|
|
@@ -768,7 +708,7 @@ function runNpmPack() {
|
|
|
768
708
|
// There are issues with incomplete output when the stderr is read directly
|
|
769
709
|
// into Node. Saving it into tmp file using shell redirection and reading it
|
|
770
710
|
// from there doesn't exhibit those issues.
|
|
771
|
-
node_child_process.execSync(
|
|
711
|
+
node_child_process.execSync(_concatInstanceProperty(_context = "".concat(PACK_CMD.join(" "), " 2> ")).call(_context, tmpFile), {
|
|
772
712
|
encoding: "utf-8",
|
|
773
713
|
env: _objectSpread(_objectSpread({}, process.env), {}, {
|
|
774
714
|
LC_ALL: "C"
|
|
@@ -782,19 +722,19 @@ function runNpmPack() {
|
|
|
782
722
|
*/
|
|
783
723
|
function extractFiles(lines) {
|
|
784
724
|
var _context2, _context3, _context4, _context5, _context6;
|
|
785
|
-
var fileListingStart =
|
|
786
|
-
var fileListingEnd =
|
|
725
|
+
var fileListingStart = _indexOfInstanceProperty(lines).call(lines, "npm notice === Tarball Contents === ");
|
|
726
|
+
var fileListingEnd = _indexOfInstanceProperty(lines).call(lines, "npm notice === Tarball Details === ");
|
|
787
727
|
if (fileListingStart === -1 || fileListingEnd === -1) {
|
|
788
728
|
logStderr(lines.join("\n"), 'Couldn\'t find tarball contents in "npm pack" output.');
|
|
789
729
|
}
|
|
790
|
-
var files =
|
|
730
|
+
var files = _mapInstanceProperty(_context2 = _sortInstanceProperty(_context3 = _mapInstanceProperty(_context4 = _mapInstanceProperty(_context5 = _mapInstanceProperty(_context6 = _sliceInstanceProperty(lines).call(lines, fileListingStart + 1, fileListingEnd)).call(_context6, function (line) {
|
|
791
731
|
return line.replace(/^npm notice /, "");
|
|
792
732
|
})).call(_context5, function (line) {
|
|
793
|
-
return
|
|
733
|
+
return _trimInstanceProperty(line).call(line);
|
|
794
734
|
})).call(_context4, function (line) {
|
|
795
735
|
return line.replace(/^([^ ]+) +(.*)/, function (_, size, path) {
|
|
796
736
|
var _context7;
|
|
797
|
-
return
|
|
737
|
+
return _concatInstanceProperty(_context7 = "".concat(path)).call(_context7, size === "0" ? "(empty)" : " ");
|
|
798
738
|
});
|
|
799
739
|
})).call(_context3)).call(_context2, function (line) {
|
|
800
740
|
return line.replace(/^(.*)(.{7})$/, "$2 $1");
|
|
@@ -808,7 +748,7 @@ function extractFiles(lines) {
|
|
|
808
748
|
* @param lines
|
|
809
749
|
*/
|
|
810
750
|
function extractName(lines) {
|
|
811
|
-
var nameLine =
|
|
751
|
+
var nameLine = _findInstanceProperty(lines).call(lines, function (line) {
|
|
812
752
|
return /^npm notice name:/.test(line);
|
|
813
753
|
});
|
|
814
754
|
if (nameLine == null) {
|