Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 3.53 KB
/
Copy pathpackage.json
File metadata and controls
105 lines (105 loc) · 3.53 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
{
"name": "@stackone/defender",
"version": "0.9.5",
"description": "Prompt injection defense framework for AI tool-calling",
"homepage": "https://defender.stackone.com/?utm_source=npm&utm_medium=listing&utm_campaign=homepage",
"repository": {
"type": "git",
"url": "git+https://github.com/StackOneHQ/defender.git"
},
"bugs": {
"url": "https://github.com/StackOneHQ/defender/issues"
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"files": [
"dist",
"package.json",
"README.md",
"LICENSE"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.cts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"scripts": {
"clean": "rimraf dist",
"prebuild": "pnpm clean",
"build": "tsc --noEmit --project tsconfig.json && tsdown --env.NODE_ENV=production --minify && pnpm copy-models",
"prebuild:dev": "pnpm clean",
"build:dev": "tsc --noEmit --project tsconfig.json && tsdown --env.NODE_ENV=development && pnpm copy-models",
"copy-models": "node scripts/copy-models.cjs",
"code:format": "biome format ./src ./examples",
"code:format:fix": "biome format --write ./src ./examples",
"code:lint": "biome lint --error-on-warnings ./src",
"code:lint:fix": "biome lint --write ./src",
"code:check": "biome check ./src ./examples",
"code:check:fix": "biome check --write ./src ./examples",
"lint": "pnpm code:check",
"lint:fix": "pnpm code:check:fix",
"test": "FORCE_COLOR=1 vitest run",
"test:watch": "FORCE_COLOR=1 vitest watch --silent",
"test:typecheck": "tsc --noEmit --project tsconfig.tests.json",
"conformance:update": "CONFORMANCE_UPDATE=1 vitest run specs/conformance.spec.ts",
"example": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON",
"examples:typecheck": "tsc --noEmit --project examples/tsconfig.json",
"examples:smoke": "for f in examples/0*.ts; do echo \"== $f\"; node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON \"$f\" || exit 1; done",
"prepublishOnly": "pnpm build",
"publish-release": "pnpm publish --access=public --no-git-checks"
},
"keywords": [
"prompt-injection",
"ai-safety",
"llm",
"guardrails",
"security"
],
"author": "StackOne",
"license": "Apache-2.0",
"packageManager": "pnpm@11.17.0",
"engines": {
"node": ">=22"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "22.23.5",
"onFail": "download"
}
},
"dependencies": {
"nanoid": "6.0.2"
},
"devDependencies": {
"@biomejs/biome": "^2.4.5",
"@huggingface/transformers": "3.8.1",
"fasttext.wasm": "^1.0.1",
"onnxruntime-node": "1.21.0",
"rimraf": "^6.1.3",
"tsdown": "^0.21.0-beta.2",
"typescript": "7.0.2",
"vitest": "^5.0.5"
},
"peerDependencies": {
"@huggingface/transformers": "^3.0.0",
"fasttext.wasm": "^1.0.0",
"onnxruntime-node": ">=1.16.0"
},
"peerDependenciesMeta": {
"@huggingface/transformers": {
"optional": true
},
"fasttext.wasm": {
"optional": true
},
"onnxruntime-node": {
"optional": true
}
}
}