Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "macroable", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "A simple ES6 class that can be extended to provide macros and getters functionality", | ||
@@ -33,3 +33,3 @@ "main": "build/index.js", | ||
"@adonisjs/require-ts": "^1.0.0", | ||
"@types/node": "^14.6.2", | ||
"@types/node": "^14.11.1", | ||
"commitizen": "^4.2.1", | ||
@@ -39,3 +39,3 @@ "cz-conventional-changelog": "^3.3.0", | ||
"doctoc": "^1.4.0", | ||
"eslint": "^7.7.0", | ||
"eslint": "^7.9.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
@@ -45,9 +45,9 @@ "eslint-plugin-adonis": "^1.0.15", | ||
"github-label-sync": "^2.0.0", | ||
"husky": "^4.2.5", | ||
"husky": "^4.3.0", | ||
"japa": "^3.1.1", | ||
"mrm": "^2.3.5", | ||
"mrm": "^2.5.0", | ||
"np": "^6.5.0", | ||
"npm-audit-html": "^1.4.3", | ||
"prettier": "^2.1.1", | ||
"typescript": "^4.0.2" | ||
"prettier": "^2.1.2", | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -54,0 +54,0 @@ "dependencies": {}, |
<div align="center"><img src="https://res.cloudinary.com/adonisjs/image/upload/q_100/v1557762307/poppinss_iftxlt.jpg" width="600px"></div> | ||
# Macroable | ||
> Extend `class` prototype in style 😎 | ||
@@ -40,3 +41,3 @@ | ||
return 'virk' | ||
} | ||
}, | ||
}) | ||
@@ -50,4 +51,3 @@ ``` | ||
class Foo extends Macroable { | ||
} | ||
class Foo extends Macroable {} | ||
@@ -75,2 +75,3 @@ Foo.macros = {} | ||
### Defining singleton getters | ||
Singleton getters are evaluated only once and then cached value is returned. | ||
@@ -85,2 +86,3 @@ | ||
### Hydrating the class | ||
Using the `hydrate` method, you can remove macros and getters added on a given class. | ||
@@ -103,14 +105,10 @@ | ||
[circleci-image]: https://img.shields.io/circleci/project/github/poppinss/macroable/master.svg?style=for-the-badge&logo=circleci | ||
[circleci-url]: https://circleci.com/gh/poppinss/macroable "circleci" | ||
[circleci-url]: https://circleci.com/gh/poppinss/macroable 'circleci' | ||
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript | ||
[typescript-url]: "typescript" | ||
[typescript-url]: "typescript" | ||
[npm-image]: https://img.shields.io/npm/v/macroable.svg?style=for-the-badge&logo=npm | ||
[npm-url]: https://npmjs.org/package/macroable "npm" | ||
[npm-url]: https://npmjs.org/package/macroable 'npm' | ||
[license-image]: https://img.shields.io/npm/l/macroable?color=blueviolet&style=for-the-badge | ||
[license-url]: LICENSE.md "license" | ||
[license-url]: LICENSE.md 'license' | ||
[audit-report-image]: https://img.shields.io/badge/-Audit%20Report-blueviolet?style=for-the-badge | ||
[audit-report-url]: https://htmlpreview.github.io/?https://github.com/poppinss/macroable/blob/develop/npm-audit.html "audit-report" | ||
[audit-report-url]: https://htmlpreview.github.io/?https://github.com/poppinss/macroable/blob/develop/npm-audit.html 'audit-report' |
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
12958
110