@schemastore/content-security-policy-report-2 0.0.2

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/index.d.ts +55 -0
  4. package/package.json +14 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Installation
2
+ > `npm install --save @schemastore/content-security-policy-report-2`
3
+
4
+ # Summary
5
+ This package contains type definitions for content-security-policy-report-2.
6
+
7
+ ## Details
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/content-security-policy-report-2.
9
+
10
+ ## Additional Details
11
+ * Last updated: Wed, Apr 20, 2022, 07:13:19 GMT
12
+ * Dependencies: none
package/index.d.ts ADDED
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ /**
9
+ * https://www.w3.org/TR/CSP2/#violation-reports
10
+ */
11
+ export interface JSONSchemaForContentSecurityPolicyLevel2ViolationReports {
12
+ "csp-report": {
13
+ /**
14
+ * The originally requested URL of the resource that was prevented from loading, stripped for reporting, or the empty string if the resource has no URL (inline script and inline style, for example).
15
+ */
16
+ "blocked-uri"?: string;
17
+ /**
18
+ * The address of the protected resource, stripped for reporting.
19
+ */
20
+ "document-uri"?: string;
21
+ /**
22
+ * The name of the policy directive that was violated. This will contain the directive whose enforcement triggered the violation (e.g. "script-src") even if that directive does not explicitly appear in the policy, but is implicitly activated via the default-src directive.
23
+ */
24
+ "effective-directive"?: string;
25
+ /**
26
+ * The original policy, as received by the user agent.
27
+ */
28
+ "original-policy"?: string;
29
+ /**
30
+ * The referrer attribute of the protected resource, or the empty string if the protected resource has no referrer.
31
+ */
32
+ referrer?: string;
33
+ /**
34
+ * The status-code of the HTTP response that contained the protected resource, if the protected resource was obtained over HTTP. Otherwise, the number 0.
35
+ */
36
+ "status-code"?: number;
37
+ /**
38
+ * The policy directive that was violated, as it appears in the policy. This will contain the default-src directive in the case of violations caused by falling back to the default sources when enforcing a directive.
39
+ */
40
+ "violated-directive"?: string;
41
+ /**
42
+ * The URL of the resource where the violation occurred, stripped for reporting.
43
+ */
44
+ "source-file"?: string;
45
+ /**
46
+ * The line number in source-file on which the violation occurred.
47
+ */
48
+ "line-number"?: number;
49
+ /**
50
+ * The column number in source-file on which the violation occurred.
51
+ */
52
+ "column-number"?: number;
53
+ [k: string]: unknown;
54
+ };
55
+ }
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
+ "dependencies": {},
4
+ "description": "TypeScript definitions for content-security-policy-report-2.",
5
+ "license": "MIT",
6
+ "main": "index.d.ts",
7
+ "name": "@schemastore/content-security-policy-report-2",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/content-security-policy-report-2",
9
+ "scripts": {},
10
+ "typesPublisherContentHash": "408698fb3daf6251cb4eb894a99842d442547a7b2e8670d77eb5d6a52f59889d",
11
+ "types": "index.d.ts",
12
+ "version": "0.0.2",
13
+ "typeScriptVersion": "2.2"
14
+ }