svelte-entitlement 1.2.26 → 1.2.29

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +13 -10
  3. package/vite.config.js +0 -43
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  [![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev)
2
2
  [![npm](https://img.shields.io/npm/v/svelte-entitlement.svg)](https://www.npmjs.com/package/svelte-entitlement)
3
3
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
4
- [![minified size](https://badgen.net/bundlephobia/min/svelte-entitlement)](https://bundlephobia.com/result?p=svelte-entitlement)
4
+ [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=svelte-entitlement)
5
5
  [![downloads](http://img.shields.io/npm/dm/svelte-entitlement.svg?style=flat-square)](https://npmjs.org/package/svelte-entitlement)
6
6
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/arlac77/svelte-entitlement.git)
7
7
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fsvelte-entitlement%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/arlac77/svelte-entitlement/goto)
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "svelte-entitlement",
3
- "version": "1.2.26",
3
+ "version": "1.2.29",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
4
7
  "svelte": "./src/index.svelte",
5
8
  "keywords": [
6
9
  "component",
@@ -13,7 +16,7 @@
13
16
  "start": "vite",
14
17
  "test": "npm run test:ava && npm run test:cafe",
15
18
  "test:ava": "ava --timeout 2m tests/*.mjs",
16
- "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 9000 --app-init-delay 3000 --app vite",
19
+ "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app vite",
17
20
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
18
21
  "docs": "documentation readme --section=API ./src/**/*.mjs",
19
22
  "lint": "npm run lint:docs",
@@ -29,17 +32,17 @@
29
32
  "@semantic-release/release-notes-generator": "^10.0.3",
30
33
  "@sveltejs/vite-plugin-svelte": "^1.0.1",
31
34
  "ava": "^4.3.1",
32
- "c8": "^7.11.3",
35
+ "c8": "^7.12.0",
33
36
  "documentation": "^13.2.5",
34
- "mf-styling": "^1.2.26",
35
- "npm-pkgbuild": "^10.11.3",
37
+ "mf-styling": "^1.2.33",
38
+ "npm-pkgbuild": "^10.12.2",
36
39
  "semantic-release": "^19.0.3",
37
40
  "svelte": "^3.49.0",
38
- "testcafe": "^1.19.0",
39
- "vite": "^3.0.0"
41
+ "testcafe": "^1.20.0",
42
+ "vite": "^3.0.2"
40
43
  },
41
44
  "optionalDependencies": {
42
- "mf-hosting": "^1.7.0"
45
+ "mf-hosting": "^1.7.1"
43
46
  },
44
47
  "repository": {
45
48
  "type": "git",
@@ -54,8 +57,8 @@
54
57
  "${install.dir}": "build/",
55
58
  "${nginx.sites.dir}${name}.conf": "pkg/nginx.conf"
56
59
  },
57
- "http.base.path": "/examples",
58
- "groups": "examples"
60
+ "groups": "examples",
61
+ "description": "example showing ${name} features in action"
59
62
  },
60
63
  "release": {
61
64
  "plugins": [
package/vite.config.js DELETED
@@ -1,43 +0,0 @@
1
- import { svelte } from "@sveltejs/vite-plugin-svelte";
2
- import { defineConfig } from "vite";
3
-
4
- export default defineConfig(async ({ command, mode }) => {
5
- const { extractFromPackage } = await import(
6
- new URL("node_modules/npm-pkgbuild/src/module.mjs", import.meta.url)
7
- );
8
- const res = extractFromPackage({
9
- dir: new URL("./", import.meta.url).pathname
10
- });
11
- const first = await res.next();
12
- const pkg = first.value;
13
- const properties = pkg.properties;
14
- const base = properties["http.path"] + "/";
15
- const production = mode === "production";
16
-
17
- process.env["VITE_NAME"] = properties.name;
18
- process.env["VITE_DESCRIPTION"] = properties.description;
19
- process.env["VITE_VERSION"] = properties.version;
20
-
21
- const open = process.env.CI ? {} : { open: base };
22
-
23
- return {
24
- base,
25
- root: "tests/app/src",
26
- worker: { format: "es" },
27
- plugins: [
28
- svelte({
29
- compilerOptions: {
30
- dev: !production
31
- }
32
- })
33
- ],
34
- server: { host: true, ...open },
35
- build: {
36
- outDir: "../../../build",
37
- target: "esnext",
38
- emptyOutDir: true,
39
- minify: production,
40
- sourcemap: true
41
- }
42
- };
43
- });