@microsoft/sarif 0.0.1

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/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # @microsoft/sarif
2
+
3
+ SARIF SDK for Node.js — native-TypeScript open-typed object model, region/snippet
4
+ resolution, AI ruleId convention, and serialization helpers. No CLR dependency.
5
+
6
+ > **v0.0.x is a placeholder** that reserves the package name and proves the
7
+ > publish pipeline. The implementation lands in a subsequent release; track
8
+ > progress at https://github.com/microsoft/sarif-sdk.
9
+
10
+ This is the base package. For the multitool verbs (`emit-*`, `get-*`,
11
+ `validate`) see [`@microsoft/sarif-multitool-ts`](https://www.npmjs.com/package/@microsoft/sarif-multitool-ts).
12
+
13
+ ## License
14
+
15
+ MIT
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @microsoft/sarif — SARIF SDK for Node.js.
3
+ *
4
+ * v0.0.x PLACEHOLDER. This release reserves the package name and proves the
5
+ * publish pipeline; the implementation (open-typed SARIF object model,
6
+ * FileRegionsCache, AIRuleIdConvention, serialization helpers) lands in a
7
+ * subsequent release tracked at https://github.com/microsoft/sarif-sdk.
8
+ */
9
+ export declare const SARIF_SCHEMA_URI = "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/csd01/schemas/sarif-schema-2.1.0.json";
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Microsoft. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ /**
4
+ * @microsoft/sarif — SARIF SDK for Node.js.
5
+ *
6
+ * v0.0.x PLACEHOLDER. This release reserves the package name and proves the
7
+ * publish pipeline; the implementation (open-typed SARIF object model,
8
+ * FileRegionsCache, AIRuleIdConvention, serialization helpers) lands in a
9
+ * subsequent release tracked at https://github.com/microsoft/sarif-sdk.
10
+ */
11
+ export const SARIF_SCHEMA_URI = 'https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/csd01/schemas/sarif-schema-2.1.0.json';
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@microsoft/sarif",
3
+ "version": "0.0.1",
4
+ "description": "SARIF SDK for Node.js: open-typed object model, region/snippet resolution, AI ruleId convention, and serialization helpers. Native TypeScript; no CLR dependency.",
5
+ "author": "Microsoft",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/microsoft/sarif-sdk",
10
+ "directory": "npm/sarif"
11
+ },
12
+ "keywords": ["sarif", "static-analysis", "security"],
13
+ "type": "module",
14
+ "engines": {
15
+ "node": ">=20"
16
+ },
17
+ "main": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist/",
27
+ "README.md"
28
+ ],
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "scripts": {
33
+ "build": "tsc"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^20.14.0",
37
+ "typescript": "^5.5.0"
38
+ }
39
+ }