csprefabricate 0.4.0 → 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/CHANGELOG.md +41 -0
- package/README.md +4 -4
- package/package.json +50 -14
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.0](https://github.com/JamesToohey/csprefabricate/compare/v0.4.0...v1.0.0) (2025-06-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* updates for 1.0 release ([#29](https://github.com/JamesToohey/csprefabricate/issues/29))
|
|
9
|
+
|
|
10
|
+
### Documentation
|
|
11
|
+
|
|
12
|
+
* updates for 1.0 release ([#29](https://github.com/JamesToohey/csprefabricate/issues/29)) ([1629ea1](https://github.com/JamesToohey/csprefabricate/commit/1629ea1e415142a54f6bd538832dbca4cdf1f179))
|
|
13
|
+
|
|
14
|
+
## [0.4.0](https://github.com/JamesToohey/csprefabricate/compare/v0.3.1...v0.4.0) (2025-05-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add baseline CSPs ([#25](https://github.com/JamesToohey/csprefabricate/issues/25)) ([6dd8588](https://github.com/JamesToohey/csprefabricate/commit/6dd858853d143de66979e74ba981844c2b1e28d3))
|
|
20
|
+
|
|
21
|
+
## [0.3.1](https://github.com/JamesToohey/csprefabricate/compare/v0.3.0...v0.3.1) (2025-05-27)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* fix publish command ([#23](https://github.com/JamesToohey/csprefabricate/issues/23)) ([7b537f3](https://github.com/JamesToohey/csprefabricate/commit/7b537f337e20c188a89ddb3dd3f2ab5ddefade04))
|
|
27
|
+
|
|
28
|
+
## [0.3.0](https://github.com/JamesToohey/csprefabricate/compare/v0.2.3...v0.3.0) (2025-05-26)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* Add warnings for common misconfigurations ([#21](https://github.com/JamesToohey/csprefabricate/issues/21)) ([d47858a](https://github.com/JamesToohey/csprefabricate/commit/d47858a04b777edec738b0f8ead23845795597a5))
|
|
34
|
+
|
|
35
|
+
## [0.2.3](https://github.com/JamesToohey/csprefabricate/compare/0.2.2...v0.2.3) (2025-05-25)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* give release please access to github actions ([#17](https://github.com/JamesToohey/csprefabricate/issues/17)) ([456d933](https://github.com/JamesToohey/csprefabricate/commit/456d933dcbb746943f1f0a921e96a5b54c6055e5))
|
|
41
|
+
* update contributing ([4588b6a](https://github.com/JamesToohey/csprefabricate/commit/4588b6a09731a08121f3a26612147518fbf50b05))
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# csprefabricate
|
|
1
|
+
# csprefabricate
|
|
2
2
|
|
|
3
|
-
**Generate a valid CSP with
|
|
3
|
+
**Generate a valid CSP with TypeScript.**
|
|
4
4
|
|
|
5
|
-
Content Security Policies (CSPs) are cumbersome strings that are
|
|
5
|
+
Content Security Policies (CSPs) are cumbersome strings that are frustrating to work with:
|
|
6
6
|
|
|
7
7
|
- Fickle syntax
|
|
8
|
-
-
|
|
8
|
+
- Duplication when multiple TLDs are required
|
|
9
9
|
- Easy to allow insecure configuration
|
|
10
10
|
|
|
11
11
|
This project aims to make creating useful and secure CSPs a more pleasant experience.
|
package/package.json
CHANGED
|
@@ -1,31 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "csprefabricate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Generate valid and secure Content Security Policies (CSP) with TypeScript.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"csp",
|
|
7
|
+
"content-security-policy",
|
|
8
|
+
"security",
|
|
9
|
+
"web-security",
|
|
10
|
+
"xss-protection",
|
|
11
|
+
"typescript"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/jamestoohey/csprefabricate#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/jamestoohey/csprefabricate/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/jamestoohey/csprefabricate.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "James Toohey",
|
|
24
|
+
"url": "https://github.com/jamestoohey"
|
|
25
|
+
},
|
|
4
26
|
"packageManager": "yarn@4.5.3",
|
|
5
27
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"eslint": "^9.27.0",
|
|
12
|
-
"prettier": "^3.5.2",
|
|
13
|
-
"release-please": "^17.0.0",
|
|
14
|
-
"tsx": "^4.19.3",
|
|
15
|
-
"typescript": "^5.7.3"
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
}
|
|
16
33
|
},
|
|
17
34
|
"main": "dist/index.js",
|
|
35
|
+
"types": "dist/index.d.ts",
|
|
18
36
|
"files": [
|
|
19
|
-
"dist/"
|
|
37
|
+
"dist/",
|
|
38
|
+
"README.md",
|
|
39
|
+
"LICENSE",
|
|
40
|
+
"CHANGELOG.md"
|
|
20
41
|
],
|
|
21
42
|
"scripts": {
|
|
22
43
|
"build": "tsc --project tsconfig.build.json",
|
|
23
44
|
"functional-test": "yarn build && tsx --test src/test/functional/functional.test.js",
|
|
45
|
+
"lint": "eslint .",
|
|
24
46
|
"pack": "npm pack",
|
|
25
47
|
"prepack": "yarn typecheck && yarn test && yarn build",
|
|
26
48
|
"prepublish": "yarn version check",
|
|
27
49
|
"test": "tsx --test src/test/**/*test.ts",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
50
|
+
"test:watch": "tsx --test --watch src/test/**/*test.ts",
|
|
51
|
+
"typecheck": "tsc --noEmit"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@tsconfig/node-lts": "^22.0.1",
|
|
55
|
+
"@types/node": "^22.13.5",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
57
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
58
|
+
"eslint": "^9.27.0",
|
|
59
|
+
"prettier": "^3.5.2",
|
|
60
|
+
"release-please": "^17.0.0",
|
|
61
|
+
"tsx": "^4.19.3",
|
|
62
|
+
"typescript": "^5.7.3"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=18"
|
|
30
66
|
}
|
|
31
67
|
}
|