Commit 1fbfea1e authored by Tobinsk's avatar Tobinsk
Browse files

Merge branch '2-error-encoding' into 'master'

Resolve "Error encoding"

Closes #2

See merge request !2
parents 3ac319d3 fc3b3fe1
FROM node:8-alpine
FROM node:10-slim
# add basic libs
RUN apk --no-cache add \
RUN apt-get update && apt-get install -y \
bash \
g++ \
gcc \
ca-certificates \
lz4-dev \
musl-dev \
cyrus-sasl-dev \
openssl-dev \
make \
python \
bash \
git
RUN apk add --no-cache --virtual .build-deps gcc zlib-dev libc-dev bsd-compat-headers py-setuptools libexecinfo libexecinfo-dev
# Create app directory
RUN mkdir -p /usr/local/app
......@@ -33,4 +28,4 @@ RUN npm install
RUN npm run build
# run app
CMD node dist/index.js
\ No newline at end of file
CMD node dist/index.js
......@@ -699,6 +699,11 @@
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
"optional": true
},
"jsesc": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA=="
},
"json-schema": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
......
......@@ -8,6 +8,7 @@
"@types/winston": "^2.3.9",
"concurrently": "^3.5.1",
"geolinker-common": "git+https://gitlab+deploy-token-1:vnsdCm_t84QGVA2U4kw4@source.dodis.ch/histhub/geolinker-common.git",
"jsesc": "^2.5.2",
"nconf": "^0.10.0",
"neo4j-driver": "^1.6.1",
"request": "^2.87.0",
......
import {v1 as neo4j} from 'neo4j-driver';
import * as jsesc from 'jsesc';
export class Linker {
private nconf;
private logger;
......@@ -59,6 +59,14 @@ export class Linker {
}, 1000);
});
});
}
/**
* There is no build in function to escape
* https://github.com/neo4j/neo4j-javascript-driver/issues/398
* @param string
*/
public escape(data: string) {
return jsesc(data);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment