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

macroable

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macroable - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

14

package.json
{
"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'
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