@veryfront/ext-css-purgecss 0.1.1270-rc.21968 → 0.1.1270-rc.21984

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 CHANGED
@@ -25,12 +25,14 @@ 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 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.
28
+ content snapshots from core. PurgeCSS 7 uses `glob`, whose matcher reads
29
+ `__MINIMATCH_TESTING_PLATFORM__` during module loading. Its PostCSS dependency
30
+ loads `picocolors`, which reads `NO_COLOR`, `FORCE_COLOR`, `TERM`, and `CI` to
31
+ select terminal colors. The extension scopes `env:read` to those five keys. Its
32
+ standalone test task grants the same keys, so module loading works even when
33
+ `FORCE_COLOR` is unset. The exact capability audit rejects unscoped environment
34
+ access and any additional key or capability. The extension requests no
35
+ filesystem, network, subprocess, native, or system capability.
34
36
 
35
37
  PurgeCSS does not expose an operation-level cancellation signal, so this
36
38
  contract cannot interrupt an invocation after it enters the provider. Core
package/esm/deno.js CHANGED
@@ -8,7 +8,12 @@ export default {
8
8
  "contracts": {
9
9
  "provides": ["CSSPurgingEngine"]
10
10
  },
11
- "capabilities": [{ "type": "env:read", "keys": ["__MINIMATCH_TESTING_PLATFORM__"] }]
11
+ "capabilities": [
12
+ {
13
+ "type": "env:read",
14
+ "keys": ["__MINIMATCH_TESTING_PLATFORM__", "NO_COLOR", "FORCE_COLOR", "TERM", "CI"]
15
+ }
16
+ ]
12
17
  },
13
18
  "imports": {
14
19
  "purgecss": "npm:purgecss@7.0.2",
@@ -18,6 +23,6 @@ export default {
18
23
  "veryfront/extensions/css": "../../src/extensions/css/index.ts"
19
24
  },
20
25
  "tasks": {
21
- "test": "deno test --frozen --no-check --allow-env=__MINIMATCH_TESTING_PLATFORM__ src/"
26
+ "test": "deno test --frozen --no-check --allow-env=__MINIMATCH_TESTING_PLATFORM__,NO_COLOR,FORCE_COLOR,TERM,CI src/"
22
27
  }
23
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6P7D,QAAA,MAAM,cAAc,EAAE,gBAerB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6P7D,QAAA,MAAM,cAAc,EAAE,gBAkBrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/esm/src/index.js CHANGED
@@ -210,7 +210,10 @@ const extCSSPurgeCSS = (config) => {
210
210
  name: "ext-css-purgecss",
211
211
  version: extensionPackage.version,
212
212
  contracts: { provides: ["CSSPurgingEngine"] },
213
- capabilities: [{ type: "env:read", keys: ["__MINIMATCH_TESTING_PLATFORM__"] }],
213
+ capabilities: [{
214
+ type: "env:read",
215
+ keys: ["__MINIMATCH_TESTING_PLATFORM__", "NO_COLOR", "FORCE_COLOR", "TERM", "CI"],
216
+ }],
214
217
  setup(ctx) {
215
218
  ctx.provide(CSSPurgingEngineName, engine);
216
219
  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.21968",
3
+ "version": "0.1.1270-rc.21984",
4
4
  "description": "Veryfront first-party extension package for ext-css-purgecss",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -44,7 +44,11 @@
44
44
  {
45
45
  "type": "env:read",
46
46
  "keys": [
47
- "__MINIMATCH_TESTING_PLATFORM__"
47
+ "__MINIMATCH_TESTING_PLATFORM__",
48
+ "NO_COLOR",
49
+ "FORCE_COLOR",
50
+ "TERM",
51
+ "CI"
48
52
  ]
49
53
  }
50
54
  ]
@@ -53,7 +57,7 @@
53
57
  "purgecss": "7.0.2"
54
58
  },
55
59
  "peerDependencies": {
56
- "veryfront": "^0.1.1270-rc.21968"
60
+ "veryfront": "^0.1.1270-rc.21984"
57
61
  },
58
62
  "type": "module",
59
63
  "types": "./esm/src/index.d.ts",
@@ -63,5 +67,5 @@
63
67
  "NOTICE",
64
68
  "README.md"
65
69
  ],
66
- "gitHead": "177a3332a614cbece831a2f13dcadcabbe9a0318"
70
+ "gitHead": "29b2b0c4c037ef767c48d9b9a4a792e782ca786c"
67
71
  }