Comparing version 1.0.45 to 1.0.46
{ | ||
"name": "c8ocaf", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"description": "Convertigo Angular Framework", | ||
@@ -5,0 +5,0 @@ "main": "bundle/index.umd.js", |
@@ -131,2 +131,14 @@ "use strict"; | ||
return new Promise(function (resolve, reject) { | ||
if (parameters["__localCache_priority"] != undefined && (parameters["__localCache_priority"] == "priority_server" || parameters["__localCache_priority"] == "priority_local")) { | ||
var localCache_priority = void 0; | ||
if (parameters["__localCache_priority"] == "priority_server") { | ||
localCache_priority = c8osdkangular_1.Priority.SERVER; | ||
} | ||
else { | ||
localCache_priority = c8osdkangular_1.Priority.LOCAL; | ||
} | ||
parameters[c8osdkangular_1.C8oLocalCache.PARAM] = new c8osdkangular_1.C8oLocalCache(localCache_priority, parameters["__localCache_ttl"]); | ||
delete parameters["__localCache_priority"]; | ||
delete parameters["__localCache_ttl"]; | ||
} | ||
_this.c8o.callJsonObject(requestable, parameters) | ||
@@ -133,0 +145,0 @@ .then(function (response, parameters) { |
@@ -7,3 +7,3 @@ import {App } from 'ionic-angular'; | ||
import { C8o, C8oLogLevel, C8oException } from "c8osdkangular"; | ||
import {C8o, C8oLogLevel, C8oException, C8oLocalCache, Priority} from "c8osdkangular"; | ||
import {C8oPage} from "./convertigo.page"; | ||
@@ -191,2 +191,14 @@ | ||
return new Promise((resolve, reject)=>{ | ||
if(parameters["__localCache_priority"] != undefined && (parameters["__localCache_priority"] == "priority_server" || parameters["__localCache_priority"] == "priority_local")){ | ||
let localCache_priority; | ||
if(parameters["__localCache_priority"] == "priority_server"){ | ||
localCache_priority = Priority.SERVER; | ||
} | ||
else { | ||
localCache_priority = Priority.LOCAL; | ||
} | ||
parameters[C8oLocalCache.PARAM] = new C8oLocalCache(localCache_priority, parameters["__localCache_ttl"]); | ||
delete parameters["__localCache_priority"]; | ||
delete parameters["__localCache_ttl"]; | ||
} | ||
this.c8o.callJsonObject(requestable, parameters) | ||
@@ -193,0 +205,0 @@ .then((response : any, parameters:Object)=>{ |
Sorry, the diff of this file is not supported yet
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
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
161159
2485