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

c8ocaf

Package Overview
Dependencies
Maintainers
1
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8ocaf - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

4

package.json
{
"name": "c8ocaf",
"version": "1.0.19",
"version": "1.0.20",
"description": "Convertigo Angular Framework",

@@ -14,3 +14,3 @@ "main": "bundle/index.umd.js",

"clean": "rimraf bundles coverage src/**/*.d.ts src/**/*.metadata.json src/**/*.js src/**/*.js.map src/**/*.ngsummary.json",
"prepublish": "ngc && npm run build",
"prepublish": "npm run clean && ngc && npm run build",
"build": "webpack && cp bundles/index.umd.js bundles/index.js"

@@ -17,0 +17,0 @@ },

@@ -11,3 +11,6 @@ import { App } from 'ionic-angular';

private _routerLogLevel;
private static C8OCAF_SESSION_STORAGE_KEY;
private static C8OCAF_SESSION_STORAGE_DATA;
private static C8OCAF_SESSION_STORAGE_MODE;
private static C8OCAF_SESSION_STORAGE_CLEAR;
private storage;
constructor(_c8o: C8o, app: App, toastCtrl: ToastController);

@@ -14,0 +17,0 @@ routerLogLevel: C8oLogLevel;

@@ -12,5 +12,22 @@ "use strict";

this.toastCtrl = toastCtrl;
this.c8oResponses = null;
this._routerLogLevel = c8osdkangular2_1.C8oLogLevel.TRACE;
this.routing_table = Array();
this.c8oResponses = JSON.parse(sessionStorage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_KEY));
switch (sessionStorage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_MODE)) {
case "local":
this.storage = localStorage;
break;
case "session":
this.storage = sessionStorage;
break;
default:
this.storage = null;
}
if (this.storage !== null) {
if (sessionStorage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_CLEAR) === "true") {
this.storage.removeItem(C8oRouter.C8OCAF_SESSION_STORAGE_DATA);
sessionStorage.removeItem(C8oRouter.C8OCAF_SESSION_STORAGE_CLEAR);
}
this.c8oResponses = JSON.parse(this.storage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_DATA));
}
if (this.c8oResponses === null) {

@@ -142,3 +159,5 @@ this.c8oResponses = new Array();

});
sessionStorage.setItem(C8oRouter.C8OCAF_SESSION_STORAGE_KEY, JSON.stringify(this.c8oResponses));
if (this.storage !== null) {
this.storage.setItem(C8oRouter.C8OCAF_SESSION_STORAGE_DATA, JSON.stringify(this.c8oResponses));
}
};

@@ -190,3 +209,5 @@ C8oRouter.prototype.getResponseForView = function (view, requestables) {

}());
C8oRouter.C8OCAF_SESSION_STORAGE_KEY = "_c8ocafsession_storage_data";
C8oRouter.C8OCAF_SESSION_STORAGE_DATA = "_c8ocafsession_storage_data";
C8oRouter.C8OCAF_SESSION_STORAGE_MODE = "_c8ocafsession_storage_mode";
C8oRouter.C8OCAF_SESSION_STORAGE_CLEAR = "_c8ocafsession_storage_clear";
C8oRouter.decorators = [

@@ -193,0 +214,0 @@ { type: core_1.Injectable },

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

[{"__symbolic":"module","version":3,"metadata":{"C8oRouter":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"c8osdkangular2","name":"C8o"},{"__symbolic":"reference","module":"ionic-angular","name":"App"},{"__symbolic":"reference","module":"ionic-angular","name":"ToastController"}]}],"log":[{"__symbolic":"method"}],"addRouteListener":[{"__symbolic":"method"}],"execute_route":[{"__symbolic":"method"}],"c8oCall":[{"__symbolic":"method"}],"storeResponseForView":[{"__symbolic":"method"}],"getResponseForView":[{"__symbolic":"method"}],"getParamForView":[{"__symbolic":"method"}],"findView":[{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"setRoot":[{"__symbolic":"method"}]},"statics":{"C8OCAF_SESSION_STORAGE_KEY":"_c8ocafsession_storage_data"}}}},{"__symbolic":"module","version":1,"metadata":{"C8oRouter":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"c8osdkangular2","name":"C8o"},{"__symbolic":"reference","module":"ionic-angular","name":"App"},{"__symbolic":"reference","module":"ionic-angular","name":"ToastController"}]}],"log":[{"__symbolic":"method"}],"addRouteListener":[{"__symbolic":"method"}],"execute_route":[{"__symbolic":"method"}],"c8oCall":[{"__symbolic":"method"}],"storeResponseForView":[{"__symbolic":"method"}],"getResponseForView":[{"__symbolic":"method"}],"getParamForView":[{"__symbolic":"method"}],"findView":[{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"setRoot":[{"__symbolic":"method"}]},"statics":{"C8OCAF_SESSION_STORAGE_KEY":"_c8ocafsession_storage_data"}}}}]
[{"__symbolic":"module","version":3,"metadata":{"C8oRouter":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"c8osdkangular2","name":"C8o"},{"__symbolic":"reference","module":"ionic-angular","name":"App"},{"__symbolic":"reference","module":"ionic-angular","name":"ToastController"}]}],"log":[{"__symbolic":"method"}],"addRouteListener":[{"__symbolic":"method"}],"execute_route":[{"__symbolic":"method"}],"c8oCall":[{"__symbolic":"method"}],"storeResponseForView":[{"__symbolic":"method"}],"getResponseForView":[{"__symbolic":"method"}],"getParamForView":[{"__symbolic":"method"}],"findView":[{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"setRoot":[{"__symbolic":"method"}]},"statics":{"C8OCAF_SESSION_STORAGE_DATA":"_c8ocafsession_storage_data","C8OCAF_SESSION_STORAGE_MODE":"_c8ocafsession_storage_mode","C8OCAF_SESSION_STORAGE_CLEAR":"_c8ocafsession_storage_clear"}}}},{"__symbolic":"module","version":1,"metadata":{"C8oRouter":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"c8osdkangular2","name":"C8o"},{"__symbolic":"reference","module":"ionic-angular","name":"App"},{"__symbolic":"reference","module":"ionic-angular","name":"ToastController"}]}],"log":[{"__symbolic":"method"}],"addRouteListener":[{"__symbolic":"method"}],"execute_route":[{"__symbolic":"method"}],"c8oCall":[{"__symbolic":"method"}],"storeResponseForView":[{"__symbolic":"method"}],"getResponseForView":[{"__symbolic":"method"}],"getParamForView":[{"__symbolic":"method"}],"findView":[{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"setRoot":[{"__symbolic":"method"}]},"statics":{"C8OCAF_SESSION_STORAGE_DATA":"_c8ocafsession_storage_data","C8OCAF_SESSION_STORAGE_MODE":"_c8ocafsession_storage_mode","C8OCAF_SESSION_STORAGE_CLEAR":"_c8ocafsession_storage_clear"}}}}]

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

{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"C8OCAF_SESSION_STORAGE_KEY":"_c8ocafsession_storage_data"}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}}}],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"C8oRouter","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/src/caf/convertigo.router.d.ts"},{"__symbol":1,"name":"C8o","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/node_modules/c8osdkangular2/src/c8o/c8o.service.d.ts"},{"__symbol":2,"name":"App","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/node_modules/ionic-angular/components/app/app.d.ts"},{"__symbol":3,"name":"ToastController","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/node_modules/ionic-angular/components/toast/toast-controller.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"C8OCAF_SESSION_STORAGE_DATA":"_c8ocafsession_storage_data","C8OCAF_SESSION_STORAGE_MODE":"_c8ocafsession_storage_mode","C8OCAF_SESSION_STORAGE_CLEAR":"_c8ocafsession_storage_clear"}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}}}],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"C8oRouter","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/src/caf/convertigo.router.d.ts"},{"__symbol":1,"name":"C8o","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/node_modules/c8osdkangular2/src/c8o/c8o.service.d.ts"},{"__symbol":2,"name":"App","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/node_modules/ionic-angular/components/app/app.d.ts"},{"__symbol":3,"name":"ToastController","filePath":"C:/DEV_CG/TYPESCRIPT/IONIC2/c8ocaf/node_modules/ionic-angular/components/toast/toast-controller.d.ts"}]}

@@ -20,8 +20,33 @@ import {App } from 'ionic-angular';

*/
private c8oResponses : Array<Object>;
private c8oResponses : Array<Object> = null;
private _routerLogLevel : C8oLogLevel = C8oLogLevel.TRACE;
private static C8OCAF_SESSION_STORAGE_KEY = "_c8ocafsession_storage_data";
private static C8OCAF_SESSION_STORAGE_DATA = "_c8ocafsession_storage_data";
private static C8OCAF_SESSION_STORAGE_MODE = "_c8ocafsession_storage_mode";
private static C8OCAF_SESSION_STORAGE_CLEAR = "_c8ocafsession_storage_clear";
private storage : any;
constructor(private _c8o : C8o, private app: App, public toastCtrl: ToastController){
this.c8oResponses = JSON.parse(sessionStorage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_KEY));
//detect if we are in mobile builder mode and get the mode of storage to use
switch (sessionStorage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_MODE))
{
case "local" :
this.storage = localStorage;
break;
case "session" :
this.storage = sessionStorage;
break;
default :
this.storage = null;
}
// if we are in mobile builder mode
if(this.storage !== null){
if(sessionStorage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_CLEAR) === "true"){// clear flag
this.storage.removeItem(C8oRouter.C8OCAF_SESSION_STORAGE_DATA);
sessionStorage.removeItem(C8oRouter.C8OCAF_SESSION_STORAGE_CLEAR);
}
this.c8oResponses = JSON.parse(this.storage.getItem(C8oRouter.C8OCAF_SESSION_STORAGE_DATA));
}
// if c8oResponses is null then instanciate an empty array
if(this.c8oResponses === null){

@@ -204,4 +229,7 @@ this.c8oResponses = new Array();

});
// session storage for c8ocaf refresh keep state data
sessionStorage.setItem(C8oRouter.C8OCAF_SESSION_STORAGE_KEY, JSON.stringify(this.c8oResponses));
// if we are in mobile builder mode
if(this.storage !== null){
// storage for c8ocaf refresh keep state data
this.storage.setItem(C8oRouter.C8OCAF_SESSION_STORAGE_DATA, JSON.stringify(this.c8oResponses));
}
}

@@ -208,0 +236,0 @@

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