Skip to content

Commit f44045b

Browse files
author
asmit-patil
committed
updated internal _ prefix
1 parent 44c948d commit f44045b

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed
12.7 KB
Binary file not shown.

dist/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ exports.config = {
2929
_workflow: true,
3030
created_by: true,
3131
publish_details: true,
32-
type: true,
32+
_type: true,
3333
updated_by: true,
3434
},
3535
contentType: {
@@ -47,7 +47,7 @@ exports.config = {
4747
_workflow: true,
4848
created_by: true,
4949
publish_details: true,
50-
type: true,
50+
_type: true,
5151
updated_by: true,
5252
},
5353
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/datasync-content-store-mongodb",
33
"author": "Contentstack Ecosystem <ecosystem@contentstack.com>",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "Contentstack datasync's mongodb library. Helps to store contents in mongodb",
66
"main": "dist/index.js",
77
"dependencies": {

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const config = {
4747
_workflow: true,
4848
created_by: true,
4949
publish_details: true,
50-
type: true,
50+
_type: true,
5151
updated_by: true,
5252
},
5353
contentType: {
@@ -65,7 +65,7 @@ export const config = {
6565
_workflow: true,
6666
created_by: true,
6767
publish_details: true,
68-
type: true,
68+
_type: true,
6969
updated_by: true,
7070
},
7171
},

typings/config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export declare const config: {
2727
_workflow: boolean;
2828
created_by: boolean;
2929
publish_details: boolean;
30-
type: boolean;
30+
_type: boolean;
3131
updated_by: boolean;
3232
};
3333
contentType: {
@@ -45,7 +45,7 @@ export declare const config: {
4545
_workflow: boolean;
4646
created_by: boolean;
4747
publish_details: boolean;
48-
type: boolean;
48+
_type: boolean;
4949
updated_by: boolean;
5050
};
5151
};

typings/connection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* Copyright (c) 2019 Contentstack LLC
44
* MIT Licensed
55
*/
6-
export declare const connect: (config: any) => Promise<{}>;
6+
export declare const connect: (config: any) => Promise<unknown>;

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export declare const setAssetConnector: (instance: IAssetConnector) => void;
3737
export declare const setConfig: (config: IConfig) => void;
3838
export declare const getConfig: () => IConfig;
3939
export declare const getMongoClient: () => Mongodb;
40-
export declare const start: (connector: IAssetConnector, config?: IConfig) => Promise<{}>;
40+
export declare const start: (connector: IAssetConnector, config?: IConfig) => Promise<unknown>;
4141
export {};

typings/mongodb.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export declare class Mongodb {
2121
readonly config: IMongoConfig;
2222
constructor(mongodb: any, assetStore: any, config: IMongoConfig);
2323
publish(data: any): Promise<any>;
24-
publishAsset(data: any): Promise<{}>;
25-
updateContentType(contentType: any): Promise<{}>;
26-
publishEntry(entry: any): Promise<{}>;
24+
publishAsset(data: any): Promise<unknown>;
25+
updateContentType(contentType: any): Promise<unknown>;
26+
publishEntry(entry: any): Promise<unknown>;
2727
unpublish(data: any): Promise<any>;
28-
delete(data: any): Promise<{}>;
28+
delete(data: any): Promise<unknown>;
2929
private unpublishEntry;
3030
private deleteEntry;
3131
private unpublishAsset;

0 commit comments

Comments
 (0)