Socket
Socket
Sign inDemoInstall

@common-stack/store-mongo

Package Overview
Dependencies
3
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.6 to 0.5.1-alpha.1

68

lib/index.js

@@ -214,17 +214,17 @@ /******/ (() => { // webpackBootstrap

(function (IBaseServiceCommands) {
IBaseServiceCommands["count"] = "count";
IBaseServiceCommands["get"] = "get";
IBaseServiceCommands["getAll"] = "getAll";
IBaseServiceCommands["getByIds"] = "getByIds";
IBaseServiceCommands["create"] = "create";
IBaseServiceCommands["insert"] = "insert";
IBaseServiceCommands["bulkCreate"] = "bulkCreate";
IBaseServiceCommands["update"] = "update";
IBaseServiceCommands["delete"] = "delete";
IBaseServiceCommands["getAllWithCount"] = "getAllWithCount";
IBaseServiceCommands["Count"] = "count";
IBaseServiceCommands["Get"] = "get";
IBaseServiceCommands["GetAll"] = "getAll";
IBaseServiceCommands["GetByIds"] = "getByIds";
IBaseServiceCommands["Create"] = "create";
IBaseServiceCommands["Insert"] = "insert";
IBaseServiceCommands["BulkCreate"] = "bulkCreate";
IBaseServiceCommands["Update"] = "update";
IBaseServiceCommands["Delete"] = "delete";
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount";
})(IBaseServiceCommands = exports.IBaseServiceCommands || (exports.IBaseServiceCommands = {}));
var ICacheControlScope;
(function (ICacheControlScope) {
ICacheControlScope["PUBLIC"] = "PUBLIC";
ICacheControlScope["PRIVATE"] = "PRIVATE";
ICacheControlScope["Public"] = "PUBLIC";
ICacheControlScope["Private"] = "PRIVATE";
})(ICacheControlScope = exports.ICacheControlScope || (exports.ICacheControlScope = {}));

@@ -234,8 +234,8 @@ /** All Moleculer Topic names are extended from this. */

(function (IMoleculerServiceName) {
IMoleculerServiceName["dummy"] = "dummy";
IMoleculerServiceName["Dummy"] = "dummy";
})(IMoleculerServiceName = exports.IMoleculerServiceName || (exports.IMoleculerServiceName = {}));
var ISortEnum;
(function (ISortEnum) {
ISortEnum["ASC"] = "ASC";
ISortEnum["DESC"] = "DESC";
ISortEnum["Asc"] = "ASC";
ISortEnum["Desc"] = "DESC";
})(ISortEnum = exports.ISortEnum || (exports.ISortEnum = {}));

@@ -315,3 +315,3 @@

actions: {
[interfaces_1.IBaseServiceCommands.get]: {
[interfaces_1.IBaseServiceCommands.Get]: {
params: {

@@ -322,3 +322,3 @@ id: 'string',

},
[interfaces_1.IBaseServiceCommands.count]: {
[interfaces_1.IBaseServiceCommands.Count]: {
params: {

@@ -329,3 +329,3 @@ criteria: { type: 'object', optional: true },

},
[interfaces_1.IBaseServiceCommands.bulkCreate]: {
[interfaces_1.IBaseServiceCommands.BulkCreate]: {
params: {

@@ -336,3 +336,3 @@ data: { type: 'array', items: 'object' },

},
[interfaces_1.IBaseServiceCommands.create]: {
[interfaces_1.IBaseServiceCommands.Create]: {
params: {

@@ -343,3 +343,3 @@ data: 'object',

},
[interfaces_1.IBaseServiceCommands.delete]: {
[interfaces_1.IBaseServiceCommands.Delete]: {
params: {

@@ -350,3 +350,3 @@ id: 'string',

},
[interfaces_1.IBaseServiceCommands.getAll]: {
[interfaces_1.IBaseServiceCommands.GetAll]: {
params: {

@@ -361,3 +361,3 @@ criteria: 'object|optional',

},
[interfaces_1.IBaseServiceCommands.getAllWithCount]: {
[interfaces_1.IBaseServiceCommands.GetAllWithCount]: {
params: {

@@ -372,3 +372,3 @@ criteria: 'object|optional',

},
[interfaces_1.IBaseServiceCommands.insert]: {
[interfaces_1.IBaseServiceCommands.Insert]: {
params: {

@@ -380,3 +380,3 @@ data: 'object',

},
[interfaces_1.IBaseServiceCommands.update]: {
[interfaces_1.IBaseServiceCommands.Update]: {
params: {

@@ -438,30 +438,30 @@ id: 'string',

bulkCreate(data) {
return this.callAction(interfaces_1.IBaseServiceCommands.bulkCreate, { data });
return this.callAction(interfaces_1.IBaseServiceCommands.BulkCreate, { data });
}
count(criteria) {
return this.callAction(interfaces_1.IBaseServiceCommands.count, { criteria });
return this.callAction(interfaces_1.IBaseServiceCommands.Count, { criteria });
}
create(data) {
return this.callAction(interfaces_1.IBaseServiceCommands.create, { data });
return this.callAction(interfaces_1.IBaseServiceCommands.Create, { data });
}
delete(id) {
return this.callAction(interfaces_1.IBaseServiceCommands.delete, { id });
return this.callAction(interfaces_1.IBaseServiceCommands.Delete, { id });
}
get(id) {
return this.callAction(interfaces_1.IBaseServiceCommands.get, { id });
return this.callAction(interfaces_1.IBaseServiceCommands.Get, { id });
}
getAll(options) {
return this.callAction(interfaces_1.IBaseServiceCommands.getAll, options);
return this.callAction(interfaces_1.IBaseServiceCommands.GetAll, options);
}
getByIds(ids) {
return this.callAction(interfaces_1.IBaseServiceCommands.getByIds, { ids });
return this.callAction(interfaces_1.IBaseServiceCommands.GetByIds, { ids });
}
getAllWithCount(options) {
return this.callAction(interfaces_1.IBaseServiceCommands.getAllWithCount, options);
return this.callAction(interfaces_1.IBaseServiceCommands.GetAllWithCount, options);
}
insert(data, overwrite) {
return this.callAction(interfaces_1.IBaseServiceCommands.insert, { data, overwrite });
return this.callAction(interfaces_1.IBaseServiceCommands.Insert, { data, overwrite });
}
update(id, data, overwrite) {
return this.callAction(interfaces_1.IBaseServiceCommands.update, { id, data, overwrite });
return this.callAction(interfaces_1.IBaseServiceCommands.Update, { id, data, overwrite });
}

@@ -468,0 +468,0 @@ async callAction(command, params) {

@@ -35,16 +35,16 @@ export declare type Maybe<T> = T | null;

export declare enum IBaseServiceCommands {
count = "count",
get = "get",
getAll = "getAll",
getByIds = "getByIds",
create = "create",
insert = "insert",
bulkCreate = "bulkCreate",
update = "update",
delete = "delete",
getAllWithCount = "getAllWithCount"
Count = "count",
Get = "get",
GetAll = "getAll",
GetByIds = "getByIds",
Create = "create",
Insert = "insert",
BulkCreate = "bulkCreate",
Update = "update",
Delete = "delete",
GetAllWithCount = "getAllWithCount"
}
export declare enum ICacheControlScope {
PUBLIC = "PUBLIC",
PRIVATE = "PRIVATE"
Public = "PUBLIC",
Private = "PRIVATE"
}

@@ -63,3 +63,3 @@ /** Represents a null return value. */

export declare enum IMoleculerServiceName {
dummy = "dummy"
Dummy = "dummy"
}

@@ -84,3 +84,3 @@ export declare type IMutation = {

};
export declare type IQuerynodeArgs = {
export declare type IQueryNodeArgs = {
id: Scalars['ID'];

@@ -93,4 +93,4 @@ };

export declare enum ISortEnum {
ASC = "ASC",
DESC = "DESC"
Asc = "ASC",
Desc = "DESC"
}

@@ -97,0 +97,0 @@ export declare type ISubscription = {

{
"name": "@common-stack/store-mongo",
"version": "0.4.6",
"version": "0.5.1-alpha.1",
"description": "Sample core for higher packages to depend on",

@@ -22,3 +22,3 @@ "license": "ISC",

"dependencies": {
"@common-stack/core": "0.4.6"
"@common-stack/core": "0.5.1-alpha.1"
},

@@ -35,3 +35,3 @@ "peerDependencies": {

},
"gitHead": "1ab9acb066dfe014d058194d510a7f36395caa1f"
"gitHead": "5f35d014b754967f8fcd12a22435bb570ce93025"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc