@konsumation/frontend-svelte
Advanced tools
Comparing version 1.31.19 to 1.31.20
{ | ||
"name": "@konsumation/frontend-svelte", | ||
"version": "1.31.19", | ||
"version": "1.31.20", | ||
"publishConfig": { | ||
@@ -41,5 +41,5 @@ "access": "public" | ||
"streamsaver": "^2.0.6", | ||
"svelte-command": "^1.1.16", | ||
"svelte-common": "^4.6.1", | ||
"svelte-guard-history-router": "^4.6.16", | ||
"svelte-command": "^1.1.17", | ||
"svelte-common": "^4.6.3", | ||
"svelte-guard-history-router": "^4.6.17", | ||
"svelte-session-manager": "^2.0.10", | ||
@@ -61,6 +61,6 @@ "the-new-css-reset": "^1.7.2" | ||
"testcafe": "^1.19.0", | ||
"vite": "^2.9.12" | ||
"vite": "^2.9.13" | ||
}, | ||
"optionalDependencies": { | ||
"mf-hosting": "^1.6.3" | ||
"mf-hosting": "^1.7.0" | ||
}, | ||
@@ -90,3 +90,3 @@ "repository": { | ||
"http.api.path": "{{http.path}}/api", | ||
"http.path": "/services/konsum", | ||
"http.path": "${http.base.path}/konsum", | ||
"install.dir": "${install.base.dir}konsum/frontend/", | ||
@@ -93,0 +93,0 @@ "name": "konsum-frontend-svelte" |
@@ -1,2 +0,1 @@ | ||
import { readFile } from "fs/promises"; | ||
import { mkdirSync, readFileSync } from "fs"; | ||
@@ -10,8 +9,13 @@ import { execFile } from "child_process"; | ||
export default defineConfig(async ({ command, mode }) => { | ||
const pkg = JSON.parse( | ||
await readFile( | ||
new URL("package.json", import.meta.url).pathname, | ||
encodingOptions | ||
) | ||
const { extractFromPackage } = await import( | ||
new URL("node_modules/npm-pkgbuild/src/module.mjs", import.meta.url) | ||
); | ||
const res = extractFromPackage({ | ||
dir: new URL("./", import.meta.url).pathname | ||
}); | ||
const first = await res.next(); | ||
const pkg = first.value; | ||
const properties = pkg.properties; | ||
const base = properties["http.path"] + "/"; | ||
const api = properties['http.api.path']; | ||
@@ -41,5 +45,2 @@ const production = mode === "production"; | ||
const base = pkg.pkgbuild['http.base.path'] + '/'; | ||
const api = pkg.pkgbuild['http.api.path']; | ||
process.env["VITE_API"] = api; | ||
@@ -46,0 +47,0 @@ process.env["VITE_NAME"] = pkg.name; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
39671
469
5
Updatedsvelte-command@^1.1.17
Updatedsvelte-common@^4.6.3