@embeddable.com/sdk-react 0.0.12 → 0.0.13

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.
@@ -1,13 +1,13 @@
1
1
 
2
- > @embeddable.com/sdk-react@0.0.12 build
2
+ > @embeddable.com/sdk-react@0.0.13 build
3
3
  > rollup -c
4
4
 
5
- (node:1869) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
5
+ (node:1876) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
6
6
  (Use `node --trace-warnings ...` to show where the warning was created)
7
- (node:1869) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
7
+ (node:1876) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
8
8
  
9
9
  ./src/index.ts → lib/index.umd.js...
10
- created lib/index.umd.js in 2.3s
10
+ created lib/index.umd.js in 2.8s
11
11
  
12
12
  ./src/index.ts → lib/index.cjs.js, lib/index.esm.js...
13
- created lib/index.cjs.js, lib/index.esm.js in 1.4s
13
+ created lib/index.cjs.js, lib/index.esm.js in 1.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @embeddable.com/sdk-react
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 1137dbd: Fix import.
8
+
3
9
  ## 0.0.12
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-react",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Embeddable SDK React plugin/module responsible for React components bundling.",
5
5
  "keywords": [
6
6
  "embeddable",
package/scripts/build.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const path = require("path");
2
2
  const { fork } = require('child_process');
3
+ const oraP = import('ora');
3
4
 
4
5
  const {createContext} = require("./createContext");
5
6
  const {prepare} = require("./prepare");
@@ -12,9 +13,9 @@ const generateFork = fork(
12
13
  );
13
14
 
14
15
  async function build() {
15
- const ora = await import('ora');
16
+ const ora = (await oraP).default;
16
17
 
17
- const spinnerPrepare = ora.default("preparing...").start();
18
+ const spinnerPrepare = ora("preparing...").start();
18
19
 
19
20
  const ctx = createContext(path.resolve(__dirname, '..'), process.cwd());
20
21
 
@@ -22,7 +23,7 @@ async function build() {
22
23
  await prepare(ctx);
23
24
  spinnerPrepare.succeed("preparation competed");
24
25
 
25
- const spinnerBuild = ora.default("building...").start();
26
+ const spinnerBuild = ora("building...").start();
26
27
 
27
28
  generateFork.send({ ctx });
28
29
 
@@ -37,7 +38,7 @@ module.exports = { build };
37
38
 
38
39
  // TODO: later we will validate configs e.g. yaml files with this function.
39
40
  function validationEmulation() {
40
- return new Promise((res, rej) => {
41
+ return new Promise((res, _rej) => {
41
42
  setTimeout(res, 4000);
42
43
  })
43
44
  }