@inlang/paraglide-js 1.0.0 → 1.1.0
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 +20 -27
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -8091,33 +8091,6 @@ async function hash(inputStr) {
|
|
|
8091
8091
|
// ../../../../lix/source-code/client/dist/openRepository.js
|
|
8092
8092
|
var { clone, listRemotes, status, statusMatrix, push, pull, currentBranch, add, log, listServerRefs, checkout, addRemote, fetch: gitFetch, commit: isoCommit } = isoGit;
|
|
8093
8093
|
|
|
8094
|
-
// ../../../../lix/source-code/client/dist/browser-auth.js
|
|
8095
|
-
init_define_ENV_DEFINED_IN_BUILD_STEP();
|
|
8096
|
-
|
|
8097
|
-
// ../../env-variables/dist/runtime/publicEnv.js
|
|
8098
|
-
init_define_ENV_DEFINED_IN_BUILD_STEP();
|
|
8099
|
-
var define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default = { PUBLIC_IS_DEV: "false", PUBLIC_GIT_PROXY_BASE_URL: "https://git.inlang.com", PUBLIC_POSTHOG_TOKEN: "phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz", PUBLIC_ALLOWED_AUTH_URLS: "https://inlang.com,https://manage.inlang.com,https://fink.inlang.com", PUBLIC_SERVER_BASE_URL: "https://inlang.com", PUBLIC_WEBSITE_SENTRY_DSN: "https://6ba3cb3bad464dd9a7f8700ed636c07a@o4504345873285120.ingest.sentry.io/4504346044006400", PUBLIC_LIX_GITHUB_APP_NAME: "inlang", PUBLIC_LIX_GITHUB_APP_CLIENT_ID: "Iv1.436da58906364f96" };
|
|
8100
|
-
var publicEnv = new Proxy({}, {
|
|
8101
|
-
get(target, prop) {
|
|
8102
|
-
if (typeof prop === "string" && prop.startsWith("PUBLIC_") === false) {
|
|
8103
|
-
throw new Error("Public env variables must start with PUBLIC_");
|
|
8104
|
-
} else if (typeof process !== "undefined" && (process == null ? void 0 : process.env[prop])) {
|
|
8105
|
-
return process.env[prop];
|
|
8106
|
-
} else if (
|
|
8107
|
-
// @ts-expect-error - ENV_DEFINED_IN_BUILD_STEP is defined in build step
|
|
8108
|
-
typeof define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default !== "undefined" && // @ts-expect-error - ENV_DEFINED_IN_BUILD_STEP is defined in build step
|
|
8109
|
-
define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default[prop]
|
|
8110
|
-
) {
|
|
8111
|
-
return define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default[prop];
|
|
8112
|
-
}
|
|
8113
|
-
return target[prop];
|
|
8114
|
-
}
|
|
8115
|
-
});
|
|
8116
|
-
|
|
8117
|
-
// ../../../../lix/source-code/client/dist/browser-auth.js
|
|
8118
|
-
var gitHubProxyUrl = publicEnv.PUBLIC_GIT_PROXY_BASE_URL + "/github-proxy/";
|
|
8119
|
-
var githubAppClientId = publicEnv.PUBLIC_LIX_GITHUB_APP_CLIENT_ID;
|
|
8120
|
-
|
|
8121
8094
|
// ../../../../lix/source-code/client/dist/mockRepo.js
|
|
8122
8095
|
init_define_ENV_DEFINED_IN_BUILD_STEP();
|
|
8123
8096
|
|
|
@@ -8911,6 +8884,26 @@ function getPrivateEnvVariables() {
|
|
|
8911
8884
|
return { ...process.env, ...result.parsed };
|
|
8912
8885
|
}
|
|
8913
8886
|
|
|
8887
|
+
// ../../env-variables/dist/runtime/publicEnv.js
|
|
8888
|
+
init_define_ENV_DEFINED_IN_BUILD_STEP();
|
|
8889
|
+
var define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default = { PUBLIC_IS_DEV: "false", PUBLIC_GIT_PROXY_BASE_URL: "https://git.inlang.com", PUBLIC_POSTHOG_TOKEN: "phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz", PUBLIC_ALLOWED_AUTH_URLS: "https://inlang.com,https://manage.inlang.com,https://fink.inlang.com", PUBLIC_SERVER_BASE_URL: "https://inlang.com", PUBLIC_WEBSITE_SENTRY_DSN: "https://6ba3cb3bad464dd9a7f8700ed636c07a@o4504345873285120.ingest.sentry.io/4504346044006400", PUBLIC_LIX_GITHUB_APP_NAME: "inlang", PUBLIC_LIX_GITHUB_APP_CLIENT_ID: "Iv1.436da58906364f96" };
|
|
8890
|
+
var publicEnv = new Proxy({}, {
|
|
8891
|
+
get(target, prop) {
|
|
8892
|
+
if (typeof prop === "string" && prop.startsWith("PUBLIC_") === false) {
|
|
8893
|
+
throw new Error("Public env variables must start with PUBLIC_");
|
|
8894
|
+
} else if (typeof process !== "undefined" && (process == null ? void 0 : process.env[prop])) {
|
|
8895
|
+
return process.env[prop];
|
|
8896
|
+
} else if (
|
|
8897
|
+
// @ts-expect-error - ENV_DEFINED_IN_BUILD_STEP is defined in build step
|
|
8898
|
+
typeof define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default !== "undefined" && // @ts-expect-error - ENV_DEFINED_IN_BUILD_STEP is defined in build step
|
|
8899
|
+
define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default[prop]
|
|
8900
|
+
) {
|
|
8901
|
+
return define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default[prop];
|
|
8902
|
+
}
|
|
8903
|
+
return target[prop];
|
|
8904
|
+
}
|
|
8905
|
+
});
|
|
8906
|
+
|
|
8914
8907
|
// ../../env-variables/dist/validateEnvVariables.js
|
|
8915
8908
|
init_define_ENV_DEFINED_IN_BUILD_STEP();
|
|
8916
8909
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inlang/paraglide-js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"rollup": "3.29.1",
|
|
53
53
|
"typescript": "5.2.2",
|
|
54
54
|
"vitest": "0.34.3",
|
|
55
|
-
"@inlang/telemetry": "0.3.
|
|
56
|
-
"@inlang/
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
55
|
+
"@inlang/telemetry": "0.3.3",
|
|
56
|
+
"@inlang/sdk": "0.22.0",
|
|
57
|
+
"@lix-js/fs": "0.5.0",
|
|
58
|
+
"@inlang/env-variables": "0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"exports": {
|
|
61
61
|
"./internal": {
|