-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
136 lines (136 loc) · 7.08 KB
/
Copy pathpackage.json
File metadata and controls
136 lines (136 loc) · 7.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"name": "cdn-security-framework",
"version": "1.3.0",
"description": "Policy-driven CDN edge security. Init YAML with npx cdn-security init, then npx cdn-security build to generate runtime code.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.js",
"default": "./lib/index.js"
},
"./emitter": {
"types": "./emitter/index.d.ts",
"require": "./emitter/index.js",
"default": "./emitter/index.js"
},
"./parser": {
"types": "./parser/index.d.ts",
"require": "./parser/index.js",
"default": "./parser/index.js"
},
"./validator": {
"types": "./validator/index.d.ts",
"require": "./validator/index.js",
"default": "./validator/index.js"
},
"./bin/cli": "./bin/cli.js",
"./bin/cli.js": "./bin/cli.js"
},
"bin": {
"cdn-security": "bin/cli.js"
},
"scripts": {
"build:ts": "tsc -p tsconfig.json",
"types:gen": "json2ts -i policy/schema.json -o src/types/policy.d.ts --unknownAny",
"test:types": "npm run build:ts && node scripts/check-generated-types.js",
"typecheck": "tsc -p tsconfig.json --noEmit",
"typecheck:lib-strict": "tsc --ignoreConfig --noEmit --target ES2022 --module CommonJS --moduleResolution Node --moduleDetection force --ignoreDeprecations 6.0 --esModuleInterop --resolveJsonModule --types node --strict true --noImplicitAny true --strictNullChecks true --useUnknownInCatchVariables true src/lib/*.ts",
"typecheck:scripts-lib-strict": "tsc --ignoreConfig --noEmit --target ES2022 --module CommonJS --moduleResolution Node --moduleDetection force --ignoreDeprecations 6.0 --esModuleInterop --resolveJsonModule --types node --strict true --noImplicitAny true --strictNullChecks true --useUnknownInCatchVariables true src/scripts/lib/*.ts",
"typecheck:unit-tests-strict": "tsc --ignoreConfig --noEmit --target ES2022 --module CommonJS --moduleResolution Node --moduleDetection force --ignoreDeprecations 6.0 --esModuleInterop --resolveJsonModule --types node --strict true --noImplicitAny true --strictNullChecks true --useUnknownInCatchVariables true src/scripts/*-unit-tests.ts",
"typecheck:cli-strict": "tsc --ignoreConfig --noEmit --target ES2022 --module CommonJS --moduleResolution Node --moduleDetection force --ignoreDeprecations 6.0 --esModuleInterop --resolveJsonModule --types node --strict true --noImplicitAny true --strictNullChecks true --useUnknownInCatchVariables true src/bin/cli.ts",
"typecheck:compiler-strict": "tsc --ignoreConfig --noEmit --target ES2022 --module CommonJS --moduleResolution Node --moduleDetection force --ignoreDeprecations 6.0 --esModuleInterop --resolveJsonModule --types node --strict true --noImplicitAny true --strictNullChecks true --useUnknownInCatchVariables true src/parser/*.ts src/validator/*.ts src/emitter/*.ts src/scripts/compile.ts src/scripts/compile-cloudflare.ts src/scripts/compile-infra.ts src/scripts/compile-cloudflare-waf.ts src/scripts/policy-lint.ts",
"build": "npm run build:ts && node scripts/compile.js",
"lint:policy": "npm run build:ts && node scripts/policy-lint.js",
"test:api-contract": "npm run build:ts && node scripts/api-contract-tests.js",
"test:vitest": "npm run build:ts && node scripts/ensure-report-dir.js && vitest run",
"test:runtime": "npm run build:ts && node scripts/runtime-tests.js && node scripts/cloudflare-runtime-tests.js",
"test:unit": "npm run build:ts && node scripts/compiler-phase-unit-tests.js && node scripts/compile-unit-tests.js && node scripts/infra-unit-tests.js && node scripts/schema-lint-tests.js && node scripts/doctor-unit-tests.js && node scripts/emit-waf-unit-tests.js && node scripts/programmatic-api-unit-tests.js && node scripts/cloudflare-waf-parity-unit-tests.js && node scripts/fingerprint-candidates-unit-tests.js",
"test:drift": "npm run build:ts && node scripts/check-drift.js",
"test:security-baseline": "npm run build:ts && node scripts/security-baseline-check.js",
"test:fuzz": "npm run build:ts && node scripts/regex-fuzz-tests.js",
"test:cloudflare-integration": "npm run build:ts && node scripts/cloudflare-integration-tests.js",
"test:edge-container": "npm run build:ts && node scripts/edge-container-attack-tests.js",
"test:package": "npm run build:ts && node scripts/package-smoke-tests.js",
"test:coverage": "c8 --reporter=text --reporter=lcov --include='scripts/**/*.js' --include='lib/**/*.js' --include='parser/**/*.js' --include='validator/**/*.js' --include='emitter/**/*.js' --exclude='scripts/**/*-tests.js' --lines 80 --functions 75 --branches 70 npm run test:all",
"test:all": "npm run build && npm run test:types && npm run typecheck:lib-strict && npm run typecheck:scripts-lib-strict && npm run typecheck:compiler-strict && npm run typecheck:unit-tests-strict && npm run typecheck:cli-strict && npm run test:api-contract && npm run test:vitest && npm run test:unit && npm run test:runtime && npm run test:fuzz && npm run test:cloudflare-integration && npm run test:edge-container",
"fingerprints:candidates": "npm run build:ts && node scripts/fingerprint-candidates.js"
},
"keywords": [
"cdn",
"cloudfront",
"edge",
"security",
"policy",
"cli"
],
"license": "MIT",
"engines": {
"node": ">=20.17.0"
},
"dependencies": {
"acorn": "^8.16.0",
"ajv": "^8.20.0",
"commander": "^11.0.0",
"inquirer": "^13.4.2",
"js-yaml": "^4.1.0"
},
"files": [
"bin/",
"emitter/",
"lib/",
"parser/",
"validator/",
"docs/",
"scripts/README.md",
"scripts/README.ja.md",
"scripts/cli-doctor.js",
"scripts/cli-doctor.d.ts",
"scripts/compile.js",
"scripts/compile.d.ts",
"scripts/compile-cloudflare.js",
"scripts/compile-cloudflare.d.ts",
"scripts/compile-cloudflare-waf.js",
"scripts/compile-cloudflare-waf.d.ts",
"scripts/compile-infra.js",
"scripts/compile-infra.d.ts",
"scripts/policy-lint.js",
"scripts/policy-lint.d.ts",
"scripts/lib/",
"templates/",
"examples/README.md",
"examples/README.ja.md",
"examples/aws-cloudfront/README.md",
"examples/aws-cloudfront/README.ja.md",
"examples/aws-cloudfront/package.json",
"examples/aws-cloudfront/package-lock.json",
"examples/aws-cloudfront/policy/",
"examples/cloudflare/README.md",
"examples/cloudflare/README.ja.md",
"examples/cloudflare/package.json",
"examples/cloudflare/package-lock.json",
"examples/cloudflare/policy/",
"policy/base.yml",
"policy/profiles/",
"policy/archetypes/",
"policy/schema.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/albert-einshutoin/cdn-security-framework.git"
},
"homepage": "https://github.com/albert-einshutoin/cdn-security-framework#readme",
"bugs": {
"url": "https://github.com/albert-einshutoin/cdn-security-framework/issues"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^25.6.0",
"c8": "^11.0.0",
"esbuild": "^0.28.0",
"json-schema-to-typescript": "^15.0.4",
"typescript": "^6.0.3",
"vitest": "^4.1.5"
}
}