Skip to content

Commit 0217cda

Browse files
committed
added explicit js parsing in grey-matter
1 parent d90717b commit 0217cda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

runtime/promptyjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prompty/core",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Prompty core package",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

runtime/promptyjs/src/core.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ export class Prompty {
7979
engines: {
8080
yaml: {
8181
parse: (input: string) => yaml.load(input) as object
82+
},
83+
js: {
84+
parse: (input) => { console.log("JS execution disabled"); return {}; }
8285
}
8386
}
8487
});

0 commit comments

Comments
 (0)