Skip to content

Commit 725e2d8

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents 64e7be9 + 7ca148e commit 725e2d8

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

dist/terminus-client.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/terminus-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/woql.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ WOQL.join = function(...list){ return new WOQLQuery().join(...list); }
5050
WOQL.unique = function(prefix, vari, type){ return new WOQLQuery().unique(prefix, vari, type); }
5151
WOQL.idgen = function(prefix, vari, type, output){ return new WOQLQuery().idgen(prefix, vari, type, output); }
5252
WOQL.typecast = function(vara, type, varb){ return new WOQLQuery().typecast(vara, type, varb); }
53+
WOQL.re = function(pattern, test, matches){ return new WOQLQuery().re(pattern, test, matches); }
5354

5455
WOQL.less = function(v1, v2){ return new WOQLQuery().less(v1, v2); }
5556
WOQL.greater = function(v1, v2){ return new WOQLQuery().greater(v1, v2); }
@@ -166,6 +167,10 @@ WOQLQuery.prototype.length = function(va, vb){
166167
return this;
167168
}
168169

170+
WOQLQuery.prototype.re = function(p, s, m){
171+
this.cursor['re'] = [p, s, m];
172+
return this;
173+
}
169174

170175
WOQLQuery.prototype.remote = function(json){
171176
this.cursor['remote'] = [json];

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb/terminus-client",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "TerminusDB client library",
55
"main": "index.js",
66
"directories": {
@@ -42,11 +42,11 @@
4242
},
4343
"scripts": {
4444
"clean": "rimraf -r dist/*",
45-
"test": "npm run lint && npm run cover",
45+
"test": "npm run cover",
4646
"test:only": "mocha --require @babel/register --require @babel/preset-env --recursive",
4747
"test:watch": "mocha --watch --require @babel/register --require @babel/preset-env --recursive",
4848
"test:examples": "node examples/",
49-
"cover": "nyc --check-coverage --lines 55 npm run test:only ",
49+
"cover": "nyc --check-coverage --lines 40 npm run test:only ",
5050
"lint": "eslint --fix lib/**",
5151
"build": "webpack --mode production",
5252
"prepare": "npm run clean && npm run test && npm run build",

0 commit comments

Comments
 (0)