mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-18 23:51:43 +00:00
Change marshal lib
This commit is contained in:
parent
8243719852
commit
d386a07d50
3 changed files with 181 additions and 619 deletions
|
@ -4,7 +4,7 @@ var path = require("path");
|
|||
var crypto = require("crypto");
|
||||
var request = require("request");
|
||||
var logger = require("winston");
|
||||
var Marshal = require("marshal");
|
||||
var Marshal = require("marsha");
|
||||
var querystring = require('querystring');
|
||||
var config = require(path.join(__dirname, "../../config/config"));
|
||||
const SECRET_TOKEN = config.secret_token;
|
||||
|
@ -94,7 +94,7 @@ EnslClient.decodeSession = sessionCookie => {
|
|||
|
||||
var parsedSession;
|
||||
try {
|
||||
parsedSession = (new Marshal((new Buffer(text, "base64")).toString("ascii"))).parsed;
|
||||
parsedSession = Marshal.load(text, 'base64');
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
}
|
||||
|
|
794
npm-shrinkwrap.json
generated
794
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load diff
|
@ -38,7 +38,7 @@
|
|||
"gulp-watch": "~4.3.4",
|
||||
"javascript-state-machine": "~2.3.5",
|
||||
"lodash": "~3.10.0",
|
||||
"marshal": "~0.1.3",
|
||||
"marsha": "https://registry.npmjs.org/marsha/-/marsha-0.1.0.tgz",
|
||||
"mongoose": "~4.1.1",
|
||||
"morgan": "~1.6.1",
|
||||
"request": "~2.60.0",
|
||||
|
|
Loading…
Reference in a new issue