Socket
Socket
Sign inDemoInstall

@common-stack/store-mongo

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-stack/store-mongo - npm Package Compare versions

Comparing version 0.6.1-alpha.4 to 1.0.1-alpha.0

lib/dataloaders/bulk-dataloader.cjs

8

lib/dataloaders/bulk-dataloader.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc