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.1 to 1.0.2

2

package.json
{
"name": "c8ocaf",
"version": "1.0.1",
"version": "1.0.2",
"description": "Convertigo Angular Framework",

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

@@ -7,3 +7,3 @@ import { C8oRouter } from './convertigo.router';

private navParam;
private loadingCtrl;
loadingCtrl: LoadingController;
private sanitizer;

@@ -10,0 +10,0 @@ router: any;

@@ -16,3 +16,3 @@ import { C8oRouter } from './convertigo.router'

constructor(public routerProvider : C8oRouter, private navParam: NavParams, private loadingCtrl: LoadingController, private sanitizer : DomSanitizer){
constructor(public routerProvider : C8oRouter, private navParam: NavParams, public loadingCtrl: LoadingController, private sanitizer : DomSanitizer){
this.router = routerProvider;

@@ -22,13 +22,13 @@ this.navParams = (navParam.get("navParams") != undefined && navParam.get("navParams") != null) ? navParam.get("navParams") : ""

this.prefixId = "_C8o" + new Date().getTime().toString();
}
}
/**
* Gets the data from previous called requestable list. can be used in an Angular 2 directive such as
*
* Gets the data from previous called requestable list. can be used in an Angular 2 directive such as
*
* *ngFor="let category of listen(['fs://.view']).rows" or
* *ngFor="let Page2 of listen(['fs://.view', 'fs://.view#search']).rows"
*
*
* The data for the first requestable to match is returned
*
* @return the data for one of the requestables in the list.
*
* @return the data for one of the requestables in the list.
*/

@@ -40,10 +40,10 @@ public listen(requestables : string[]) : any {

/**
* Gets the data from previous called requestable list. can be used in an Angular 2 directive such as
*
* Gets the data from previous called requestable list. can be used in an Angular 2 directive such as
*
* *ngFor="let category of listen(['fs://.view']).rows" or
* *ngFor="let Page2 of listen(['fs://.view', 'fs://.view#search']).rows"
*
*
* The data for the first requestable to match is returned
*
* @return the data for one of the requestables in the list.
*
* @return the data for one of the requestables in the list.
*/

@@ -56,6 +56,6 @@ public listenNavParams(requestable : string) : any {

* Calls a Convertigo requestable with parameters as Object
*
*
* @param requestable the requestable to call (examples : "Myproject.MySequence" or "fs://MyLocalDataBase.get")
* @param data , the data to send to the requestable (for example {"var1" : "value1, ..., "var2" : "value2})
*
*
*/

@@ -90,3 +90,3 @@ public call(requestable, data: any = null, navParams : any = null, timeout : number = 500) {

public ionViewDidLoad(){
if(!(this.navParam.get("didLoad") == null || this.navParam.get("didLoad") == undefined || this.navParam.get("didLoad") == '')){

@@ -104,3 +104,3 @@ this.navParam.get("didLoad")(this, this.router.c8o)

public ionViewDidEnter(){
this.didLoad = true;
this.didLoad = true;
if(!(this.navParam.get("didEnter") == null || this.navParam.get("didEnter") == undefined || this.navParam.get("didEnter") == '')){

@@ -113,3 +113,3 @@ this.navParam.get("didEnter")(this, this.router.c8o)

if(!(this.navParam.get("willLeave") == null || this.navParam.get("willLeave") == undefined || this.navParam.get("willLeave") == '')){
this.navParam.get("willLeave")(this, this.router.c8o)
this.navParam.get("willLeave")(this, this.router.c8o)
}

@@ -120,3 +120,3 @@ }

if(!(this.navParam.get("didLeave") == null || this.navParam.get("didLeave") == undefined || this.navParam.get("didLeave") == '')){
this.navParam.get("didLeave")(this, this.router.c8o)
this.navParam.get("didLeave")(this, this.router.c8o)
}

@@ -127,21 +127,21 @@ }

if(!(this.navParam.get("willUnLoad") == null || this.navParam.get("willUnLoad") == undefined || this.navParam.get("willUnLoad") == '')){
this.navParam.get("willUnLoad")(this, this.router.c8o)
this.navParam.get("willUnLoad")(this, this.router.c8o)
}
}
/**
* Get attachment data url a requestable response
*
*
* @param requestables, target requestable list to listen to and build attachment urls (examples : "Myproject.MySequence" or "fs://MyLocalDataBase.get")
* @param attachmentName , the name of the attachment to get
*
*
*/
public getAttachmentUrl(id: string, attachmentName: string, placeholderURL : string): Object{
if(id != null){

@@ -152,4 +152,4 @@ if(this.imgCache[id+"/"+attachmentName] == undefined){

this.imgCache[id+"/"+attachmentName] = this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(response))
})
}
})
}
}

@@ -175,3 +175,3 @@ return this.imgCache[id+"/"+attachmentName]

}
}

@@ -178,0 +178,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