Socket
Socket
Sign inDemoInstall

bind-decorator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bind-decorator - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

index.d.ts

22

package.json
{
"name": "bind-decorator",
"version": "1.0.3",
"version": "1.0.4",
"description": "The fastest automatic method.bind(this) decorator",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"main": "index.js",
"typings": "index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "tsc -d -m commonjs --moduleResolution node -t es5 --outDir ./dist ./src/index.ts"
"test": "tsc && jest --verbose",
"jest-cov": "jest --verbose --coverage --collectCoverageFrom src/index.js",
"map-cov": "remap-istanbul -i ./coverage/coverage-final.json -t lcovonly -o ./lcov.info",
"report-cov": "codeclimate-test-reporter < ./lcov.info",
"coverage": "npm run jest-cov && npm run map-cov && npm run report-cov",
"typings": "typings install",
"npm": "tsc -d -p . && mv ./src/index.js . && mv ./src/index.d.ts .",
"clean": "rm -f ./src/index.js* ./__tests__/*.d.ts ./__tests__/*.js* ./lcov.info && rm -f -R ./coverage"
},

@@ -30,4 +36,8 @@ "repository": {

"devDependencies": {
"typescript": "^1.8.10"
"codeclimate-test-reporter": "^0.3.3",
"jest": "^15.1.1",
"remap-istanbul": "^0.6.4",
"typescript": "^1.8.10",
"typings": "^1.3.3"
}
}

@@ -5,2 +5,9 @@ # bind-decorator

[![npm version](https://badge.fury.io/js/bind-decorator.svg)](https://badge.fury.io/js/bind-decorator)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/NoHomey/bind-decorator)
[![Build Status](https://semaphoreci.com/api/v1/nohomey/bind-decorator/branches/master/badge.svg)](https://semaphoreci.com/nohomey/bind-decorator)
[![Code Climate](https://codeclimate.com/github/NoHomey/bind-decorator/badges/gpa.svg)](https://codeclimate.com/github/NoHomey/bind-decorator)
[![Test Coverage](https://codeclimate.com/github/NoHomey/bind-decorator/badges/coverage.svg)](https://codeclimate.com/github/NoHomey/bind-decorator/coverage)
[![Issue Count](https://codeclimate.com/github/NoHomey/bind-decorator/badges/issue_count.svg)](https://codeclimate.com/github/NoHomey/bind-decorator)
`@bind` is just a little faster version of [`@autobind`](https://github.com/andreypopp/autobind-decorator/blob/master/src/index.js) for decorating methods only, by binding them to the current context. It is written in TypeScript and follows the latest `decorator`s [purposal](http://tc39.github.io/proposal-decorators/).

@@ -79,1 +86,20 @@

# Testing
1. `npm install`
2. `npm test`
# Contributing
1. `npm install`
2. `npm run typings`
3. Make changes
4. If necessary add some tests to `__tests__`
5. `npm test`
6. Make a Pull Request
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