Comparing version 4.0.0 to 4.0.1
@@ -22,3 +22,3 @@ "use strict"; | ||
constructor() { | ||
if (!this.constructor.hasOwnProperty('macros') || !this.constructor.hasOwnProperty('getters')) { | ||
if (!this.constructor['macros'] || !this.constructor['getters']) { | ||
throw new Error('Set static properties "macros = {}" and "getters = {}" on the class for the macroable to work.'); | ||
@@ -112,3 +112,1 @@ } | ||
exports.Macroable = Macroable; | ||
Macroable.macros = {}; | ||
Macroable.getters = {}; |
{ | ||
"name": "macroable", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A simple ES6 class that can be extended to provide macros and getters functionality", | ||
@@ -30,8 +30,8 @@ "main": "build/index.js", | ||
"@adonisjs/mrm-preset": "^2.2.3", | ||
"@types/node": "^12.12.21", | ||
"@types/node": "^13.1.1", | ||
"commitizen": "^4.0.3", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"del-cli": "^3.0.0", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-adonis": "^1.0.4", | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-adonis": "^1.0.5", | ||
"husky": "^3.1.0", | ||
@@ -42,3 +42,3 @@ "japa": "^3.0.1", | ||
"ts-node": "^8.5.4", | ||
"typescript": "^3.7.3" | ||
"typescript": "^3.7.4" | ||
}, | ||
@@ -45,0 +45,0 @@ "dependencies": {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11941
189