angular2-qrcode
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -26,3 +26,3 @@ "use strict"; | ||
this.qr.make(); | ||
var imgTagString = this.qr.createImageTag(this.type, 0); | ||
var imgTagString = this.qr.createImgTag(this.type, 0); | ||
var el = this.elementRef.nativeElement; | ||
@@ -29,0 +29,0 @@ el.innerHTML = imgTagString; |
@@ -10,8 +10,8 @@ import {Component, Input, ElementRef, OnInit} from '@angular/core'; | ||
@Input() public data: string = ''; | ||
@Input() public size: number = 128; | ||
@Input() public type: number = 4; | ||
@Input() public level: string = 'M'; | ||
@Input() data: string = ''; | ||
@Input() size: number = 128; | ||
@Input() type: number = 4; | ||
@Input() level: string = 'M'; | ||
public qr: QRCode; | ||
private qr: QRCode; | ||
@@ -28,3 +28,3 @@ constructor( | ||
let imgTagString = this.qr.createImageTag(this.type, 0); | ||
let imgTagString = this.qr.createImgTag(this.type, 0); | ||
let el: HTMLElement = this.elementRef.nativeElement; | ||
@@ -31,0 +31,0 @@ el.innerHTML = imgTagString; |
{ | ||
"name": "angular2-qrcode", | ||
"version": "1.0.0", | ||
"description": "An Angular 2 component that displays a QR Code.", | ||
"version": "1.0.1", | ||
"description": "An Angular 2 component that generates a QR Code.", | ||
"main": "angular2-qrcode.js", | ||
"scripts": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/SuperiorJT/angular2-qrcode.git" | ||
}, | ||
"scripts": { | ||
"preinstall": "npm i typings -g", | ||
"prepublish": "typings install && tsc", | ||
"postinstall": "typings install" | ||
}, | ||
"keywords": [ | ||
@@ -17,4 +25,6 @@ "qrcode", | ||
"dependencies": { | ||
"qrcode-generator": "^1.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "2.0.0-rc.4", | ||
"qrcode-generator": "^1.0.0", | ||
"rxjs": "5.0.0-beta.6", | ||
@@ -28,4 +38,5 @@ "zone.js": "0.6.12" | ||
}, | ||
"typings": "angular2-qrcode.d.ts", | ||
"author": "superiorjt <superiorjt@gmail.com>", | ||
"license": "MIT" | ||
} |
@@ -6,5 +6,4 @@ { | ||
"es6-collections": "registry:dt/es6-collections#0.5.1+20160316155526", | ||
"es6-promise": "registry:dt/es6-promise#0.0.0+20160614011821", | ||
"qrcode-generator": "registry:dt/qrcode-generator#0.0.0+20160412152159" | ||
"es6-promise": "registry:dt/es6-promise#0.0.0+20160614011821" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 2 instances in 1 package
AI detected security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
0
0
41
0
8223
10
135
2
2
- Removed@angular/core@2.0.0-rc.4
- Removedrxjs@5.0.0-beta.6
- Removedzone.js@0.6.12