@markprompt/core
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "@markprompt/core", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -11,10 +11,10 @@ "repository": { | ||
"type": "module", | ||
"main": "index.js", | ||
"module": "index.js", | ||
"types": "index.d.ts", | ||
"typings": "index.d.ts", | ||
"main": "./dist/index.js", | ||
"exports": "./dist/index.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
"declaration": "tsc -b tsconfig.json" | ||
"prepack": "tsc --build", | ||
"build": "tsc --build", | ||
"dev": "tsc --build --watch" | ||
} | ||
} |
@@ -7,4 +7,2 @@ # `@markprompt/core` | ||
Currently, | ||
## Installation | ||
@@ -45,2 +43,7 @@ | ||
// called when submitPrompt encounters an error | ||
const onError(error) { | ||
// handle errors | ||
} | ||
// optional options, defaults displayed | ||
@@ -53,3 +56,3 @@ const options = { | ||
await submitPrompt(prompt, projectKey, onAnswerChunk, onReferences, options); | ||
await submitPrompt(prompt, projectKey, onAnswerChunk, onReferences, onError, options); | ||
``` |
{ | ||
"compilerOptions": { | ||
"lib": ["ESNext", "DOM"], | ||
"module": "ESNext", | ||
"allowJs": true, | ||
"checkJs": true, | ||
"emitDeclarationOnly": true, | ||
"lib": ["esnext", "dom"], | ||
"module": "node16", | ||
"target": "es2021", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"moduleResolution": "node", | ||
"incremental": true | ||
}, | ||
"exclude": ["./index.d.ts", "./index.d.ts.map"] | ||
"incremental": true, | ||
"outDir": "dist/", | ||
"strict": true, | ||
"isolatedModules": true, | ||
"skipLibCheck": true | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
56
5900
5
133