csprefabricate 0.2.1 → 0.2.3
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +0 -1
- package/package.json +9 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentSecurityPolicy, Directive } from "./types";
|
|
2
2
|
import { create } from "./utils";
|
|
3
|
-
export { create,
|
|
3
|
+
export { create, Directive, ContentSecurityPolicy };
|
package/dist/index.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -55,4 +55,4 @@ interface ContentSecurityPolicy {
|
|
|
55
55
|
[Directive.UPGRADE_INSECURE_REQUESTS]?: BlankDirectiveRule;
|
|
56
56
|
[Directive.BLOCK_ALL_MIXED_CONTENT]?: BlankDirectiveRule;
|
|
57
57
|
}
|
|
58
|
-
export {
|
|
58
|
+
export { ContentSecurityPolicy, Rules, Directive };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentSecurityPolicy } from "./types";
|
|
2
2
|
export declare const processRules: (rules: Array<string> | Array<string | Record<string, Array<string>>>) => string;
|
|
3
3
|
export declare const create: (obj: ContentSecurityPolicy) => string;
|
package/dist/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "csprefabricate",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"packageManager": "yarn@4.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@tsconfig/node-lts": "^22.0.1",
|
|
8
8
|
"@types/node": "^22.13.5",
|
|
9
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
10
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
11
|
+
"eslint": "^9.27.0",
|
|
9
12
|
"prettier": "^3.5.2",
|
|
13
|
+
"release-please": "^17.0.0",
|
|
10
14
|
"tsx": "^4.19.3",
|
|
11
15
|
"typescript": "^5.7.3"
|
|
12
16
|
},
|
|
@@ -15,13 +19,14 @@
|
|
|
15
19
|
"dist/"
|
|
16
20
|
],
|
|
17
21
|
"scripts": {
|
|
18
|
-
"build": "tsc",
|
|
22
|
+
"build": "tsc --project tsconfig.build.json",
|
|
19
23
|
"pack": "npm pack",
|
|
20
24
|
"prepack": "yarn typecheck && yarn test && yarn build",
|
|
21
25
|
"prettier": "prettier . --write",
|
|
22
26
|
"prepublish": "yarn version check",
|
|
23
|
-
"publish": "
|
|
27
|
+
"publish": "npm publish",
|
|
24
28
|
"test": "tsx --test src/test/**/*test.ts",
|
|
25
|
-
"typecheck": "tsc --noEmit"
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"lint": "eslint ."
|
|
26
31
|
}
|
|
27
32
|
}
|