@salla.sa/twilight 2.0.286 → 2.0.288

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight",
3
- "version": "2.0.286",
3
+ "version": "2.0.288",
4
4
  "description": "Salla Theme Toolkit, Webcomponents, Events, Requests, Utils",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -34,8 +34,8 @@
34
34
  "homepage": "https://salla.dev",
35
35
  "dependencies": {
36
36
  "@salla.sa/applepay": "~1.0",
37
- "axios": "^0.26.1",
38
- "eventemitter2": "^6.4.5",
37
+ "axios": "^0.27.2",
38
+ "eventemitter2": "^6.4.6",
39
39
  "infinite-scroll": "^4.0.1",
40
40
  "jwt-decode": "^3.1.2",
41
41
  "lang.js": "^1.1.14",
@@ -43,21 +43,21 @@
43
43
  "websocket": "^1.0.34"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/core": "^7.17.7",
47
- "@babel/preset-env": "^7.16.11",
46
+ "@babel/core": "^7.18.6",
47
+ "@babel/preset-env": "^7.18.6",
48
48
  "@rollup/plugin-babel": "^5.3.1",
49
- "@rollup/plugin-commonjs": "^21.0.2",
49
+ "@rollup/plugin-commonjs": "^22.0.1",
50
50
  "@rollup/plugin-node-resolve": "^13.1.3",
51
- "babel-loader": "^8.2.3",
52
- "glob": "^7.2.0",
53
- "rollup": "^2.70.1",
51
+ "babel-loader": "^8.2.5",
52
+ "glob": "^8.0.3",
53
+ "rollup": "^2.75.7",
54
54
  "rollup-plugin-cleaner": "^1.0.0",
55
55
  "rollup-plugin-json": "^4.0.0",
56
56
  "rollup-plugin-node-resolve": "^5.2.0",
57
57
  "rollup-plugin-terser": "^7.0.2",
58
- "webpack": "^5.64.2",
58
+ "webpack": "^5.73.0",
59
59
  "webpack-build-notifier": "^2.3.0",
60
- "webpack-cli": "^4.9.1"
60
+ "webpack-cli": "^4.10.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "webpack": "^4 || ^5"
Binary file
Binary file
package/watcher.js CHANGED
@@ -52,10 +52,14 @@ const WebSocketClient = require('websocket').client;
52
52
  */
53
53
  class WatcherPlugin {
54
54
  constructor(params) {
55
- let {port = 8000, theme_id, cli = "salla"} = params || {};
55
+
56
+ let {port = 8000, sallaCli = "salla", theme_id, upload_url, store_id, draft_id} = params || {};
56
57
 
57
- this.sallaCli = cli;
58
+ this.sallaCli = sallaCli;
58
59
  this.theme_id = theme_id;
60
+ this.upload_url = upload_url;
61
+ this.store_id = store_id;
62
+ this.draft_id = draft_id;
59
63
 
60
64
  let client = new WebSocketClient();
61
65
 
@@ -99,7 +103,7 @@ class WatcherPlugin {
99
103
 
100
104
  files.map((file)=>{
101
105
  if(file.toLowerCase().endsWith('.twig'))
102
- execSync(`${this.sallaCli} theme sync -f "${file}" -id ${this.theme_id}`, {stdio: 'inherit'});
106
+ execSync(`${this.sallaCli} theme sync -f "${file}" -id ${this.theme_id} -store_id=${this.store_id} -draft_id=${this.draft_id} -upload_url=${this.upload_url}`, {stdio: 'inherit'});
103
107
 
104
108
  if(this.connection) this.connection.sendUTF(JSON.stringify({msg:"reload"}));
105
109
  });