@parel/security-basic 0.1.5 → 0.1.6

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as _parel_core from '@parel/core';
1
+ import { ParelPlugin } from '@parel/plugin-sdk';
2
2
 
3
- declare const _default: _parel_core.ParelPlugin;
3
+ declare const _default: ParelPlugin;
4
4
 
5
5
  export { _default as default };
package/dist/index.js CHANGED
@@ -1,5 +1,19 @@
1
1
  // src/index.ts
2
2
  import { definePlugin, HookPriority, LifecycleEvent } from "@parel/plugin-sdk";
3
+
4
+ // parel.plugin.json
5
+ var parel_plugin_default = {
6
+ name: "@parel/security-basic",
7
+ version: "0.1.5",
8
+ execution: {
9
+ snapshot: {
10
+ store: "reset",
11
+ sideEffects: "reference"
12
+ }
13
+ }
14
+ };
15
+
16
+ // src/index.ts
3
17
  var DEFAULT_EXEC_TOOLS = /* @__PURE__ */ new Set(["bash", "shell", "exec", "terminal", "run_command", "run"]);
4
18
  var DEFAULT_ALLOWED_PATTERNS = [
5
19
  /^(ls|cat|head|tail|wc|grep|find|which|echo|printf|date|pwd|whoami|id|env|printenv)$/,
@@ -347,6 +361,7 @@ function extractAllPrograms(command) {
347
361
  }
348
362
  var index_default = definePlugin({
349
363
  name: "@parel/security-basic",
364
+ execution: parel_plugin_default.execution,
350
365
  async setup(ctx) {
351
366
  const mode = ctx.config.mode ?? "allowlist";
352
367
  const customExecTools = ctx.config.exec_tools;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parel/security-basic",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "PAREL plugin for basic command and secret safety checks.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,16 +21,17 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
+ "parel.plugin.json",
24
25
  "LICENSE",
25
26
  "README.md"
26
27
  ],
27
28
  "dependencies": {
28
- "@parel/plugin-sdk": "0.2.4"
29
+ "@parel/plugin-sdk": "0.3.0"
29
30
  },
30
31
  "devDependencies": {
31
32
  "tsup": "^8.0.0",
32
33
  "typescript": "^5.8.0",
33
- "vitest": "^3.0.0"
34
+ "vitest": "^4.1.8"
34
35
  },
35
36
  "publishConfig": {
36
37
  "access": "public"
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@parel/security-basic",
3
+ "version": "0.1.5",
4
+ "execution": {
5
+ "snapshot": {
6
+ "store": "reset",
7
+ "sideEffects": "reference"
8
+ }
9
+ }
10
+ }