Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
upgrade parser js; bump 0.2.111
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Apr 21, 2021
1 parent d23f487 commit 00cfe10
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 125 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@calcit/procs",
"version": "0.2.110",
"version": "0.2.111",
"main": "./lib/calcit.procs.js",
"devDependencies": {
"@types/node": "^14.14.34",
"typescript": "^4.2.3",
"vite": "^2.0.5",
"webpack": "^5.25.0",
"webpack-cli": "^4.5.0"
"@types/node": "^14.14.41",
"typescript": "^4.2.4",
"vite": "^2.2.1",
"webpack": "^5.35.0",
"webpack-cli": "^4.6.0"
},
"scripts": {
"procs-link": "ln -s ../../ node_modules/@calcit/procs",
"test-js": "nimble genjs && yarn tsc && target=node yarn webpack && node js-out/bundle.js"
},
"dependencies": {
"@calcit/ternary-tree": "0.0.12",
"@cirru/parser.ts": "^0.0.1",
"@cirru/parser.ts": "^0.0.3",
"@cirru/writer.ts": "^0.1.3"
}
}
2 changes: 1 addition & 1 deletion src/calcit_runner/core_func.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ proc nativeReplace(args: seq[CirruData]): CirruData =
return CirruData(kind: crDataString, stringVal: base.stringVal.replace(target.stringVal, to.stringVal))

proc nativeSplit(args: seq[CirruData]): CirruData =
if args.len != 2: raiseEvalError("replace expects 3 arguments", args)
if args.len != 2: raiseEvalError("replace expects 2 arguments", args)
let base = args[0]
let target = args[1]
if base.kind != crDataString: raiseEvalError("replace expects a string", args)
Expand Down
Loading

0 comments on commit 00cfe10

Please sign in to comment.