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 4.0.0 to 4.1.0

16

CHANGELOG.md

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

<a name="4.1.0"></a>
# [4.1.0](https://github.com/DethAriel/ng-recaptcha/compare/v4.0.0...v4.1.0) (2018-10-24)
### Bug Fixes
* **component:** fix a potential error during recaptcha rendering ([1c395b5](https://github.com/DethAriel/ng-recaptcha/commit/1c395b5))
### Features
* **module:** skip `forRoot()` when importing `RecaptchaModule` ([7fb97fb](https://github.com/DethAriel/ng-recaptcha/commit/7fb97fb)), closes [#113](https://github.com/DethAriel/ng-recaptcha/issues/113) [#116](https://github.com/DethAriel/ng-recaptcha/issues/116)
* **package:** update peer dependencies to include Angular 7 ([929ef7a](https://github.com/DethAriel/ng-recaptcha/commit/929ef7a))
<a name="4.0.0"></a>

@@ -2,0 +18,0 @@ # [4.0.0](https://github.com/DethAriel/ng-recaptcha/compare/v4.0.0-beta.1...v4.0.0) (2018-09-29)

15

package.json
{
"name": "ng-recaptcha",
"version": "4.0.0",
"version": "4.1.0",
"description": "Angular component for Google reCAPTCHA",

@@ -9,3 +9,3 @@ "scripts": {

"demo:build": "cd demo && yarn build",
"demo:publish": "run-s demo:build demo:publish-gh-pages",
"demo:publish": "yarn demo:publish-gh-pages",
"demo:publish-gh-pages": "gh-pages -d demo/dist/ng-recaptcha",

@@ -17,6 +17,7 @@ "pack-latest": "yarn transpile && mv \"$(npm pack)\" ng-recaptcha-latest.tgz",

"github-release": "conventional-github-releaser --preset angular",
"release": "npm whoami && NPM_TAG=latest npm version $1",
"release-beta": "npm whoami && NPM_TAG=beta npm version $1",
"version": "yarn changelog && git add CHANGELOG.md",
"postversion": "git push && git push --tags && run-s github-release pub",
"prepare-release": "npm whoami && npm version $1",
"push-release": "git push && git push --tags && run-s github-release pub",
"release": "NPM_TAG=latest yarn push-release",
"release-beta": "NPM_TAG=beta yarn push-release",
"version": "yarn changelog && git add CHANGELOG.md && yarn demo:build && git add demo/yarn.lock",
"lint:prod": "tslint --project ./tsconfig.json --type-check",

@@ -46,3 +47,3 @@ "lint": "yarn lint:prod --force",

"peerDependencies": {
"@angular/core": "^6.0.0"
"@angular/core": "^6.0.0 || ^7.0.0"
},

@@ -49,0 +50,0 @@ "devDependencies": {

@@ -51,3 +51,3 @@ # Angular component for Google reCAPTCHA

BrowserModule,
RecaptchaModule.forRoot(), // Keep in mind the "forRoot"-magic nuances!
RecaptchaModule,
// RecaptchaFormsModule, // if you need forms support

@@ -54,0 +54,0 @@ ],

@@ -10,4 +10,8 @@ "use strict";

{ type: core_1.NgModule, args: [{
declarations: [recaptcha_component_1.RecaptchaComponent],
exports: [recaptcha_component_1.RecaptchaComponent],
declarations: [
recaptcha_component_1.RecaptchaComponent,
],
exports: [
recaptcha_component_1.RecaptchaComponent,
],
},] },

@@ -14,0 +18,0 @@ ];

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

[{"__symbolic":"module","version":4,"metadata":{"RecaptchaCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./recaptcha.component","name":"RecaptchaComponent","line":5,"character":18}],"exports":[{"__symbolic":"reference","module":"./recaptcha.component","name":"RecaptchaComponent","line":6,"character":13}]}]}]}}}]
[{"__symbolic":"module","version":4,"metadata":{"RecaptchaCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./recaptcha.component","name":"RecaptchaComponent","line":6,"character":4}],"exports":[{"__symbolic":"reference","module":"./recaptcha.component","name":"RecaptchaComponent","line":9,"character":4}]}]}]}}}]

@@ -25,3 +25,3 @@ "use strict";

this.subscription = this.loader.ready.subscribe(function (grecaptcha) {
if (grecaptcha != null) {
if (grecaptcha != null && grecaptcha.render instanceof Function) {
_this.grecaptcha = grecaptcha;

@@ -28,0 +28,0 @@ _this.renderRecaptcha();

@@ -1,4 +0,3 @@

import { ModuleWithProviders } from '@angular/core';
export declare class RecaptchaModule {
static forRoot(): ModuleWithProviders;
static forRoot(): typeof RecaptchaModule;
}

@@ -10,14 +10,20 @@ "use strict";

}
RecaptchaModule.forRoot = function () {
return {
ngModule: RecaptchaModule,
providers: [
recaptcha_loader_service_1.RecaptchaLoaderService,
],
};
// We need this to maintain backwards-compatibility with v4. Removing this will be a breaking change
// We need this to maintain backwards-compatibility with v4. Removing this will be a breaking change
RecaptchaModule.forRoot =
// We need this to maintain backwards-compatibility with v4. Removing this will be a breaking change
function () {
return RecaptchaModule;
};
RecaptchaModule.decorators = [
{ type: core_1.NgModule, args: [{
exports: [recaptcha_component_1.RecaptchaComponent],
imports: [recaptcha_common_module_1.RecaptchaCommonModule],
exports: [
recaptcha_component_1.RecaptchaComponent,
],
imports: [
recaptcha_common_module_1.RecaptchaCommonModule,
],
providers: [
recaptcha_loader_service_1.RecaptchaLoaderService,
],
},] },

@@ -24,0 +30,0 @@ ];

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

[{"__symbolic":"module","version":4,"metadata":{"RecaptchaModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"./recaptcha.component","name":"RecaptchaComponent","line":7,"character":12}],"imports":[{"__symbolic":"reference","module":"./recaptcha-common.module","name":"RecaptchaCommonModule","line":8,"character":12}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"RecaptchaModule"},"providers":[{"__symbolic":"reference","module":"./recaptcha-loader.service","name":"RecaptchaLoaderService","line":15,"character":8}]}}}}}}]
[{"__symbolic":"module","version":4,"metadata":{"RecaptchaModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"./recaptcha.component","name":"RecaptchaComponent","line":8,"character":4}],"imports":[{"__symbolic":"reference","module":"./recaptcha-common.module","name":"RecaptchaCommonModule","line":11,"character":4}],"providers":[{"__symbolic":"reference","module":"./recaptcha-loader.service","name":"RecaptchaLoaderService","line":14,"character":4}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","name":"RecaptchaModule"}}}}}}]
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