feature: port from python client lib
This commit is contained in:
parent
129c6cd004
commit
fd1a3b50cb
29 changed files with 3141 additions and 2 deletions
65
package.json
Normal file
65
package.json
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"name": "nomyo-js",
|
||||
"version": "0.1.0",
|
||||
"description": "OpenAI-compatible secure chat client with end-to-end encryption",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/browser/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"require": "./dist/node/index.js",
|
||||
"import": "./dist/esm/index.js"
|
||||
},
|
||||
"browser": {
|
||||
"import": "./dist/browser/index.js",
|
||||
"require": "./dist/browser/index.js"
|
||||
},
|
||||
"types": "./dist/types/index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"native",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "npm run build:node && npm run build:browser && npm run build:types",
|
||||
"build:node": "rollup -c --environment TARGET:node",
|
||||
"build:browser": "rollup -c --environment TARGET:browser",
|
||||
"build:types": "tsc --emitDeclarationOnly",
|
||||
"test": "jest",
|
||||
"test:browser": "karma start",
|
||||
"install": "node-gyp-build",
|
||||
"prepublishOnly": "npm run build && npm test"
|
||||
},
|
||||
"keywords": [
|
||||
"openai",
|
||||
"encryption",
|
||||
"secure",
|
||||
"chat",
|
||||
"e2e",
|
||||
"privacy",
|
||||
"nomyo"
|
||||
],
|
||||
"author": "",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-typescript": "^11.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.0.0",
|
||||
"@rollup/plugin-commonjs": "^25.0.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"rollup": "^4.0.0",
|
||||
"typescript": "^5.3.0",
|
||||
"jest": "^29.0.0",
|
||||
"karma": "^6.4.0",
|
||||
"node-gyp": "^10.0.0",
|
||||
"node-gyp-build": "^4.8.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"nomyo-native": "file:./native"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue