Skip to content

Commit b8808a0

Browse files
committed
2 parents a43bdba + 851830b commit b8808a0

File tree

3 files changed

+45
-44
lines changed

3 files changed

+45
-44
lines changed

docs/api/woqlClient.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For situations where you want to communicate with a TerminusDB server API, the W
1717

1818
**Example**
1919
```js
20-
const client = new TerminusClient.Client(SERVER_URL)
20+
const client = new TerminusClient.WOQLClient(SERVER_URL)
2121
await client.connect(params)
2222
client.db("test")
2323
client.checkout("dev")
@@ -45,7 +45,7 @@ or the promise will be rejected.
4545

4646
**Example**
4747
```js
48-
client.connect({key="mykey",user="admin"})
48+
client.connect({key:"mykey",user:"admin"})
4949
```
5050

5151
### Create Database

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"license": "Apache-2.0",
2222
"dependencies": {
2323
"axios": "^0.21.1",
24-
"y18n": ">=4.0.1",
2524
"sockjs": ">=0.3.20",
26-
"ssri": ">=6.0.2"
25+
"ssri": ">=6.0.2",
26+
"y18n": ">=4.0.1"
2727
},
2828
"devDependencies": {
2929
"@babel/core": "^7.13.10",
@@ -41,7 +41,7 @@
4141
"eslint-plugin-import": "^2.19.1",
4242
"eslint-plugin-prettier": "3.1.3",
4343
"html-loader": "^0.5.5",
44-
"html-webpack-plugin": "^3.2.0",
44+
"html-webpack-plugin": "^5.3.1",
4545
"install": "^0.13.0",
4646
"jsdoc-parse": "^5.0.0",
4747
"jsdoc-to-markdown": "^6.0.1",

webpack.config.js

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,51 @@ var version = `v${PACKAGE.version}`
77
require('@babel/register')
88
// Webpack Configuration
99
const config = {
10-
// Entry
11-
entry: path.resolve(__dirname, 'index.js'),
12-
// Output
13-
output: {
14-
path: path.resolve(__dirname, `dist/`),
15-
filename: 'terminusdb-client.min.js',
16-
sourceMapFilename: 'terminusdb-client.min.js.map',
17-
libraryTarget: 'umd',
18-
library: 'TerminusDBClient',
19-
globalObject: 'this',
20-
},
21-
node: {
22-
process: false,
23-
},
24-
// Loaders
25-
module: {
26-
rules: [
27-
// JavaScript/JSX Files
28-
{
29-
test: /\.js$/,
30-
exclude: /node_modules/,
31-
loader: 'babel-loader',
32-
},
33-
],
34-
},
35-
devtool: 'source-map',
36-
// Plugins
10+
// Entry
11+
entry: path.resolve(__dirname, 'index.js'),
12+
// Output
13+
output: {
14+
filename: 'terminusdb-client.min.js',
15+
sourceMapFilename: 'terminusdb-client.min.js.map',
16+
libraryTarget: 'umd',
17+
library: 'TerminusDBClient',
18+
globalObject: 'this',
19+
},
20+
// Loaders
21+
module: {
22+
rules: [
23+
// JavaScript/JSX Files
24+
{
25+
test: /\.js$/,
26+
exclude: /node_modules/,
27+
loader: 'babel-loader',
28+
},
29+
],
30+
},
31+
devtool: 'source-map',
32+
// Plugins
33+
resolve: {
34+
fallback: {
35+
"https": false,
36+
}
37+
}
3738
}
3839

3940
module.exports = function(env, argv) {
40-
if (argv.mode === 'development') {
41-
config.watch = true
42-
}
41+
if (argv.mode === 'development') {
42+
config.watch = true
43+
}
4344

44-
if (argv.mode === 'production') {
45-
config.plugins = [
46-
new HtmlWebPackPlugin({
47-
template: './index.html',
48-
filename: 'index.html',
49-
}),
50-
]
51-
}
45+
if (argv.mode === 'production') {
46+
config.plugins = [
47+
new HtmlWebPackPlugin({
48+
template: './index.html',
49+
filename: 'index.html',
50+
}),
51+
]
52+
}
5253

53-
return config
54+
return config
5455
}
5556

5657
// Exports

0 commit comments

Comments
 (0)