Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c8osdkjscore

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8osdkjscore - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

src/c8o/fullsyncpostdocumentparameter.d.ts

2

package.json
{
"name": "c8osdkjscore",
"version": "1.0.4",
"version": "1.0.5",
"description": "convertigo's sdk js core",

@@ -5,0 +5,0 @@ "main": "bundle/index.umd.js",

@@ -0,0 +0,0 @@ <p align="center">

@@ -0,0 +0,0 @@ import {C8oLogLevel} from "./c8oLogLevel";

@@ -0,0 +0,0 @@ import {C8oCore} from "./c8oCore";

@@ -0,0 +0,0 @@ import {C8oBase} from "./c8oBase";

@@ -228,3 +228,3 @@ "use strict";

if (doc === null) {
throw new c8oRessourceNotFoundException_1.C8oRessourceNotFoundException(c8oExceptionMessage_1.C8oExceptionMessage.toDo());
throw new c8oRessourceNotFoundException_1.C8oRessourceNotFoundException("Cannot find document");
}

@@ -306,3 +306,3 @@ documentRevision = doc._rev;

else {
throw new c8oRessourceNotFoundException_1.C8oRessourceNotFoundException(c8oExceptionMessage_1.C8oExceptionMessage.toDo());
throw new c8oRessourceNotFoundException_1.C8oRessourceNotFoundException("Cannot find document");
}

@@ -315,3 +315,3 @@ });

var fullSyncDatabase = this.getOrCreateFullSyncDatabase(databaseName);
return new Promise(function (resolve) {
return new Promise(function (resolve, reject) {
fullSyncDatabase.getdatabase.get(docid).then(function (result) {

@@ -326,5 +326,8 @@ document = result;

else {
throw new c8oRessourceNotFoundException_1.C8oRessourceNotFoundException(c8oExceptionMessage_1.C8oExceptionMessage.toDo());
throw new c8oRessourceNotFoundException_1.C8oRessourceNotFoundException("Document do not exists");
}
resolve(new fullSyncResponse_1.FullSyncDocumentOperationResponse(document._id, document._rev, true));
})
.catch(function (err) {
reject(new c8oException_1.C8oException(err.message, err));
});

@@ -342,4 +345,4 @@ });

})
.catch(function () {
reject(new c8oException_1.C8oException("TODO"));
.catch(function (err) {
reject(new c8oException_1.C8oException(err.stack));
});

@@ -424,3 +427,3 @@ });

}).catch(function (err) {
reject(new c8oException_1.C8oException("TODO", err));
reject(new c8oException_1.C8oException(err.message, err));
});

@@ -496,4 +499,5 @@ });

}
c8oFullSyncDatabase.getdatabase().put(properties).catch(function () {
throw new c8oException_1.C8oException("TODO");
c8oFullSyncDatabase.getdatabase().put(properties)
.catch(function (err) {
throw new c8oException_1.C8oException(err.message, err);
});

@@ -500,0 +504,0 @@ };

@@ -225,3 +225,3 @@ import {C8oBase} from "./c8oBase";

if (doc === null) {
throw new C8oRessourceNotFoundException(C8oExceptionMessage.toDo());
throw new C8oRessourceNotFoundException("Cannot find document");
}

@@ -308,3 +308,3 @@ documentRevision = doc._rev;

} else {
throw new C8oRessourceNotFoundException(C8oExceptionMessage.toDo());
throw new C8oRessourceNotFoundException("Cannot find document");
}

@@ -321,3 +321,3 @@

return new Promise((resolve) => {
return new Promise((resolve, reject) => {
fullSyncDatabase.getdatabase.get(docid).then((result) => {

@@ -331,6 +331,9 @@ document = result;

} else {
throw new C8oRessourceNotFoundException(C8oExceptionMessage.toDo());
throw new C8oRessourceNotFoundException("Document do not exists");
}
resolve(new FullSyncDocumentOperationResponse(document._id, document._rev, true));
});
})
.catch((err)=>{
reject(new C8oException(err.message, err));
})
});

@@ -349,4 +352,4 @@ }

})
.catch(() => {
reject(new C8oException("TODO"));
.catch((err) => {
reject(new C8oException(err.stack));
});

@@ -437,3 +440,3 @@ });

}).catch((err) => {
reject(new C8oException("TODO", err));
reject(new C8oException(err.message, err));
});

@@ -516,4 +519,5 @@ });

c8oFullSyncDatabase.getdatabase().put(properties).catch(() => {
throw new C8oException("TODO");
c8oFullSyncDatabase.getdatabase().put(properties)
.catch((err) => {
throw new C8oException(err.message, err);
});

@@ -520,0 +524,0 @@

@@ -0,0 +0,0 @@ export class C8oFullSyncChangeListener {

@@ -0,0 +0,0 @@ import {FullSyncAbstractResponse, FullSyncDefaultResponse} from "./fullSyncResponse";

@@ -0,0 +0,0 @@ import "rxjs/add/operator/retry";

@@ -0,0 +0,0 @@ import {C8oException} from "./Exception/c8oException";

@@ -0,0 +0,0 @@ export class C8oLocalCacheResponse {

@@ -0,0 +0,0 @@ import {C8oCore} from "./c8oCore";

@@ -0,0 +0,0 @@ export class C8oLogLevel {

@@ -0,0 +0,0 @@ import {C8oFullSyncTranslator} from "./c8oFullSyncTranslator";

@@ -0,0 +0,0 @@ import "rxjs/add/observable/fromPromise";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import {C8oBase} from "./c8oBase";

@@ -0,0 +0,0 @@ export class C8oTranslator {

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ import {C8oException} from "./c8oException";

@@ -0,0 +0,0 @@ export class C8oExceptionListener {

@@ -12,3 +12,2 @@ import { C8oResponseListener } from "../c8oResponse";

static ressourceNotFound(ressourceName: string): string;
static toDo(): string;
static illegalArgumentInvalidFullSyncDatabaseUrl(fullSyncDatabaseUrlStr: string): string;

@@ -68,3 +67,2 @@ static FullSyncDatabaseInitFailed(databaseName: string): string;

static wrongResult(result: any): string;
static todo(): string;
static unhandledFullSyncRequestable(fullSyncRequestableValue: string): string;

@@ -71,0 +69,0 @@ static closeInputStream(): string;

@@ -39,5 +39,2 @@ "use strict";

};
C8oExceptionMessage.toDo = function () {
return "TODO";
};
C8oExceptionMessage.illegalArgumentInvalidFullSyncDatabaseUrl = function (fullSyncDatabaseUrlStr) {

@@ -205,5 +202,2 @@ return "The fullSync database url '" + fullSyncDatabaseUrlStr + "' is not a valid url";

};
C8oExceptionMessage.todo = function () {
return "todo";
};
C8oExceptionMessage.unhandledFullSyncRequestable = function (fullSyncRequestableValue) {

@@ -210,0 +204,0 @@ return "The fullSync requestable '" + fullSyncRequestableValue + "' is not handled";

@@ -49,6 +49,2 @@ import {C8oResponseListener} from "../c8oResponse";

static toDo(): string {
return "TODO";
}
/** TAG Illegal argument */

@@ -290,5 +286,2 @@

static todo(): string {
return "todo";
}

@@ -295,0 +288,0 @@ static unhandledFullSyncRequestable(fullSyncRequestableValue: string): string {

@@ -0,0 +0,0 @@ import {C8oException} from "./c8oException";

@@ -0,0 +0,0 @@ import {C8oException} from "./c8oException";

@@ -0,0 +0,0 @@ import {C8oException} from "./c8oException";

@@ -0,0 +0,0 @@ export class FullSyncAttachmentParameter {

@@ -0,0 +0,0 @@ import {C8oCore} from "./c8oCore";

@@ -0,0 +0,0 @@ export class FullSyncDeleteDocumentParameter {

@@ -0,0 +0,0 @@ export class FullSyncGetDocumentParameter {

@@ -0,0 +0,0 @@ export class FullSyncGetViewParameter {

@@ -0,0 +0,0 @@ import {C8oCore} from "./c8oCore";

@@ -0,0 +0,0 @@ export class FullSyncReplication {

@@ -0,0 +0,0 @@ import {FullSyncPolicy, FullSyncPostDocumentParameter} from "./c8oCore";

@@ -0,0 +0,0 @@ export class FullSyncRequestParameter {

@@ -0,0 +0,0 @@ export class FullSyncResponse {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export * from "./c8o/c8oCore";

@@ -23,3 +23,39 @@ {

"files" :[
"src/index.ts"
"src/index.ts",
"src/c8o/c8oBase.ts",
"src/c8o/c8oCallTask.ts",
"src/c8o/c8oCore.ts",
"src/c8o/c8oFullsync.ts",
"src/c8o/c8oFullsyncChangeListener.ts",
"src/c8o/c8oFullSyncTranslator.ts",
"src/c8o/c8oHttpInterfaceCore.ts",
"src/c8o/c8oLocalCache.ts",
"src/c8o/c8oLocalCacheResponse.ts",
"src/c8o/c8oLogger.ts",
"src/c8o/c8oLogLevel.ts",
"src/c8o/c8oProgress.ts",
"src/c8o/c8oPromise.ts",
"src/c8o/c8oResponse.ts",
"src/c8o/c8oSettings.ts",
"src/c8o/c8oTranslator.ts",
"src/c8o/c8oUtilsCore.ts",
"src/c8o/fullSyncAttachmentParameter.ts",
"src/c8o/fullSyncDatabase.ts",
"src/c8o/fullSyncDeleteDocumentParameter.ts",
"src/c8o/fullSyncGetDocumentParameter.ts",
"src/c8o/fullSyncGetViewParameter.ts",
"src/c8o/fullsyncpostdocumentparameter.ts",
"src/c8o/fullSyncReplication.ts",
"src/c8o/fullSyncRequestable.ts",
"src/c8o/FullSyncRequestParameter.ts",
"src/c8o/fullSyncResponse.ts",
"src/c8o/priority.service.ts",
"src/c8o/Exception/c8oCouchBaseLiteException.ts",
"src/c8o/Exception/c8oException.ts",
"src/c8o/Exception/c8oExceptionListener.ts",
"src/c8o/Exception/c8oExceptionMessage.ts",
"src/c8o/Exception/c8oHttpRequestException.ts",
"src/c8o/Exception/c8oRessourceNotFoundException.ts",
"src/c8o/Exception/c8oUnavailableLocalCacheException.ts"
],

@@ -26,0 +62,0 @@ "exclude": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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