@squidcloud/cli 1.0.346 → 1.0.348
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/dist/index.js +5 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -1703,8 +1703,9 @@ module.exports = require("os");
|
|
1703
1703
|
"use strict";
|
1704
1704
|
|
1705
1705
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
1706
|
+
exports.KOTLIN_CONTROLLERS = void 0;
|
1706
1707
|
exports.getApplicationUrl = getApplicationUrl;
|
1707
|
-
|
1708
|
+
exports.KOTLIN_CONTROLLERS = [
|
1708
1709
|
'aiData',
|
1709
1710
|
'api',
|
1710
1711
|
'application',
|
@@ -1729,6 +1730,7 @@ const kotlinControllers = [
|
|
1729
1730
|
'webhooks',
|
1730
1731
|
'ws',
|
1731
1732
|
'personalStorage',
|
1733
|
+
'internal-extraction',
|
1732
1734
|
];
|
1733
1735
|
function getApplicationUrl(regionPrefix, appId, path) {
|
1734
1736
|
const baseUrl = 'https://squid.cloud';
|
@@ -1737,7 +1739,7 @@ function getApplicationUrl(regionPrefix, appId, path) {
|
|
1737
1739
|
const controller = path.replace(/^\//g, '').split('/')[0] || '';
|
1738
1740
|
if (isLocal(regionPrefix)) {
|
1739
1741
|
parsedBaseUrl.protocol = 'http';
|
1740
|
-
parsedBaseUrl.port =
|
1742
|
+
parsedBaseUrl.port = exports.KOTLIN_CONTROLLERS.includes(controller) ? '8001' : '8000';
|
1741
1743
|
if (isAndroid(regionPrefix)) {
|
1742
1744
|
parsedBaseUrl.host = '10.0.2.2';
|
1743
1745
|
}
|
@@ -22766,7 +22768,7 @@ function exitWithError(...messages) {
|
|
22766
22768
|
/***/ ((module) => {
|
22767
22769
|
|
22768
22770
|
"use strict";
|
22769
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.
|
22771
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.348","description":"The Squid CLI","main":"dist/index.js","scripts":{"start":"node dist/index.js","start-ts":"ts-node -r tsconfig-paths/register src/index.ts","prebuild":"rimraf dist","build":"webpack --mode=production","build:dev":"webpack --mode=development","build:prod":"webpack --mode=production","lint":"eslint","link":"npm run build && chmod 755 dist/index.js && npm link","watch":"webpack --watch","deploy":"npm run build && npm pack --silent | xargs -I {} mv {} package.tgz && npm install -g package.tgz && rm -rf package.tgz","publish:public":"npm run build && npm publish --access public"},"files":["dist/**/*"],"bin":{"squid":"dist/index.js"},"keywords":[],"author":"","license":"ISC","engines":{"node":">=18.0.0"},"dependencies":{"@squidcloud/local-backend":"^1.0.348","copy-webpack-plugin":"^12.0.2","decompress":"^4.2.1","nodemon":"^3.1.3","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.96.0","zip-webpack-plugin":"^4.0.1"},"devDependencies":{"@types/decompress":"^4.2.7","@types/node":"^20.16.10","terminal-link":"^3.0.0"}}');
|
22770
22772
|
|
22771
22773
|
/***/ }),
|
22772
22774
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squidcloud/cli",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.348",
|
4
4
|
"description": "The Squid CLI",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"node": ">=18.0.0"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@squidcloud/local-backend": "^1.0.
|
32
|
+
"@squidcloud/local-backend": "^1.0.348",
|
33
33
|
"copy-webpack-plugin": "^12.0.2",
|
34
34
|
"decompress": "^4.2.1",
|
35
35
|
"nodemon": "^3.1.3",
|