@accounts/types
Advanced tools
Comparing version 0.1.0-beta.11 to 0.1.0-beta.12
@@ -1,2 +0,39 @@ | ||
{"/Users/leo/dev/accounts-js/accounts/packages/types/src/index.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/types/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":48}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":37}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":32}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":29}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":36}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":37}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":37}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":45}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":30}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":47}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{},"b":{}} | ||
{ | ||
"/Users/leo/dev/accounts-js/accounts/packages/types/src/index.ts": { | ||
"path": "/Users/leo/dev/accounts-js/accounts/packages/types/src/index.ts", | ||
"statementMap": { | ||
"0": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 43 } }, | ||
"1": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 48 } }, | ||
"2": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 31 } }, | ||
"3": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 37 } }, | ||
"4": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 32 } }, | ||
"5": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 29 } }, | ||
"6": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 36 } }, | ||
"7": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 37 } }, | ||
"8": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 37 } }, | ||
"9": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 45 } }, | ||
"10": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 30 } }, | ||
"11": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 38 } }, | ||
"12": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 47 } } | ||
}, | ||
"fnMap": {}, | ||
"branchMap": {}, | ||
"s": { | ||
"0": 1, | ||
"1": 1, | ||
"2": 1, | ||
"3": 1, | ||
"4": 1, | ||
"5": 1, | ||
"6": 1, | ||
"7": 1, | ||
"8": 1, | ||
"9": 1, | ||
"10": 1, | ||
"11": 1, | ||
"12": 1 | ||
}, | ||
"f": {}, | ||
"b": {} | ||
} | ||
} |
@@ -5,3 +5,3 @@ import { User } from './user'; | ||
import { ConnectionInformations } from './connection-informations'; | ||
export interface DatabaseInterface { | ||
export interface DatabaseInterface extends DatabaseInterfaceSessions { | ||
findUserByEmail(email: string): Promise<User | null>; | ||
@@ -26,2 +26,4 @@ findUserByUsername(username: string): Promise<User | null>; | ||
addEmailVerificationToken(userId: string, email: string, token: string): Promise<void>; | ||
} | ||
export interface DatabaseInterfaceSessions { | ||
findSessionById(sessionId: string): Promise<Session | null>; | ||
@@ -28,0 +30,0 @@ findSessionByToken(token: string): Promise<Session | null>; |
@@ -7,4 +7,5 @@ export interface Session { | ||
userAgent?: string; | ||
ip?: string; | ||
createdAt: string; | ||
updatedAt: string; | ||
} |
{ | ||
"name": "@accounts/types", | ||
"version": "0.1.0-beta.11", | ||
"version": "0.1.0-beta.12", | ||
"description": "Accounts-js Types", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,6 +0,5 @@ | ||
# Accounts Types | ||
### @accounts/types | ||
# @accounts/types | ||
This package is a devDependency for most packages of the suite. | ||
It contains the types used across the Accouts Suite. | ||
It contains the types used across the Accouts Suite. |
@@ -6,3 +6,3 @@ import { User } from './user'; | ||
export interface DatabaseInterface { | ||
export interface DatabaseInterface extends DatabaseInterfaceSessions { | ||
// Find user by identity fields | ||
@@ -60,4 +60,5 @@ findUserByEmail(email: string): Promise<User | null>; | ||
addEmailVerificationToken(userId: string, email: string, token: string): Promise<void>; | ||
} | ||
// Session related operations | ||
export interface DatabaseInterfaceSessions { | ||
findSessionById(sessionId: string): Promise<Session | null>; | ||
@@ -64,0 +65,0 @@ |
@@ -7,4 +7,5 @@ export interface Session { | ||
userAgent?: string; | ||
ip?: string; | ||
createdAt: string; | ||
updatedAt: string; | ||
} |
@@ -6,11 +6,5 @@ { | ||
"outDir": "./lib", | ||
"typeRoots": [ | ||
"node_modules/@types" | ||
] | ||
"typeRoots": ["node_modules/@types"] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"__tests__", | ||
"lib" | ||
] | ||
"exclude": ["node_modules", "__tests__", "lib"] | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
55341
808
0