@embeddable.com/sdk-core 3.10.0 → 3.10.2

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/lib/index.js CHANGED
@@ -24,6 +24,7 @@ var prompts = require('@inquirer/prompts');
24
24
  var http = require('node:http');
25
25
  var ws = require('ws');
26
26
  var chokidar = require('chokidar');
27
+ var fg = require('fast-glob');
27
28
  var promises = require('fs/promises');
28
29
 
29
30
  function _interopNamespaceDefault(e) {
@@ -21816,7 +21817,7 @@ var dev = async () => {
21816
21817
  await configureWatcher(watcher, config);
21817
21818
  watchers.push(watcher);
21818
21819
  }
21819
- const dataModelAndSecurityContextWatch = dataModelAndSecurityContextWatcher(config);
21820
+ const dataModelAndSecurityContextWatch = await dataModelAndSecurityContextWatcher(config);
21820
21821
  const customGlobalCssWatch = globalCssWatcher(config);
21821
21822
  watchers.push(dataModelAndSecurityContextWatch);
21822
21823
  watchers.push(customGlobalCssWatch);
@@ -21873,14 +21874,19 @@ const onBundleBuildEnd = async (ctx) => {
21873
21874
  sendMessage("componentsBuildSuccess");
21874
21875
  }
21875
21876
  };
21876
- const dataModelAndSecurityContextWatcher = (ctx) => {
21877
- const fsWatcher = chokidar__namespace.watch([
21878
- path__namespace$1.resolve(ctx.client.modelsSrc, "**/*.cube.{yaml,yml,js}"),
21879
- path__namespace$1.resolve(ctx.client.presetsSrc, "**/*.{sc,cc}.{yaml,yml}"),
21880
- ], chokidarWatchOptions);
21881
- fsWatcher.on("all", async () => {
21882
- await sendDataModelsAndContextsChanges(ctx);
21883
- });
21877
+ const dataModelAndSecurityContextWatcher = async (ctx) => {
21878
+ const [modelsFiles, presetsFiles] = await Promise.all([
21879
+ fg("**/*.cube.{yaml,yml,js}", {
21880
+ cwd: ctx.client.modelsSrc,
21881
+ absolute: true,
21882
+ }),
21883
+ fg("**/*.{sc,cc}.{yaml,yml}", {
21884
+ cwd: ctx.client.presetsSrc,
21885
+ absolute: true,
21886
+ }),
21887
+ ]);
21888
+ const fsWatcher = chokidar__namespace.watch([...modelsFiles, ...presetsFiles], chokidarWatchOptions);
21889
+ fsWatcher.on("all", () => sendDataModelsAndContextsChanges(ctx));
21884
21890
  return fsWatcher;
21885
21891
  };
21886
21892
  const globalCssWatcher = (ctx) => {
@@ -22021,7 +22027,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
22021
22027
  };
22022
22028
 
22023
22029
  var name = "@embeddable.com/sdk-core";
22024
- var version = "3.10.0";
22030
+ var version = "3.10.1";
22025
22031
  var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
22026
22032
  var keywords = [
22027
22033
  "embeddable",
@@ -22061,11 +22067,12 @@ var license = "MIT";
22061
22067
  var dependencies = {
22062
22068
  "@embeddable.com/sdk-utils": "*",
22063
22069
  "@inquirer/prompts": "^7.1.0",
22064
- "@stencil/core": "^4.22.2",
22070
+ "@stencil/core": "^4.22.3",
22065
22071
  "@swc-node/register": "^1.10.9",
22066
22072
  archiver: "^5.3.2",
22067
- axios: "^1.7.7",
22073
+ axios: "^1.7.8",
22068
22074
  chokidar: "^4.0.1",
22075
+ "fast-glob": "^3.3.2",
22069
22076
  finalhandler: "^1.3.1",
22070
22077
  "formdata-node": "^6.0.3",
22071
22078
  minimist: "^1.2.8",
@@ -22075,7 +22082,7 @@ var dependencies = {
22075
22082
  sorcery: "^0.11.1",
22076
22083
  vite: "^5.4.11",
22077
22084
  ws: "^8.18.0",
22078
- yaml: "^2.6.0"
22085
+ yaml: "^2.6.1"
22079
22086
  };
22080
22087
  var devDependencies = {
22081
22088
  "@types/archiver": "^5.3.4",