@substrate-system/blur-hash 0.0.35 → 0.0.39
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/decode-dimensions.cjs +37 -0
- package/dist/decode-dimensions.cjs.map +7 -0
- package/dist/decode-dimensions.js +18 -0
- package/dist/decode-dimensions.js.map +7 -0
- package/dist/decode-dimensions.min.js +2 -0
- package/dist/decode-dimensions.min.js.map +7 -0
- package/dist/html.cjs +6 -4
- package/dist/html.cjs.map +2 -2
- package/dist/html.js +6 -4
- package/dist/html.js.map +2 -2
- package/dist/html.min.js +12 -14
- package/dist/html.min.js.map +4 -4
- package/dist/index.cjs +34 -14
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +34 -14
- package/dist/index.js.map +2 -2
- package/dist/index.min.js +9 -11
- package/dist/index.min.js.map +4 -4
- package/dist/meta.json +42 -8
- package/dist/src/decode-dimensions.d.ts +21 -0
- package/dist/src/decode-dimensions.d.ts.map +1 -0
- package/dist/src/html.d.ts.map +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/style.css +31 -28
- package/dist/style.min.css +1 -2
- package/package.json +13 -12
- package/dist/html.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- /package/dist/{html.d.ts → src/html.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrate-system/blur-hash",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A blurry placeholder image web component",
|
|
6
|
+
"browserslist": ">= 0.25%",
|
|
6
7
|
"main": "dist/index.js",
|
|
7
8
|
"bin": {
|
|
8
9
|
"blur": "dist/bin/index.js"
|
|
@@ -36,13 +37,13 @@
|
|
|
36
37
|
"scripts": {
|
|
37
38
|
"lint": "eslint \"./**/*.ts\"",
|
|
38
39
|
"build-tests": "esbuild test/index.ts --target=es2020 --bundle --keep-names > test/test-bundle.js",
|
|
39
|
-
"test": "npm run build && npm run build-tests && npm run test-
|
|
40
|
+
"test": "npm run build && npm run build-tests && npm run test-gui && npm run test-bin && npm run test-api && npm run test-ssr",
|
|
40
41
|
"test-bin": "npm run build-bin && esbuild ./test/bin.ts > ./test/bin.js && node ./test/bin.js | tap-spec",
|
|
41
42
|
"test-api": "esbuild ./test/api.ts --format=esm --platform=node > test/api.js && esbuild ./bin/index.ts --platform=node > bin/index.js && node ./test/api.js | tap-spec",
|
|
42
43
|
"test-ssr": "esbuild ./test/ssr.ts --bundle --platform=node | node --input-type=module | tap-spec",
|
|
43
|
-
"test-
|
|
44
|
-
"build-css": "
|
|
45
|
-
"build-css:min": "
|
|
44
|
+
"test-gui": "esbuild ./test/index.ts --bundle | tapout | tap-spec",
|
|
45
|
+
"build-css": "lightningcss --browserslist src/index.css -o dist/style.css",
|
|
46
|
+
"build-css:min": "lightningcss --browserslist --minify src/index.css -o dist/style.min.css",
|
|
46
47
|
"build-cjs": "esbuild src/*.ts --format=cjs --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.cjs --sourcemap",
|
|
47
48
|
"build-esm": "esbuild src/*.ts --format=esm --metafile=dist/meta.json --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --sourcemap && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist",
|
|
48
49
|
"build-esm:min": "esbuild ./src/*.ts --format=esm --keep-names --bundle --tsconfig=tsconfig.build.json --minify --out-extension:.js=.min.js --outdir=./dist --sourcemap",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"prepublishOnly": "npm run build"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@substrate-system/web-component": "^0.0.
|
|
62
|
+
"@substrate-system/web-component": "^0.0.51",
|
|
62
63
|
"blurhash": "^2.0.5",
|
|
63
64
|
"image-size": "^2.0.2",
|
|
64
65
|
"inkjet": "^3.0.0",
|
|
@@ -67,24 +68,24 @@
|
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@substrate-system/dom": "^0.1.13",
|
|
71
|
+
"@substrate-system/tapout": "^0.0.38",
|
|
70
72
|
"@substrate-system/tapzero": "^0.10.16",
|
|
71
73
|
"@types/sharp": "^0.31.1",
|
|
72
74
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
73
75
|
"@typescript-eslint/parser": "^8.0.0",
|
|
74
76
|
"auto-changelog": "^2.4.0",
|
|
75
|
-
"
|
|
77
|
+
"browserslist": "^4.24.0",
|
|
76
78
|
"esbuild": "^0.27.2",
|
|
77
79
|
"eslint": "^8.57.0",
|
|
78
80
|
"eslint-config-standard": "^17.1.0",
|
|
81
|
+
"lightningcss": "^1.32.0",
|
|
82
|
+
"lightningcss-cli": "^1.32.0",
|
|
79
83
|
"markdown-toc": "^1.2.0",
|
|
80
|
-
"postcss": "^8.4.38",
|
|
81
|
-
"postcss-cli": "^11.0.0",
|
|
82
|
-
"postcss-nesting": "^14.0.0",
|
|
83
84
|
"tap-spec": "^5.0.0",
|
|
84
85
|
"tape-run": "^11.0.0",
|
|
85
86
|
"typedoc": "^0.28.1",
|
|
86
|
-
"typescript": "^
|
|
87
|
-
"vite": "^
|
|
87
|
+
"typescript": "^6.0.2",
|
|
88
|
+
"vite": "^8.0.5"
|
|
88
89
|
},
|
|
89
90
|
"author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
|
|
90
91
|
"license": "SEE LICENSE IN LICENSE",
|
package/dist/html.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../src/html.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG;IAAE,OAAO,CAAC,EAAC,MAAM,CAAA;CAAE,CAAA;A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