@veryfront/ext-css-purgecss 0.1.1270-rc.21871 → 0.1.1270-rc.21886
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/README.md +6 -4
- package/esm/deno.d.ts +1 -1
- package/esm/deno.js +3 -3
- package/esm/src/index.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -25,10 +25,12 @@ network, or workspace fallback.
|
|
|
25
25
|
## Configuration and capabilities
|
|
26
26
|
|
|
27
27
|
The factory accepts no options. It receives only bounded in-memory CSS and
|
|
28
|
-
content snapshots from core. PurgeCSS
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
content snapshots from core. PurgeCSS 7 uses `glob`, whose matcher reads the
|
|
29
|
+
`__MINIMATCH_TESTING_PLATFORM__` environment key during module loading. The
|
|
30
|
+
extension declares only `env:read` for that key. In Deno this maps to
|
|
31
|
+
`--allow-env=__MINIMATCH_TESTING_PLATFORM__`. The exact capability audit rejects
|
|
32
|
+
unscoped environment access and any additional key or capability. The extension
|
|
33
|
+
requests no filesystem, network, subprocess, native, or system capability.
|
|
32
34
|
|
|
33
35
|
PurgeCSS does not expose an operation-level cancellation signal, so this
|
|
34
36
|
contract cannot interrupt an invocation after it enters the provider. Core
|
package/esm/deno.d.ts
CHANGED
package/esm/deno.js
CHANGED
|
@@ -8,16 +8,16 @@ export default {
|
|
|
8
8
|
"contracts": {
|
|
9
9
|
"provides": ["CSSPurgingEngine"]
|
|
10
10
|
},
|
|
11
|
-
"capabilities": [{ "type": "
|
|
11
|
+
"capabilities": [{ "type": "env:read", "keys": ["__MINIMATCH_TESTING_PLATFORM__"] }]
|
|
12
12
|
},
|
|
13
13
|
"imports": {
|
|
14
|
-
"purgecss": "npm:purgecss@
|
|
14
|
+
"purgecss": "npm:purgecss@7.0.2",
|
|
15
15
|
"@std/assert": "jsr:@std/assert@1.0.19",
|
|
16
16
|
"@std/testing/bdd": "jsr:@std/testing@1.0.17/bdd",
|
|
17
17
|
"veryfront/extensions": "../../src/extensions/types.ts",
|
|
18
18
|
"veryfront/extensions/css": "../../src/extensions/css/index.ts"
|
|
19
19
|
},
|
|
20
20
|
"tasks": {
|
|
21
|
-
"test": "deno test --frozen --no-check --allow-
|
|
21
|
+
"test": "deno test --frozen --no-check --allow-env=__MINIMATCH_TESTING_PLATFORM__ src/"
|
|
22
22
|
}
|
|
23
23
|
};
|
package/esm/src/index.js
CHANGED
|
@@ -210,7 +210,7 @@ const extCSSPurgeCSS = (config) => {
|
|
|
210
210
|
name: "ext-css-purgecss",
|
|
211
211
|
version: extensionPackage.version,
|
|
212
212
|
contracts: { provides: ["CSSPurgingEngine"] },
|
|
213
|
-
capabilities: [{ type: "
|
|
213
|
+
capabilities: [{ type: "env:read", keys: ["__MINIMATCH_TESTING_PLATFORM__"] }],
|
|
214
214
|
setup(ctx) {
|
|
215
215
|
ctx.provide(CSSPurgingEngineName, engine);
|
|
216
216
|
ctx.logger.debug(`[ext-css-purgecss] ${CSSPurgingEngineName} registered`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-css-purgecss",
|
|
3
|
-
"version": "0.1.1270-rc.
|
|
3
|
+
"version": "0.1.1270-rc.21886",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-css-purgecss",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
},
|
|
43
43
|
"capabilities": [
|
|
44
44
|
{
|
|
45
|
-
"type": "
|
|
46
|
-
"
|
|
47
|
-
"
|
|
45
|
+
"type": "env:read",
|
|
46
|
+
"keys": [
|
|
47
|
+
"__MINIMATCH_TESTING_PLATFORM__"
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"purgecss": "
|
|
53
|
+
"purgecss": "7.0.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"veryfront": "^0.1.1270-rc.
|
|
56
|
+
"veryfront": "^0.1.1270-rc.21886"
|
|
57
57
|
},
|
|
58
58
|
"type": "module",
|
|
59
59
|
"types": "./esm/src/index.d.ts",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"NOTICE",
|
|
64
64
|
"README.md"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "5609b6ed5ebf2568ef4663eabec1d6c7465c56a3"
|
|
67
67
|
}
|