@beyonk/svelte-mapbox
Advanced tools
| allowBuilds: | ||
| unrs-resolver: true |
@@ -8,2 +8,6 @@ name: publish | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| jobs: | ||
@@ -15,3 +19,3 @@ publish-npm: | ||
| - name: checkout | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v6 | ||
@@ -21,3 +25,2 @@ - name: set up node and pnpm | ||
| corepack enable | ||
| pnpm config set '//registry.npmjs.org/:_authToken' "${{secrets.NPM_TOKEN}}" | ||
| pnpm i | ||
@@ -24,0 +27,0 @@ |
+20
-8
| { | ||
| "name": "@beyonk/svelte-mapbox", | ||
| "version": "12.1.0", | ||
| "version": "12.1.2", | ||
| "devDependencies": { | ||
| "@beyonk/eslint-config": "^8.0.2", | ||
| "@beyonk/eslint-config": "^9.1.4", | ||
| "@eslint/eslintrc": "^3.1.0", | ||
| "@eslint/js": "^9.14.0", | ||
| "@sveltejs/kit": "^2.55.0", | ||
| "@sveltejs/vite-plugin-svelte": "^7.0.0", | ||
| "@sveltejs/kit": "^2.64.0", | ||
| "@sveltejs/vite-plugin-svelte": "^7.1.2", | ||
| "eslint": "^9.14.0", | ||
| "eslint-plugin-svelte": "^2.46.0", | ||
| "svelte": "^5.55.0", | ||
| "svelte2tsx": "^0.7.23", | ||
| "typescript": "^5.6.3", | ||
| "vite": "^8.0.2" | ||
| "svelte": "^5.56.3", | ||
| "svelte2tsx": "^0.7.56", | ||
| "typescript": "^6.0.3", | ||
| "vite": "^8.0.16", | ||
| "node": "runtime:>=25.0.0" | ||
| }, | ||
@@ -23,4 +24,15 @@ "peerDependencies": { | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/beyonk/svelte-mapbox.git" | ||
| }, | ||
| "types": "./components.d.ts", | ||
| "type": "module", | ||
| "devEngines": { | ||
| "runtime": { | ||
| "name": "node", | ||
| "version": ">=25.0.0", | ||
| "onFail": "download" | ||
| } | ||
| }, | ||
| "scripts": { | ||
@@ -27,0 +39,0 @@ "dev": "vite dev --port 3030", |
@@ -29,3 +29,2 @@ import { load } from '../asset-loader.js' | ||
| geocoderInstance.on('result', (ev) => { | ||
| console.log('result', onresult, ev) | ||
| onresult?.(ev) | ||
@@ -32,0 +31,0 @@ }) |
@@ -40,3 +40,3 @@ <script> | ||
| center, | ||
| zoom, | ||
| zoom: untrack(() => zoom), | ||
| zoomRate, | ||
@@ -43,0 +43,0 @@ wheelZoomRate, |
@@ -6,4 +6,2 @@ <script> | ||
| const { getMap, getMapbox } = getContext(contextKey) | ||
| const map = getMap() | ||
| const mapbox = getMapbox() | ||
@@ -42,5 +40,8 @@ function randomColour () { | ||
| onMount(() => { | ||
| const map = getMap() | ||
| const mapbox = getMapbox() | ||
| const namedParams = Object.assign( | ||
| { offset: markerOffset }, | ||
| element.hasChildNodes() ? { element } : { color } | ||
| element.children.length > 0 || element.textContent.trim().length > 0 ? { element } : { color } | ||
| ) | ||
@@ -47,0 +48,0 @@ marker = new mapbox.Marker(Object.assign(namedParams, markerOptions)) |
@@ -110,3 +110,2 @@ <script> | ||
| onresult={({ result }) => { | ||
| console.log('sets center', result.center) | ||
| mapComponent.setCenter(result.center, 14) | ||
@@ -113,0 +112,0 @@ place = result |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
46970
0.48%32
3.23%1
-50%12
9.09%836
-0.12%