@nebula.js/cli-serve 2.3.0 → 2.3.1

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.
@@ -0,0 +1,49 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /**
8
+ * A better abstraction over CSS.
9
+ *
10
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
11
+ * @website https://github.com/cssinjs/jss
12
+ * @license MIT
13
+ */
14
+
15
+ /** @license React v0.20.2
16
+ * scheduler.production.min.js
17
+ *
18
+ * Copyright (c) Facebook, Inc. and its affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+
24
+ /** @license React v17.0.2
25
+ * react-dom.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+
33
+ /** @license React v17.0.2
34
+ * react-is.production.min.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ */
41
+
42
+ /** @license React v17.0.2
43
+ * react.production.min.js
44
+ *
45
+ * Copyright (c) Facebook, Inc. and its affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */
package/dist/fixtures.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={9946:e=>{function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=()=>[],o.resolve=o,o.id=9946,e.exports=o}},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var i=o[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),window.serveFixtures={get(e=""){const o=e.startsWith("./")?e:`./${e}`;let r;try{r=t(9946)}catch(e){throw new Error('Specified "--fixturePath" does not exist')}if(r.keys().includes(o))return r(o).default;throw console.groupCollapsed(`No fixture found at "${o}"`),0===r.keys().length?console.info("No fixtures available."):(console.info("Fixtures available:"),console.info(r.keys()),console.info("Is the fixture you are looking for not in the list?")),console.info('Specify "--fixturePath" to Nebula serve to specify their loction. Note that the fixture\'s file name must end with ".fix.js".'),console.groupEnd(),new Error(`No fixture found at "${o}"`)}}})();
1
+ (()=>{var e={19946:e=>{function o(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}o.keys=()=>[],o.resolve=o,o.id=19946,e.exports=o}},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var i=o[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),window.serveFixtures={get(e=""){const o=["/","./"].some((o=>e.startsWith(o)))?e:`./${e}`;let r;try{r=t(19946)}catch(e){throw new Error('Specified "--fixturePath" does not exist')}if(r.keys().includes(o))return r(o).default;throw console.groupCollapsed(`No fixture found at "${o}"`),0===r.keys().length?console.info("No fixtures available."):(console.info("Fixtures available:"),console.info(r.keys()),console.info("Is the fixture you are looking for not in the list?")),console.info('Specify "--fixturePath" to Nebula serve to specify their loction. Note that the fixture\'s file name must end with ".fix.js".'),console.groupEnd(),new Error(`No fixture found at "${o}"`)}}})();
package/lib/fixtures.js CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
  window.serveFixtures = {
7
7
  get(key = '') {
8
- const k = key.startsWith('./') ? key : `./${key}`;
8
+ const k = ['/', './'].some((v) => key.startsWith(v)) ? key : `./${key}`;
9
9
  let context;
10
10
  try {
11
11
  // see: https://webpack.js.org/guides/dependency-management/#requirecontext
@@ -1,7 +1,6 @@
1
1
  const path = require('path');
2
2
  const webpack = require('webpack');
3
3
  const HtmlWebpackPlugin = require('html-webpack-plugin');
4
- const CopyWebpackPlugin = require('copy-webpack-plugin');
5
4
 
6
5
  const babelPath = require.resolve('babel-loader');
7
6
  const babelPresetEnvPath = require.resolve('@babel/preset-env');
@@ -111,17 +110,7 @@ const cfg = ({ srcDir, distDir, dev = false, serveConfig = {} }) => {
111
110
  chunks: ['eHub'],
112
111
  favicon,
113
112
  }),
114
- new CopyWebpackPlugin({
115
- patterns: ['stardust.js', 'stardust.js.map'].map((filename) => ({
116
- from: path.resolve(__dirname, `../../../apis/stardust/dist/${filename}`),
117
- to: distDir,
118
- })),
119
- }),
120
113
  ],
121
- externals: {
122
- // Ensure dependency is shared for rendering, fixtures and elsewhere.
123
- '@nebula.js/stardust': 'stardust',
124
- },
125
114
  };
126
115
 
127
116
  return config;
@@ -65,10 +65,6 @@ const cfg = ({ srcDir = path.resolve(__dirname, '../dist'), serveConfig = {} })
65
65
  chunks: [],
66
66
  }),
67
67
  ],
68
- externals: {
69
- // Ensure dependency is shared for rendering, fixtures and elsewhere.
70
- '@nebula.js/stardust': 'stardust',
71
- },
72
68
  };
73
69
 
74
70
  return config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/cli-serve",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -27,7 +27,7 @@
27
27
  "prepublishOnly": "rm -rf dist && yarn run build"
28
28
  },
29
29
  "dependencies": {
30
- "@nebula.js/cli-build": "^2.3.0",
30
+ "@nebula.js/cli-build": "^2.3.1",
31
31
  "body-parser": "1.19.0",
32
32
  "chalk": "4.1.2",
33
33
  "chokidar": "3.5.2",
@@ -49,14 +49,13 @@
49
49
  "@babel/preset-env": "7.16.4",
50
50
  "@babel/preset-react": "7.16.0",
51
51
  "@material-ui/core": "4.12.3",
52
- "@nebula.js/enigma-mocker": "^2.3.0",
53
- "@nebula.js/nucleus": "^2.3.0",
54
- "@nebula.js/snapshooter": "^2.3.0",
55
- "@nebula.js/stardust": "^2.3.0",
56
- "@nebula.js/ui": "^2.3.0",
52
+ "@nebula.js/enigma-mocker": "^2.3.1",
53
+ "@nebula.js/nucleus": "^2.3.1",
54
+ "@nebula.js/snapshooter": "^2.3.1",
55
+ "@nebula.js/stardust": "^2.3.1",
56
+ "@nebula.js/ui": "^2.3.1",
57
57
  "autosuggest-highlight": "3.2.0",
58
58
  "babel-loader": "8.2.3",
59
- "copy-webpack-plugin": "^10.0.0",
60
59
  "d3-require": "1.2.4",
61
60
  "enigma.js": "2.7.3",
62
61
  "eslint-import-resolver-alias": "1.1.2",
@@ -67,5 +66,5 @@
67
66
  "react-dom": "17.0.2",
68
67
  "webpack-cli": "4.9.1"
69
68
  },
70
- "gitHead": "db408ff3d6013a4558dbb9be24ae1188c1e78d44"
69
+ "gitHead": "2dbe30df1ecb7a89551892891474c1b46ab73977"
71
70
  }