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

@boost/decorators

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/decorators - npm Package Compare versions

Comparing version 4.0.0-alpha.1 to 4.0.0

2

dts/Deprecate.d.ts

@@ -6,3 +6,3 @@ /**

*/
export declare function Deprecate(message?: string): (target: Function | Object, property?: string | symbol | undefined, descriptor?: unknown) => void;
export declare function Deprecate(message?: string): (target: Function | Object, property?: string | symbol, descriptor?: unknown) => void;
//# sourceMappingURL=Deprecate.d.ts.map
{
"name": "@boost/decorators",
"version": "4.0.0-alpha.1",
"version": "4.0.0",
"type": "commonjs",

@@ -64,6 +64,7 @@ "release": "1651512178029",

"require": "./cjs/index.cjs"
}
},
"default": "./lib/index.js"
}
},
"gitHead": "0d0595fe3d95951cc0d3936b7d811aed26306d20"
"gitHead": "07f3182e14af6b7637b23f69fbe3c735835312a9"
}
# Decorators - Boost
[![Build Status](https://github.com/milesj/boost/workflows/Build/badge.svg)](https://github.com/milesj/boost/actions?query=branch%3Amaster)
[![npm version](https://badge.fury.io/js/%40boost%2Fdecorators.svg)](https://www.npmjs.com/package/@boost/decorators)
[![npm deps](https://david-dm.org/milesj/boost.svg?path=packages/decorators)](https://www.npmjs.com/package/@boost/decorators)
![build status](https://img.shields.io/github/workflow/status/milesj/boost/Build)
![npm version](https://img.shields.io/npm/v/@boost/decorators)

@@ -13,11 +12,11 @@ Experimental decorators for common patterns.

class Example {
@Bind()
referencedMethod() {
return this; // Class instance
}
@Bind()
referencedMethod() {
return this; // Class instance
}
@Memoize()
someExpensiveOperation() {
// Do something heavy
}
@Memoize()
someExpensiveOperation() {
// Do something heavy
}
}

@@ -24,0 +23,0 @@ ```

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