@common-stack/store-mongo
Advanced tools
Comparing version 0.6.1-alpha.4 to 1.0.1-alpha.0
@@ -1,7 +0,9 @@ | ||
import * as DataLoader from 'dataloader'; | ||
import { IBaseService } from '../interfaces'; | ||
import DataLoader from 'dataloader'; | ||
import { DataLoaderOptions, IBaseService, IDataLoader } from '../interfaces'; | ||
export declare class BulkDataLoader<T extends { | ||
id: string; | ||
}> extends DataLoader<string, T> { | ||
}> extends DataLoader<string, T | null> implements IDataLoader<T> { | ||
private readonly service; | ||
constructor(service: IBaseService<T>); | ||
withOptions: DataLoader<DataLoaderOptions<T>, T[], DataLoaderOptions<T>>; | ||
} |
@@ -1,2 +0,9 @@ | ||
import * as DataLoader from 'dataloader'; | ||
export type IDataLoader<T> = DataLoader<string, T>; | ||
import DataLoader from 'dataloader'; | ||
import { IBaseService } from './base-service'; | ||
export type DataLoaderOptions<T> = Parameters<IBaseService<T>['getAll']>[0] & { | ||
id: string; | ||
searchKey: keyof T; | ||
}; | ||
export type IDataLoader<T> = DataLoader<string, T> & { | ||
withOptions: DataLoader<DataLoaderOptions<T>, T[]>; | ||
}; |
@@ -1,5 +0,1 @@ | ||
import * as mongoose from 'mongoose'; | ||
export interface IMongoDBSettings { | ||
mongoConnection: mongoose.Connection; | ||
} | ||
export interface IMongoOptions { | ||
@@ -15,4 +11,4 @@ collectionName?: string; | ||
caseSensitiveUserName?: boolean; | ||
idProvider?: (() => string | Object); | ||
idProvider?: () => string | Object; | ||
dateProvider?: (date?: Date) => any; | ||
} |
{ | ||
"name": "@common-stack/store-mongo", | ||
"version": "0.6.1-alpha.4", | ||
"version": "1.0.1-alpha.0", | ||
"description": "Sample core for higher packages to depend on", | ||
"license": "ISC", | ||
"author": "CDMBase LLC", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"main": "lib/index.cjs", | ||
"module": "lib/index.mjs", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
"build": "npm run build:clean && npm run build:lib", | ||
"build:clean": "rimraf lib", | ||
"build:lib": "webpack", | ||
"build:lib": "rollup -c rollup.config.mjs", | ||
"build:lib:watch": "npm run build:lib -- --watch", | ||
@@ -22,6 +26,7 @@ "jest": "./node_modules/.bin/jest", | ||
"dependencies": { | ||
"@common-stack/core": "0.6.1-alpha.4" | ||
"@common-stack/core": "1.0.1-alpha.0" | ||
}, | ||
"peerDependencies": { | ||
"dataloader": ">=2.0.0", | ||
"inversify": "*", | ||
"mongoose": ">=5.13.5" | ||
@@ -35,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "8f1002595ef0da183fc26d37a4a185b9c94cfc76" | ||
"gitHead": "e23d595c58eedb3ecda0913cf206f54d8a9e470f" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
65
1448
105254
4
3
1
+ Added@common-stack/core@1.0.1-alpha.0(transitive)
+ Addedinversify@6.0.2(transitive)
- Removed@common-stack/core@0.6.1-alpha.4(transitive)
- Removedfractal-objects@0.10.4(transitive)