@panguard-ai/security-hardening 0.1.1 → 1.0.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Panguard AI Team
3
+ Copyright (c) 2025-2026 Panguard AI Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -20,20 +20,20 @@ export declare const SecurityPolicySchema: z.ZodObject<{
20
20
  syslogServer: z.ZodOptional<z.ZodString>;
21
21
  syslogPort: z.ZodOptional<z.ZodNumber>;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ allowedOrigins: string[];
23
24
  allowShellAccess: boolean;
24
25
  allowedDirectories: string[];
25
26
  allowedCommands: string[];
26
27
  requireCsrfToken: boolean;
27
- allowedOrigins: string[];
28
28
  enableAuditLog: boolean;
29
29
  syslogServer?: string | undefined;
30
30
  syslogPort?: number | undefined;
31
31
  }, {
32
+ allowedOrigins?: string[] | undefined;
32
33
  allowShellAccess?: boolean | undefined;
33
34
  allowedDirectories?: string[] | undefined;
34
35
  allowedCommands?: string[] | undefined;
35
36
  requireCsrfToken?: boolean | undefined;
36
- allowedOrigins?: string[] | undefined;
37
37
  enableAuditLog?: boolean | undefined;
38
38
  syslogServer?: string | undefined;
39
39
  syslogPort?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panguard-ai/security-hardening",
3
- "version": "0.1.1",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "description": "Security hardening library for Panguard / Panguard 安全強化函式庫",
6
6
  "main": "./dist/index.js",
@@ -45,7 +45,7 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "zod": "^3.24.0",
48
- "@panguard-ai/core": "0.1.1"
48
+ "@panguard-ai/core": "1.0.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^22.14.0",