zmp-cli 3.5.2 → 3.5.3-3

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/build/index.js CHANGED
@@ -87,6 +87,7 @@ module.exports = async (options = {}, logger, { exitOnError = true } = {}) => {
87
87
  outDir: path.join(cwd, 'www'),
88
88
  assetsInlineLimit: 0,
89
89
  cssCodeSplit: false,
90
+ cssTarget: ['es2015', 'safari13.1'],
90
91
  rollupOptions: {
91
92
  plugins: [
92
93
  replace({
package/config/index.js CHANGED
@@ -39,7 +39,7 @@ module.exports = {
39
39
  request_timeout: 'Request Timeout',
40
40
  },
41
41
  resumable_option: {
42
- chunkSize: 10 * 1024,
42
+ chunkSize: 512 * 1000, // bytes -> 512kb/chunk
43
43
  simultaneousUploads: 4,
44
44
  testChunks: true,
45
45
  throttleProgressCallbacks: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-cli",
3
- "version": "3.5.2",
3
+ "version": "3.5.3-3",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -129,7 +129,7 @@
129
129
  </body>
130
130
 
131
131
  <script>
132
- fetch(`http://localhost:${window.location.port - 1}/app-config.json`)
132
+ fetch(`${window.location.protocol}//${window.location.hostname}:${window.location.port - 1}/app-config.json`)
133
133
  .then(response => response.json())
134
134
  .then(data => {
135
135
  if (data.app.title) {
@@ -149,7 +149,7 @@
149
149
  });
150
150
  const iframe = document.createElement('iframe');
151
151
  iframe.id = 'zalo-frame'
152
- iframe.src = `http://localhost:${window.location.port - 1}`
152
+ iframe.src = `${window.location.protocol}//${window.location.hostname}:${window.location.port - 1}`
153
153
  document.body.firstElementChild.appendChild(iframe);
154
154
  </script>
155
155