@wix/cli-app 1.1.89 → 1.1.90

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.
Files changed (80) hide show
  1. package/build/{AddPermissionCommand-2YPAU7OW.js → AddPermissionCommand-XY4GGAKI.js} +2 -2
  2. package/build/{CreateVersionCommand-PRWTINI7.js → CreateVersionCommand-AFO6QZ3K.js} +3 -3
  3. package/build/{DevCommand-QZJYRWL6.js → DevCommand-LMH2ZEYS.js} +114 -11
  4. package/build/DevCommand-LMH2ZEYS.js.map +1 -0
  5. package/build/{GenerateCommand-RUUOZIHZ.js → GenerateCommand-3CK2O4L6.js} +7 -7
  6. package/build/{LogsCommand-CYDOEGLP.js → LogsCommand-T2OR2ZNI.js} +3 -3
  7. package/build/PreviewCommand-GKWGXWGO.js +19 -0
  8. package/build/ReleaseCommand-VRSGVCA5.js +28 -0
  9. package/build/{ServeCommand-7NSOPNJF.js → ServeCommand-RPXEURIC.js} +3 -3
  10. package/build/{build-73EP4WHX.js → build-R24UOFVB.js} +6 -6
  11. package/build/{chunk-OGZPS3MG.js → chunk-3C7IDKDV.js} +2 -2
  12. package/build/{chunk-2HDS4ZWR.js → chunk-AGCEJPNC.js} +2 -2
  13. package/build/{chunk-6WCP2JAM.js → chunk-AWOS3TAC.js} +158 -3
  14. package/build/{chunk-6WCP2JAM.js.map → chunk-AWOS3TAC.js.map} +1 -1
  15. package/build/{chunk-MO5LBUBH.js → chunk-BFYHGTJS.js} +3 -3
  16. package/build/{chunk-4NGBBEXE.js → chunk-CNLLDB7V.js} +6 -6
  17. package/build/{chunk-EUMKSOWX.js → chunk-DT5SDTRI.js} +4 -4
  18. package/build/{chunk-AYJSLRDQ.js → chunk-EYJO2C25.js} +4 -4
  19. package/build/{chunk-IJMHSG3L.js → chunk-G2EJCOG4.js} +2 -2
  20. package/build/{chunk-JNBDGVOZ.js → chunk-HUQZJ7BP.js} +2 -2
  21. package/build/{chunk-BWPO4SRH.js → chunk-K3B5VWLJ.js} +2 -2
  22. package/build/{chunk-ZEMJL4BF.js → chunk-M7GDC5QO.js} +2 -2
  23. package/build/{chunk-2VVRDZWE.js → chunk-MAYXQQ44.js} +6 -6
  24. package/build/{chunk-3JZI5Z2Q.js → chunk-S3RIMPQQ.js} +443 -12
  25. package/build/{chunk-3JZI5Z2Q.js.map → chunk-S3RIMPQQ.js.map} +1 -1
  26. package/build/{chunk-QMEDSKG3.js → chunk-UUZAWTTZ.js} +2 -2
  27. package/build/{chunk-KLJCH3V7.js → chunk-YB5ZT6ZJ.js} +2 -2
  28. package/build/{chunk-2SU57F7I.js → chunk-YBZ4LUI2.js} +13 -7
  29. package/build/{chunk-2SU57F7I.js.map → chunk-YBZ4LUI2.js.map} +1 -1
  30. package/build/{chunk-H36QZENX.js → chunk-ZZSRD3XC.js} +5 -3
  31. package/build/{chunk-H36QZENX.js.map → chunk-ZZSRD3XC.js.map} +1 -1
  32. package/build/cloudflare-runtime/entry.js +1 -1
  33. package/build/cloudflare-runtime/getRegisteredExtensions.js +1 -1
  34. package/build/index.js +25 -25
  35. package/build/platform-sdk/chunk-BGTZ3RNN.js +2 -0
  36. package/build/platform-sdk/chunk-BGTZ3RNN.js.map +1 -0
  37. package/build/platform-sdk/chunk-LPGY6RYR.js +2 -0
  38. package/build/platform-sdk/chunk-LPGY6RYR.js.map +1 -0
  39. package/build/platform-sdk/{chunk-3WHQP2RD.js → chunk-MM2KVUBI.js} +2 -2
  40. package/build/platform-sdk/dashboard.js +1 -1
  41. package/build/platform-sdk/editor.js +1 -1
  42. package/build/platform-sdk/sdk-context.js +1 -1
  43. package/build/platform-sdk/sdk-context.js.map +1 -1
  44. package/build/platform-sdk/site.js +1 -1
  45. package/build/{preview-QRW2EM5P.js → preview-MQRVT6F3.js} +12 -12
  46. package/build/{release-MGYPKXX3.js → release-BVT34U5G.js} +14 -14
  47. package/build/{render-command-V2CJCT3J.js → render-command-I7TJW3BF.js} +5 -5
  48. package/package.json +2 -2
  49. package/build/DevCommand-QZJYRWL6.js.map +0 -1
  50. package/build/PreviewCommand-QHWB6EJY.js +0 -19
  51. package/build/ReleaseCommand-UU3NTHNH.js +0 -28
  52. package/build/platform-sdk/chunk-42XIZ4MH.js +0 -2
  53. package/build/platform-sdk/chunk-42XIZ4MH.js.map +0 -1
  54. package/build/platform-sdk/chunk-7LWEMZNS.js +0 -2
  55. package/build/platform-sdk/chunk-7LWEMZNS.js.map +0 -1
  56. /package/build/{AddPermissionCommand-2YPAU7OW.js.map → AddPermissionCommand-XY4GGAKI.js.map} +0 -0
  57. /package/build/{CreateVersionCommand-PRWTINI7.js.map → CreateVersionCommand-AFO6QZ3K.js.map} +0 -0
  58. /package/build/{GenerateCommand-RUUOZIHZ.js.map → GenerateCommand-3CK2O4L6.js.map} +0 -0
  59. /package/build/{LogsCommand-CYDOEGLP.js.map → LogsCommand-T2OR2ZNI.js.map} +0 -0
  60. /package/build/{PreviewCommand-QHWB6EJY.js.map → PreviewCommand-GKWGXWGO.js.map} +0 -0
  61. /package/build/{ReleaseCommand-UU3NTHNH.js.map → ReleaseCommand-VRSGVCA5.js.map} +0 -0
  62. /package/build/{ServeCommand-7NSOPNJF.js.map → ServeCommand-RPXEURIC.js.map} +0 -0
  63. /package/build/{build-73EP4WHX.js.map → build-R24UOFVB.js.map} +0 -0
  64. /package/build/{chunk-OGZPS3MG.js.map → chunk-3C7IDKDV.js.map} +0 -0
  65. /package/build/{chunk-2HDS4ZWR.js.map → chunk-AGCEJPNC.js.map} +0 -0
  66. /package/build/{chunk-MO5LBUBH.js.map → chunk-BFYHGTJS.js.map} +0 -0
  67. /package/build/{chunk-4NGBBEXE.js.map → chunk-CNLLDB7V.js.map} +0 -0
  68. /package/build/{chunk-EUMKSOWX.js.map → chunk-DT5SDTRI.js.map} +0 -0
  69. /package/build/{chunk-AYJSLRDQ.js.map → chunk-EYJO2C25.js.map} +0 -0
  70. /package/build/{chunk-IJMHSG3L.js.map → chunk-G2EJCOG4.js.map} +0 -0
  71. /package/build/{chunk-JNBDGVOZ.js.map → chunk-HUQZJ7BP.js.map} +0 -0
  72. /package/build/{chunk-BWPO4SRH.js.map → chunk-K3B5VWLJ.js.map} +0 -0
  73. /package/build/{chunk-ZEMJL4BF.js.map → chunk-M7GDC5QO.js.map} +0 -0
  74. /package/build/{chunk-2VVRDZWE.js.map → chunk-MAYXQQ44.js.map} +0 -0
  75. /package/build/{chunk-QMEDSKG3.js.map → chunk-UUZAWTTZ.js.map} +0 -0
  76. /package/build/{chunk-KLJCH3V7.js.map → chunk-YB5ZT6ZJ.js.map} +0 -0
  77. /package/build/platform-sdk/{chunk-3WHQP2RD.js.map → chunk-MM2KVUBI.js.map} +0 -0
  78. /package/build/{preview-QRW2EM5P.js.map → preview-MQRVT6F3.js.map} +0 -0
  79. /package/build/{release-MGYPKXX3.js.map → release-BVT34U5G.js.map} +0 -0
  80. /package/build/{render-command-V2CJCT3J.js.map → render-command-I7TJW3BF.js.map} +0 -0
@@ -1864,6 +1864,343 @@ var require_verror = __commonJS({
1864
1864
  }
1865
1865
  });
1866
1866
 
1867
+ // ../../node_modules/dotenv/package.json
1868
+ var require_package = __commonJS({
1869
+ "../../node_modules/dotenv/package.json"(exports, module2) {
1870
+ module2.exports = {
1871
+ name: "dotenv",
1872
+ version: "16.5.0",
1873
+ description: "Loads environment variables from .env file",
1874
+ main: "lib/main.js",
1875
+ types: "lib/main.d.ts",
1876
+ exports: {
1877
+ ".": {
1878
+ types: "./lib/main.d.ts",
1879
+ require: "./lib/main.js",
1880
+ default: "./lib/main.js"
1881
+ },
1882
+ "./config": "./config.js",
1883
+ "./config.js": "./config.js",
1884
+ "./lib/env-options": "./lib/env-options.js",
1885
+ "./lib/env-options.js": "./lib/env-options.js",
1886
+ "./lib/cli-options": "./lib/cli-options.js",
1887
+ "./lib/cli-options.js": "./lib/cli-options.js",
1888
+ "./package.json": "./package.json"
1889
+ },
1890
+ scripts: {
1891
+ "dts-check": "tsc --project tests/types/tsconfig.json",
1892
+ lint: "standard",
1893
+ pretest: "npm run lint && npm run dts-check",
1894
+ test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
1895
+ "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
1896
+ prerelease: "npm test",
1897
+ release: "standard-version"
1898
+ },
1899
+ repository: {
1900
+ type: "git",
1901
+ url: "git://github.com/motdotla/dotenv.git"
1902
+ },
1903
+ homepage: "https://github.com/motdotla/dotenv#readme",
1904
+ funding: "https://dotenvx.com",
1905
+ keywords: [
1906
+ "dotenv",
1907
+ "env",
1908
+ ".env",
1909
+ "environment",
1910
+ "variables",
1911
+ "config",
1912
+ "settings"
1913
+ ],
1914
+ readmeFilename: "README.md",
1915
+ license: "BSD-2-Clause",
1916
+ devDependencies: {
1917
+ "@types/node": "^18.11.3",
1918
+ decache: "^4.6.2",
1919
+ sinon: "^14.0.1",
1920
+ standard: "^17.0.0",
1921
+ "standard-version": "^9.5.0",
1922
+ tap: "^19.2.0",
1923
+ typescript: "^4.8.4"
1924
+ },
1925
+ engines: {
1926
+ node: ">=12"
1927
+ },
1928
+ browser: {
1929
+ fs: false
1930
+ }
1931
+ };
1932
+ }
1933
+ });
1934
+
1935
+ // ../../node_modules/dotenv/lib/main.js
1936
+ var require_main = __commonJS({
1937
+ "../../node_modules/dotenv/lib/main.js"(exports, module2) {
1938
+ "use strict";
1939
+ init_esm_shims();
1940
+ var fs11 = __require("fs");
1941
+ var path5 = __require("path");
1942
+ var os3 = __require("os");
1943
+ var crypto = __require("crypto");
1944
+ var packageJson = require_package();
1945
+ var version = packageJson.version;
1946
+ var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
1947
+ function parse6(src) {
1948
+ const obj = {};
1949
+ let lines = src.toString();
1950
+ lines = lines.replace(/\r\n?/mg, "\n");
1951
+ let match15;
1952
+ while ((match15 = LINE.exec(lines)) != null) {
1953
+ const key = match15[1];
1954
+ let value2 = match15[2] || "";
1955
+ value2 = value2.trim();
1956
+ const maybeQuote = value2[0];
1957
+ value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
1958
+ if (maybeQuote === '"') {
1959
+ value2 = value2.replace(/\\n/g, "\n");
1960
+ value2 = value2.replace(/\\r/g, "\r");
1961
+ }
1962
+ obj[key] = value2;
1963
+ }
1964
+ return obj;
1965
+ }
1966
+ function _parseVault(options) {
1967
+ const vaultPath = _vaultPath(options);
1968
+ const result = DotenvModule.configDotenv({ path: vaultPath });
1969
+ if (!result.parsed) {
1970
+ const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
1971
+ err.code = "MISSING_DATA";
1972
+ throw err;
1973
+ }
1974
+ const keys2 = _dotenvKey(options).split(",");
1975
+ const length = keys2.length;
1976
+ let decrypted;
1977
+ for (let i2 = 0; i2 < length; i2++) {
1978
+ try {
1979
+ const key = keys2[i2].trim();
1980
+ const attrs = _instructions(result, key);
1981
+ decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
1982
+ break;
1983
+ } catch (error) {
1984
+ if (i2 + 1 >= length) {
1985
+ throw error;
1986
+ }
1987
+ }
1988
+ }
1989
+ return DotenvModule.parse(decrypted);
1990
+ }
1991
+ function _warn(message) {
1992
+ console.log(`[dotenv@${version}][WARN] ${message}`);
1993
+ }
1994
+ function _debug(message) {
1995
+ console.log(`[dotenv@${version}][DEBUG] ${message}`);
1996
+ }
1997
+ function _dotenvKey(options) {
1998
+ if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
1999
+ return options.DOTENV_KEY;
2000
+ }
2001
+ if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
2002
+ return process.env.DOTENV_KEY;
2003
+ }
2004
+ return "";
2005
+ }
2006
+ function _instructions(result, dotenvKey) {
2007
+ let uri;
2008
+ try {
2009
+ uri = new URL(dotenvKey);
2010
+ } catch (error) {
2011
+ if (error.code === "ERR_INVALID_URL") {
2012
+ const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
2013
+ err.code = "INVALID_DOTENV_KEY";
2014
+ throw err;
2015
+ }
2016
+ throw error;
2017
+ }
2018
+ const key = uri.password;
2019
+ if (!key) {
2020
+ const err = new Error("INVALID_DOTENV_KEY: Missing key part");
2021
+ err.code = "INVALID_DOTENV_KEY";
2022
+ throw err;
2023
+ }
2024
+ const environment = uri.searchParams.get("environment");
2025
+ if (!environment) {
2026
+ const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
2027
+ err.code = "INVALID_DOTENV_KEY";
2028
+ throw err;
2029
+ }
2030
+ const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
2031
+ const ciphertext = result.parsed[environmentKey];
2032
+ if (!ciphertext) {
2033
+ const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
2034
+ err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
2035
+ throw err;
2036
+ }
2037
+ return { ciphertext, key };
2038
+ }
2039
+ function _vaultPath(options) {
2040
+ let possibleVaultPath = null;
2041
+ if (options && options.path && options.path.length > 0) {
2042
+ if (Array.isArray(options.path)) {
2043
+ for (const filepath of options.path) {
2044
+ if (fs11.existsSync(filepath)) {
2045
+ possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
2046
+ }
2047
+ }
2048
+ } else {
2049
+ possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
2050
+ }
2051
+ } else {
2052
+ possibleVaultPath = path5.resolve(process.cwd(), ".env.vault");
2053
+ }
2054
+ if (fs11.existsSync(possibleVaultPath)) {
2055
+ return possibleVaultPath;
2056
+ }
2057
+ return null;
2058
+ }
2059
+ function _resolveHome(envPath) {
2060
+ return envPath[0] === "~" ? path5.join(os3.homedir(), envPath.slice(1)) : envPath;
2061
+ }
2062
+ function _configVault(options) {
2063
+ const debug = Boolean(options && options.debug);
2064
+ if (debug) {
2065
+ _debug("Loading env from encrypted .env.vault");
2066
+ }
2067
+ const parsed = DotenvModule._parseVault(options);
2068
+ let processEnv = process.env;
2069
+ if (options && options.processEnv != null) {
2070
+ processEnv = options.processEnv;
2071
+ }
2072
+ DotenvModule.populate(processEnv, parsed, options);
2073
+ return { parsed };
2074
+ }
2075
+ function configDotenv(options) {
2076
+ const dotenvPath = path5.resolve(process.cwd(), ".env");
2077
+ let encoding = "utf8";
2078
+ const debug = Boolean(options && options.debug);
2079
+ if (options && options.encoding) {
2080
+ encoding = options.encoding;
2081
+ } else {
2082
+ if (debug) {
2083
+ _debug("No encoding is specified. UTF-8 is used by default");
2084
+ }
2085
+ }
2086
+ let optionPaths = [dotenvPath];
2087
+ if (options && options.path) {
2088
+ if (!Array.isArray(options.path)) {
2089
+ optionPaths = [_resolveHome(options.path)];
2090
+ } else {
2091
+ optionPaths = [];
2092
+ for (const filepath of options.path) {
2093
+ optionPaths.push(_resolveHome(filepath));
2094
+ }
2095
+ }
2096
+ }
2097
+ let lastError;
2098
+ const parsedAll = {};
2099
+ for (const path6 of optionPaths) {
2100
+ try {
2101
+ const parsed = DotenvModule.parse(fs11.readFileSync(path6, { encoding }));
2102
+ DotenvModule.populate(parsedAll, parsed, options);
2103
+ } catch (e2) {
2104
+ if (debug) {
2105
+ _debug(`Failed to load ${path6} ${e2.message}`);
2106
+ }
2107
+ lastError = e2;
2108
+ }
2109
+ }
2110
+ let processEnv = process.env;
2111
+ if (options && options.processEnv != null) {
2112
+ processEnv = options.processEnv;
2113
+ }
2114
+ DotenvModule.populate(processEnv, parsedAll, options);
2115
+ if (lastError) {
2116
+ return { parsed: parsedAll, error: lastError };
2117
+ } else {
2118
+ return { parsed: parsedAll };
2119
+ }
2120
+ }
2121
+ function config(options) {
2122
+ if (_dotenvKey(options).length === 0) {
2123
+ return DotenvModule.configDotenv(options);
2124
+ }
2125
+ const vaultPath = _vaultPath(options);
2126
+ if (!vaultPath) {
2127
+ _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
2128
+ return DotenvModule.configDotenv(options);
2129
+ }
2130
+ return DotenvModule._configVault(options);
2131
+ }
2132
+ function decrypt(encrypted, keyStr) {
2133
+ const key = Buffer.from(keyStr.slice(-64), "hex");
2134
+ let ciphertext = Buffer.from(encrypted, "base64");
2135
+ const nonce = ciphertext.subarray(0, 12);
2136
+ const authTag = ciphertext.subarray(-16);
2137
+ ciphertext = ciphertext.subarray(12, -16);
2138
+ try {
2139
+ const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
2140
+ aesgcm.setAuthTag(authTag);
2141
+ return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
2142
+ } catch (error) {
2143
+ const isRange = error instanceof RangeError;
2144
+ const invalidKeyLength = error.message === "Invalid key length";
2145
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
2146
+ if (isRange || invalidKeyLength) {
2147
+ const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
2148
+ err.code = "INVALID_DOTENV_KEY";
2149
+ throw err;
2150
+ } else if (decryptionFailed) {
2151
+ const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
2152
+ err.code = "DECRYPTION_FAILED";
2153
+ throw err;
2154
+ } else {
2155
+ throw error;
2156
+ }
2157
+ }
2158
+ }
2159
+ function populate(processEnv, parsed, options = {}) {
2160
+ const debug = Boolean(options && options.debug);
2161
+ const override = Boolean(options && options.override);
2162
+ if (typeof parsed !== "object") {
2163
+ const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
2164
+ err.code = "OBJECT_REQUIRED";
2165
+ throw err;
2166
+ }
2167
+ for (const key of Object.keys(parsed)) {
2168
+ if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
2169
+ if (override === true) {
2170
+ processEnv[key] = parsed[key];
2171
+ }
2172
+ if (debug) {
2173
+ if (override === true) {
2174
+ _debug(`"${key}" is already defined and WAS overwritten`);
2175
+ } else {
2176
+ _debug(`"${key}" is already defined and was NOT overwritten`);
2177
+ }
2178
+ }
2179
+ } else {
2180
+ processEnv[key] = parsed[key];
2181
+ }
2182
+ }
2183
+ }
2184
+ var DotenvModule = {
2185
+ configDotenv,
2186
+ _configVault,
2187
+ _parseVault,
2188
+ config,
2189
+ decrypt,
2190
+ parse: parse6,
2191
+ populate
2192
+ };
2193
+ module2.exports.configDotenv = DotenvModule.configDotenv;
2194
+ module2.exports._configVault = DotenvModule._configVault;
2195
+ module2.exports._parseVault = DotenvModule._parseVault;
2196
+ module2.exports.config = DotenvModule.config;
2197
+ module2.exports.decrypt = DotenvModule.decrypt;
2198
+ module2.exports.parse = DotenvModule.parse;
2199
+ module2.exports.populate = DotenvModule.populate;
2200
+ module2.exports = DotenvModule;
2201
+ }
2202
+ });
2203
+
1867
2204
  // ../../node_modules/lodash/isObject.js
1868
2205
  var require_isObject = __commonJS({
1869
2206
  "../../node_modules/lodash/isObject.js"(exports, module2) {
@@ -13711,7 +14048,7 @@ var require_follow_redirects = __commonJS({
13711
14048
  });
13712
14049
 
13713
14050
  // ../../node_modules/axios/package.json
13714
- var require_package = __commonJS({
14051
+ var require_package2 = __commonJS({
13715
14052
  "../../node_modules/axios/package.json"(exports, module2) {
13716
14053
  module2.exports = {
13717
14054
  name: "axios",
@@ -13815,7 +14152,7 @@ var require_http = __commonJS({
13815
14152
  var httpsFollow = require_follow_redirects().https;
13816
14153
  var url = __require("url");
13817
14154
  var zlib = __require("zlib");
13818
- var pkg = require_package();
14155
+ var pkg = require_package2();
13819
14156
  var createError = require_createError();
13820
14157
  var enhanceError = require_enhanceError();
13821
14158
  var isHttps = /https:?/;
@@ -14685,7 +15022,7 @@ var require_validator = __commonJS({
14685
15022
  "../../node_modules/axios/lib/helpers/validator.js"(exports, module2) {
14686
15023
  "use strict";
14687
15024
  init_esm_shims();
14688
- var pkg = require_package();
15025
+ var pkg = require_package2();
14689
15026
  var validators = {};
14690
15027
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i2) {
14691
15028
  validators[type] = function validator(thing) {
@@ -68127,7 +68464,7 @@ ${" ".repeat(indentSize)}`);
68127
68464
  exports2.default = ConfigError;
68128
68465
  }
68129
68466
  });
68130
- var require_package2 = __commonJS2({
68467
+ var require_package3 = __commonJS2({
68131
68468
  "../../node_modules/@babel/core/lib/config/files/package.js"(exports2) {
68132
68469
  "use strict";
68133
68470
  Object.defineProperty(exports2, "__esModule", {
@@ -86459,7 +86796,7 @@ to your top-level package.json.
86459
86796
  return _configuration.resolveShowConfigPath;
86460
86797
  }
86461
86798
  });
86462
- var _package = require_package2();
86799
+ var _package = require_package3();
86463
86800
  var _configuration = require_configuration();
86464
86801
  var _plugins = require_plugins4();
86465
86802
  }
@@ -87192,7 +87529,7 @@ to your top-level package.json.
87192
87529
  exports2["default"] = componentNameAnnotatePlugin;
87193
87530
  }
87194
87531
  });
87195
- var require_package3 = __commonJS2({
87532
+ var require_package32 = __commonJS2({
87196
87533
  "../../node_modules/@sentry/cli/package.json"(exports2, module22) {
87197
87534
  module22.exports = {
87198
87535
  name: "@sentry/cli",
@@ -87811,7 +88148,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
87811
88148
  var require_js = __commonJS2({
87812
88149
  "../../node_modules/@sentry/cli/js/index.js"(exports2, module22) {
87813
88150
  "use strict";
87814
- var pkgInfo = require_package3();
88151
+ var pkgInfo = require_package32();
87815
88152
  var helper = require_helper();
87816
88153
  var Releases = require_releases();
87817
88154
  var SentryCli = class {
@@ -112814,7 +113151,7 @@ Did you specify these with the most recent transformation maps first?`);
112814
113151
  };
112815
113152
  }
112816
113153
  });
112817
- var require_main = __commonJS2({
113154
+ var require_main2 = __commonJS2({
112818
113155
  "../../node_modules/dotenv/lib/main.js"(exports2, module22) {
112819
113156
  "use strict";
112820
113157
  var fs11 = __require("fs");
@@ -113396,7 +113733,7 @@ Did you specify these with the most recent transformation maps first?`);
113396
113733
  var MagicString = require_magic_string_cjs();
113397
113734
  var path5 = __require("path");
113398
113735
  var unplugin = require_dist();
113399
- var dotenv = require_main();
113736
+ var dotenv2 = require_main2();
113400
113737
  var os3 = __require("os");
113401
113738
  var findUp = require_find_up();
113402
113739
  var crypto = __require("crypto");
@@ -113434,7 +113771,7 @@ Did you specify these with the most recent transformation maps first?`);
113434
113771
  var MagicString__default = /* @__PURE__ */ _interopDefaultLegacy(MagicString);
113435
113772
  var path__default = /* @__PURE__ */ _interopDefaultLegacy(path5);
113436
113773
  var path__namespace = /* @__PURE__ */ _interopNamespace(path5);
113437
- var dotenv__namespace = /* @__PURE__ */ _interopNamespace(dotenv);
113774
+ var dotenv__namespace = /* @__PURE__ */ _interopNamespace(dotenv2);
113438
113775
  var os__default = /* @__PURE__ */ _interopDefaultLegacy(os3);
113439
113776
  var os__namespace = /* @__PURE__ */ _interopNamespace(os3);
113440
113777
  var findUp__default = /* @__PURE__ */ _interopDefaultLegacy(findUp);
@@ -139201,7 +139538,7 @@ var require_chokidar = __commonJS({
139201
139538
  var package_default = {
139202
139539
  name: "@wix/cli-app",
139203
139540
  description: "CLI tool for Wix apps",
139204
- version: "1.1.89",
139541
+ version: "1.1.90",
139205
139542
  author: "Amit Dahan",
139206
139543
  dependencies: {
139207
139544
  esbuild: "^0.21.3",
@@ -139406,6 +139743,7 @@ var CliSystemErrorCode = (0, import_variant.variant)({
139406
139743
  FailedToWriteCache: (0, import_variant.fields)(),
139407
139744
  UploadApplicationFailed: {},
139408
139745
  FailedToCreateDevCenterApp: {},
139746
+ FailedToCreateDevCenterOAuthApp: {},
139409
139747
  FailedToAddPermission: {},
139410
139748
  FailedToGetPlacements: {},
139411
139749
  FailedToGetAppSecret: {},
@@ -139432,6 +139770,7 @@ var CliSystemErrorCode = (0, import_variant.variant)({
139432
139770
  FailedToGetUserInfo: {},
139433
139771
  FailedToGetMyAccount: {},
139434
139772
  FailedToCreateDevelopmentSite: {},
139773
+ FailedToCreateMetaSiteFromTemplate: {},
139435
139774
  FailedToGetDevelopmentSites: {},
139436
139775
  FailedToGetDevelopmentSitesLimit: {},
139437
139776
  FailedToGetRequiredApps: {},
@@ -139473,6 +139812,7 @@ var CliSystemErrorCode = (0, import_variant.variant)({
139473
139812
  FailedToQueryCliAppTemplates: {},
139474
139813
  FailedToCreateDevCenterAppFromTemplate: {},
139475
139814
  FailedToGetSiteInstalledApps: {},
139815
+ FailedToGetSiteInstalledAppInstanceId: {},
139476
139816
  FailedToGetClientSpecMap: {},
139477
139817
  FailedToCreateVeloApp: {},
139478
139818
  FailedToUpdateVeloAppFiles: {},
@@ -139494,6 +139834,7 @@ var CliSystemErrorCode = (0, import_variant.variant)({
139494
139834
  FailedToSetEnvironmentVariable: {},
139495
139835
  FailedToRemoveEnvironmentVariable: {},
139496
139836
  FailedToUploadStaticFiles: {},
139837
+ FailedCreatingAppProject: {},
139497
139838
  FailedCreatingAppDeployment: {},
139498
139839
  FailedFinalizingAppDeployment: {}
139499
139840
  });
@@ -139654,6 +139995,7 @@ import {
139654
139995
  } from "node:fs/promises";
139655
139996
  import { dirname, join, relative } from "node:path";
139656
139997
  import { EOL } from "node:os";
139998
+ var import_dotenv = __toESM(require_main(), 1);
139657
139999
 
139658
140000
  // ../cli-fs/src/schemas.ts
139659
140001
  init_esm_shims();
@@ -157775,6 +158117,9 @@ function getErrorComponent(code, cause) {
157775
158117
  FailedToCreateDevCenterApp: () => {
157776
158118
  return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to register your application in Wix" });
157777
158119
  },
158120
+ FailedToCreateDevCenterOAuthApp: () => {
158121
+ return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to register your oauth application in Wix" });
158122
+ },
157778
158123
  FailedToAddPermission: () => {
157779
158124
  return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to add permission" });
157780
158125
  },
@@ -158189,6 +158534,9 @@ function getErrorComponent(code, cause) {
158189
158534
  FailedToCreateDevelopmentSite: () => {
158190
158535
  return () => /* @__PURE__ */ import_react84.default.createElement(ErrorMessage, { message: "Failed to create a Development Site" });
158191
158536
  },
158537
+ FailedToCreateMetaSiteFromTemplate: () => {
158538
+ return () => /* @__PURE__ */ import_react84.default.createElement(ErrorMessage, { message: "Failed to create a metasite from template" });
158539
+ },
158192
158540
  FailedToGetDevelopmentSites: () => {
158193
158541
  return () => /* @__PURE__ */ import_react84.default.createElement(ErrorMessage, { message: "Failed to request development sites." });
158194
158542
  },
@@ -158601,6 +158949,9 @@ function getErrorComponent(code, cause) {
158601
158949
  FailedToGetSiteInstalledApps: () => {
158602
158950
  return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to get site installed apps" });
158603
158951
  },
158952
+ FailedToGetSiteInstalledAppInstanceId: () => {
158953
+ return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to get site installed app instance id" });
158954
+ },
158604
158955
  FailedToGetClientSpecMap: () => {
158605
158956
  return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to get site client spec map" });
158606
158957
  },
@@ -158921,6 +159272,9 @@ ${errorMessage}`
158921
159272
  FailedToUploadStaticFiles: () => {
158922
159273
  return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to upload static files." });
158923
159274
  },
159275
+ FailedCreatingAppProject: () => {
159276
+ return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "An error occoured while creating an app project." });
159277
+ },
158924
159278
  FailedCreatingAppDeployment: () => {
158925
159279
  return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "An error occoured while creating an app deployment." });
158926
159280
  },
@@ -166051,6 +166405,65 @@ function queryApp(payload4) {
166051
166405
  return __queryApp;
166052
166406
  }
166053
166407
 
166408
+ // ../../node_modules/@wix/ambassador-headless-v1-o-auth-app/build/es/http.impl.js
166409
+ init_esm_shims();
166410
+ var _createOAuthAppRequest = { oAuthApp: "_oAuthApp" };
166411
+ var _createOAuthAppResponse = { oAuthApp: "_oAuthApp" };
166412
+ var _oAuthApp = { createdDate: "google.protobuf.Timestamp" };
166413
+ function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
166414
+ var domainToMappings = {
166415
+ "manage._base_domain_": [
166416
+ {
166417
+ srcPath: "/oauth-app-service",
166418
+ destPath: ""
166419
+ },
166420
+ {
166421
+ srcPath: "/oauth-app",
166422
+ destPath: ""
166423
+ }
166424
+ ],
166425
+ "www.wixapis.com": [
166426
+ {
166427
+ srcPath: "/oauth-app",
166428
+ destPath: ""
166429
+ }
166430
+ ],
166431
+ "api._api_base_domain_": [
166432
+ {
166433
+ srcPath: "/oauth-app-service",
166434
+ destPath: ""
166435
+ }
166436
+ ]
166437
+ };
166438
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
166439
+ }
166440
+ function createOAuthApp(payload4) {
166441
+ var _a2 = serializer(_createOAuthAppRequest, { _oAuthApp }), toReq = _a2.toJSON, fromReq = _a2.fromJSON;
166442
+ var fromRes = serializer(_createOAuthAppResponse, {
166443
+ _oAuthApp
166444
+ }).fromJSON;
166445
+ function __createOAuthApp(_a3) {
166446
+ var host = _a3.host;
166447
+ var serializedData = toReq(payload4);
166448
+ var metadata = {
166449
+ entityFqdn: "wix.headless.v1.o_auth_app",
166450
+ method: "POST",
166451
+ methodFqn: "wix.headless.v1.OAuthAppService.CreateOAuthApp",
166452
+ url: resolveWixHeadlessV1OAuthAppServiceUrl({
166453
+ protoPath: "/v1/oauth-apps",
166454
+ data: serializedData,
166455
+ host
166456
+ }),
166457
+ data: serializedData,
166458
+ transformResponse: fromRes
166459
+ };
166460
+ return metadata;
166461
+ }
166462
+ __createOAuthApp.fromReq = fromReq;
166463
+ __createOAuthApp.__isAmbassador = true;
166464
+ return __createOAuthApp;
166465
+ }
166466
+
166054
166467
  // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-version/build/es/http.impl.js
166055
166468
  init_esm_shims();
166056
166469
  var _appVersion = {
@@ -169137,6 +169550,11 @@ var createAppSchema = z.object({
169137
169550
  id: z.string()
169138
169551
  })
169139
169552
  });
169553
+ var createOAuthAppSchema = z.object({
169554
+ oAuthApp: z.object({
169555
+ id: z.string()
169556
+ })
169557
+ });
169140
169558
  var topologySchema2 = z.object({
169141
169559
  compId: z.string(),
169142
169560
  compName: z.string(),
@@ -169343,6 +169761,19 @@ var DevCenterClient = class {
169343
169761
  });
169344
169762
  }
169345
169763
  };
169764
+ createOAuthApp = async (oAuthApp) => {
169765
+ try {
169766
+ const { data } = await this.httpClient.request(
169767
+ createOAuthApp({ oAuthApp })
169768
+ );
169769
+ return createOAuthAppSchema.parse(data).oAuthApp;
169770
+ } catch (e2) {
169771
+ throw new CliError({
169772
+ code: CliErrorCode.FailedToCreateDevCenterOAuthApp(),
169773
+ cause: e2
169774
+ });
169775
+ }
169776
+ };
169346
169777
  getAppSecret = async (req) => {
169347
169778
  try {
169348
169779
  const { data } = await pRetry(
@@ -172793,4 +173224,4 @@ mustache/mustache.mjs:
172793
173224
  * http://github.com/janl/mustache.js
172794
173225
  *)
172795
173226
  */
172796
- //# sourceMappingURL=chunk-3JZI5Z2Q.js.map
173227
+ //# sourceMappingURL=chunk-S3RIMPQQ.js.map