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

ng-recaptcha

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-recaptcha - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

10

CHANGELOG.md

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

<a name="2.0.2"></a>
## [2.0.2](https://github.com/DethAriel/ng-recaptcha/compare/v2.0.1...v2.0.2) (2017-03-26)
### Features
* **package:** update peer dependencies to include Angular v4 ([b2f04e8](https://github.com/DethAriel/ng-recaptcha/commit/b2f04e8))
<a name="2.0.1"></a>

@@ -2,0 +12,0 @@ ## [2.0.1](https://github.com/DethAriel/ng-recaptcha/compare/v2.0.0...v2.0.1) (2017-03-17)

44

package.json
{
"name": "ng-recaptcha",
"version": "2.0.1",
"version": "2.0.2",
"description": "Angular component for Google reCAPTCHA",
"scripts": {
"transpile": "./node_modules/.bin/ngc -p ./tsconfig.json",
"clean": "./node_modules/.bin/del-cli \"./recaptcha/**/*.+(js|d.ts|js.map|metadata.json)\" \"./index.*+(js|d.ts|js.map|metadata.json)\" \"./forms.*+(js|d.ts|js.map|metadata.json)\" factories",
"transpile": "ngc -p ./tsconfig.json",
"clean": "del-cli '{recaptcha/,index,forms}*.{js,d.ts,js.map,metadata.json}' factories",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"lint:prod": "./node_modules/.bin/tslint --project ./tsconfig.json --type-check",
"lint:prod": "tslint --project ./tsconfig.json --type-check",
"lint": "npm run lint:prod -- --force",
"compile:prod": "npm run clean && npm run lint:prod && npm run transpile",
"compile": "npm run clean && npm run lint && npm run transpile -- --sourceMap",
"pub": "npm run compile:prod && npm publish",
"build": "npm run clean && npm run lint:prod && npm run transpile",
"pub": "npm run build && npm publish",
"prepush": "npm run lint:prod"

@@ -31,26 +30,27 @@ },

"optionalDependencies": {
"@types/grecaptcha": "^2.0.30"
"@types/grecaptcha": "^2.0.31"
},
"peerDependencies": {
"@angular/core": "^2.0.0"
"@angular/core": "^4.0.0 || ^2.0.0"
},
"devDependencies": {
"@angular/common": "^2.4.5",
"@angular/compiler": "^2.4.5",
"@angular/compiler-cli": "^2.4.5",
"@angular/core": "^2.4.5",
"@angular/forms": "^2.4.5",
"@types/core-js": "^0.9.35",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@types/core-js": "^0.9.39",
"@types/grecaptcha": "^2.0.31",
"angular-precommit": "^1.0.3",
"codelyzer": "^2.0.0-beta.4",
"conventional-changelog-cli": "^1.2.0",
"codelyzer": "^3.0.0-beta.4",
"conventional-changelog-cli": "^1.3.1",
"del-cli": "^0.2.1",
"husky": "^0.13.1",
"rxjs": "^5.0.3",
"tslint": "^4.4.2",
"typescript": "^2.1.5",
"zone.js": "^0.7.6"
"husky": "^0.13.3",
"rxjs": "^5.2.0",
"tslint": "^4.5.1",
"typescript": "^2.2.1",
"zone.js": "^0.8.5"
},
"homepage": "https://github.com/DethAriel/ng-recaptcha#readme"
}
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -16,8 +10,10 @@ var core_1 = require("@angular/core");

}());
RecaptchaCommonModule = __decorate([
core_1.NgModule({
declarations: [recaptcha_component_1.RecaptchaComponent],
exports: [recaptcha_component_1.RecaptchaComponent],
})
], RecaptchaCommonModule);
RecaptchaCommonModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [recaptcha_component_1.RecaptchaComponent],
exports: [recaptcha_component_1.RecaptchaComponent],
},] },
];
/** @nocollapse */
RecaptchaCommonModule.ctorParameters = function () { return []; };
exports.RecaptchaCommonModule = RecaptchaCommonModule;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,11 +12,13 @@ var core_1 = require("@angular/core");

}());
RecaptchaFormsModule = __decorate([
core_1.NgModule({
declarations: [
recaptcha_value_accessor_directive_1.RecaptchaValueAccessorDirective,
],
exports: [recaptcha_value_accessor_directive_1.RecaptchaValueAccessorDirective],
imports: [forms_1.FormsModule, recaptcha_common_module_1.RecaptchaCommonModule],
})
], RecaptchaFormsModule);
RecaptchaFormsModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [
recaptcha_value_accessor_directive_1.RecaptchaValueAccessorDirective,
],
exports: [recaptcha_value_accessor_directive_1.RecaptchaValueAccessorDirective],
imports: [forms_1.FormsModule, recaptcha_common_module_1.RecaptchaCommonModule],
},] },
];
/** @nocollapse */
RecaptchaFormsModule.ctorParameters = function () { return []; };
exports.RecaptchaFormsModule = RecaptchaFormsModule;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,17 +6,17 @@ var core_1 = require("@angular/core");

exports.RECAPTCHA_LANGUAGE = new core_1.OpaqueToken('recaptcha-language');
var RecaptchaLoaderService = RecaptchaLoaderService_1 = (function () {
var RecaptchaLoaderService = (function () {
function RecaptchaLoaderService(language) {
this.language = language;
this.init();
this.ready = RecaptchaLoaderService_1.ready.asObservable();
this.ready = RecaptchaLoaderService.ready.asObservable();
}
/** @internal */
RecaptchaLoaderService.prototype.init = function () {
if (RecaptchaLoaderService_1.ready) {
if (RecaptchaLoaderService.ready) {
return;
}
window.ng2recaptchaloaded = function () {
RecaptchaLoaderService_1.ready.next(grecaptcha);
RecaptchaLoaderService.ready.next(grecaptcha);
};
RecaptchaLoaderService_1.ready = new BehaviorSubject_1.BehaviorSubject(null);
RecaptchaLoaderService.ready = new BehaviorSubject_1.BehaviorSubject(null);
var script = document.createElement('script');

@@ -44,8 +32,9 @@ script.innerHTML = '';

}());
RecaptchaLoaderService = RecaptchaLoaderService_1 = __decorate([
core_1.Injectable(),
__param(0, core_1.Optional()), __param(0, core_1.Inject(exports.RECAPTCHA_LANGUAGE)),
__metadata("design:paramtypes", [String])
], RecaptchaLoaderService);
RecaptchaLoaderService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
RecaptchaLoaderService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core_1.Optional }, { type: core_1.Inject, args: [exports.RECAPTCHA_LANGUAGE,] },] },
]; };
exports.RecaptchaLoaderService = RecaptchaLoaderService;
var RecaptchaLoaderService_1;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -15,3 +6,3 @@ var core_1 = require("@angular/core");

var recaptcha_component_1 = require("./recaptcha.component");
var RecaptchaValueAccessorDirective = RecaptchaValueAccessorDirective_1 = (function () {
var RecaptchaValueAccessorDirective = (function () {
function RecaptchaValueAccessorDirective(host) {

@@ -37,24 +28,23 @@ this.host = host;

}());
__decorate([
core_1.HostListener('resolved', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", void 0)
], RecaptchaValueAccessorDirective.prototype, "onResolve", null);
RecaptchaValueAccessorDirective = RecaptchaValueAccessorDirective_1 = __decorate([
core_1.Directive({
providers: [
{
multi: true,
provide: forms_1.NG_VALUE_ACCESSOR,
// tslint:disable-next-line:no-forward-ref
useExisting: core_1.forwardRef(function () { return RecaptchaValueAccessorDirective_1; }),
},
],
// tslint:disable-next-line:directive-selector
selector: 're-captcha[formControlName],re-captcha[formControl],re-captcha[ngModel]',
}),
__metadata("design:paramtypes", [recaptcha_component_1.RecaptchaComponent])
], RecaptchaValueAccessorDirective);
RecaptchaValueAccessorDirective.decorators = [
{ type: core_1.Directive, args: [{
providers: [
{
multi: true,
provide: forms_1.NG_VALUE_ACCESSOR,
// tslint:disable-next-line:no-forward-ref
useExisting: core_1.forwardRef(function () { return RecaptchaValueAccessorDirective; }),
},
],
// tslint:disable-next-line:directive-selector
selector: 're-captcha[formControlName],re-captcha[formControl],re-captcha[ngModel]',
},] },
];
/** @nocollapse */
RecaptchaValueAccessorDirective.ctorParameters = function () { return [
{ type: recaptcha_component_1.RecaptchaComponent, },
]; };
RecaptchaValueAccessorDirective.propDecorators = {
'onResolve': [{ type: core_1.HostListener, args: ['resolved', ['$event'],] },],
};
exports.RecaptchaValueAccessorDirective = RecaptchaValueAccessorDirective;
var RecaptchaValueAccessorDirective_1;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -91,40 +82,23 @@ var core_1 = require("@angular/core");

}());
__decorate([
core_1.Input(),
core_1.HostBinding('attr.id'),
__metadata("design:type", Object)
], RecaptchaComponent.prototype, "id", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], RecaptchaComponent.prototype, "siteKey", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], RecaptchaComponent.prototype, "theme", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], RecaptchaComponent.prototype, "type", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], RecaptchaComponent.prototype, "size", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], RecaptchaComponent.prototype, "tabIndex", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", Object)
], RecaptchaComponent.prototype, "resolved", void 0);
RecaptchaComponent = __decorate([
core_1.Component({
exportAs: 'reCaptcha',
selector: 're-captcha',
template: "",
}),
__metadata("design:paramtypes", [recaptcha_loader_service_1.RecaptchaLoaderService,
core_1.NgZone])
], RecaptchaComponent);
RecaptchaComponent.decorators = [
{ type: core_1.Component, args: [{
exportAs: 'reCaptcha',
selector: 're-captcha',
template: "",
},] },
];
/** @nocollapse */
RecaptchaComponent.ctorParameters = function () { return [
{ type: recaptcha_loader_service_1.RecaptchaLoaderService, },
{ type: core_1.NgZone, },
]; };
RecaptchaComponent.propDecorators = {
'id': [{ type: core_1.Input }, { type: core_1.HostBinding, args: ['attr.id',] },],
'siteKey': [{ type: core_1.Input },],
'theme': [{ type: core_1.Input },],
'type': [{ type: core_1.Input },],
'size': [{ type: core_1.Input },],
'tabIndex': [{ type: core_1.Input },],
'resolved': [{ type: core_1.Output },],
};
exports.RecaptchaComponent = RecaptchaComponent;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -13,3 +7,3 @@ var core_1 = require("@angular/core");

var recaptcha_component_1 = require("./recaptcha.component");
var RecaptchaModule = RecaptchaModule_1 = (function () {
var RecaptchaModule = (function () {
function RecaptchaModule() {

@@ -19,3 +13,3 @@ }

return {
ngModule: RecaptchaModule_1,
ngModule: RecaptchaModule,
providers: [

@@ -28,9 +22,10 @@ recaptcha_loader_service_1.RecaptchaLoaderService,

}());
RecaptchaModule = RecaptchaModule_1 = __decorate([
core_1.NgModule({
exports: [recaptcha_component_1.RecaptchaComponent],
imports: [recaptcha_common_module_1.RecaptchaCommonModule],
})
], RecaptchaModule);
RecaptchaModule.decorators = [
{ type: core_1.NgModule, args: [{
exports: [recaptcha_component_1.RecaptchaComponent],
imports: [recaptcha_common_module_1.RecaptchaCommonModule],
},] },
];
/** @nocollapse */
RecaptchaModule.ctorParameters = function () { return []; };
exports.RecaptchaModule = RecaptchaModule;
var RecaptchaModule_1;
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