connect-mikro-orm
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -15,2 +15,3 @@ "use strict"; | ||
const express_session_1 = require("express-session"); | ||
const parse_json_1 = require("../../utils/parse-json"); | ||
/** | ||
@@ -39,3 +40,3 @@ * One day in seconds. | ||
this.debug('GOT %s', session.json); | ||
const result = JSON.parse(session.json); | ||
const result = (0, parse_json_1.parseJson)(session.json); | ||
fn(undefined, result); | ||
@@ -144,3 +145,3 @@ }) | ||
result = sessions.map((session) => { | ||
const sess = JSON.parse(session.json); | ||
const sess = (0, parse_json_1.parseJson)(session.json); | ||
sess.id = session.id; | ||
@@ -147,0 +148,0 @@ return sess; |
export interface ISession { | ||
id: string; | ||
json: string; | ||
json: string | Record<string, unknown>; | ||
expiredAt: number; | ||
} |
{ | ||
"name": "connect-mikro-orm", | ||
"description": "A MikroORM-based session store", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "dist", |
@@ -5,4 +5,10 @@ <div align="center"> | ||
[![CodeFactor](https://www.codefactor.io/repository/github/DiogoAbu/connect-mikro-orm/badge)](https://www.codefactor.io/repository/github/DiogoAbu/connect-mikro-orm) | ||
[![GitHub Repo stars](https://img.shields.io/github/stars/DiogoAbu/connect-mikro-orm)](https://github.com/DiogoAbu/connect-mikro-orm/stargazers) | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/connect-mikro-orm"> | ||
<img alt="npm" src="https://img.shields.io/npm/v/connect-mikro-orm?style=flat-square"> | ||
</a> | ||
<a href="https://github.com/DiogoAbu/connect-mikro-orm"> | ||
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/DiogoAbu/connect-mikro-orm?style=flat-square"> | ||
</a> | ||
</p> | ||
@@ -9,0 +15,0 @@ </div> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20935
16
265
88