Socket
Socket
Sign inDemoInstall

@feathersjs/hooks

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/hooks - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.6.3](https://github.com/feathersjs/hooks/compare/v0.6.2...v0.6.3) (2021-03-31)
### Bug Fixes
* **hooks:** Add Deno tests and build, CI and fix build ([#73](https://github.com/feathersjs/hooks/issues/73)) ([44787cd](https://github.com/feathersjs/hooks/commit/44787cd2106c6d1ff4fe8bc5d59362e14427c468))
## [0.6.2](https://github.com/feathersjs/hooks/compare/v0.6.1...v0.6.2) (2021-02-08)

@@ -8,0 +19,0 @@

2

deno/base.ts
import { Middleware } from './compose.ts';
import { copyToSelf, copyProperties } from './utils';
import { copyToSelf, copyProperties } from './utils.ts';

@@ -4,0 +4,0 @@ export const HOOKS: string = Symbol('@feathersjs/hooks') as any;

@@ -5,3 +5,3 @@ import { compose, Middleware } from './compose.ts';

} from './base.ts';
import { copyProperties } from './utils';
import { copyProperties } from './utils.ts';

@@ -8,0 +8,0 @@ export function getOriginal (fn: any): any {

@@ -5,5 +5,5 @@ import { Middleware } from './compose.ts';

} from './base.ts';
import { functionHooks, hookDecorator, objectHooks, HookMap } from './hooks';
import { functionHooks, hookDecorator, objectHooks, HookMap } from './hooks.ts';
export * from './hooks';
export * from './hooks.ts';
export * from './compose.ts';

@@ -10,0 +10,0 @@ export * from './base.ts';

{
"name": "@feathersjs/hooks",
"version": "0.6.2",
"version": "0.6.3",
"description": "Async middleware for JavaScript and TypeScript",

@@ -34,7 +34,9 @@ "homepage": "https://feathersjs.com",

"build:browser": "webpack --config build/webpack.config.js",
"build:deno": "shx mkdir -p deno && node build/deno",
"build": "npm run compile && npm run build:browser",
"compile": "shx rm -rf lib/ && tsc",
"build": "npm run compile && npm run build:deno && npm run build:browser",
"prepublish": "npm run build",
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"test:mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
"test": "npm run build && npm run test:mocha",
"build:deno": "shx rm -rf deno && shx mkdir -p deno && node build/deno",
"test:deno": "npm run build:deno && deno test --config tsconfig.json test/deno_test.ts"
},

@@ -57,14 +59,14 @@ "directories": {

"devDependencies": {
"@types/chai": "^4.2.14",
"@types/mocha": "^8.0.3",
"@types/node": "^14.14.6",
"mocha": "^8.2.1",
"@types/chai": "^4.2.15",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"mocha": "^8.3.2",
"shx": "^0.3.3",
"ts-loader": "^8.0.10",
"ts-node": "^9.0.0",
"typescript": "^4.0.5",
"webpack": "^5.4.0",
"webpack-cli": "^4.2.0"
"ts-loader": "^8.1.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.3",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0"
},
"gitHead": "115535c21976b73996c9fb5f2f7ae6075656c706"
"gitHead": "9ec49e295bce9a2ba135ef4a0d78f2ffab492adc"
}
# Hooks
[![CI GitHub action](https://github.com/feathersjs/hooks/workflows/Node%20CI/badge.svg)](https://github.com/feathersjs/hooks/actions?query=workflow%3A%22Node+CI%22)
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/hooks)](https://david-dm.org/feathersjs/feathers?path=packages/hooks)
[![Deno CI](https://github.com/feathersjs/hooks/actions/workflows/deno.yml/badge.svg)](https://github.com/feathersjs/hooks/actions/workflows/deno.yml)
[![Download Status](https://img.shields.io/npm/dm/@feathersjs/hooks.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/hooks)
`@feathersjs/hooks` brings Koa style middleware to any asynchronous JavaScript function.
`@feathersjs/hooks` brings Koa style middleware to any asynchronous JavaScript and TypeScript function or class.
## Installation
### Node
```

@@ -15,2 +17,14 @@ npm install @feathersjs/hooks --save

```js
const { hooks } = require('@feathersjs/hooks');
import { hooks } from '@feathersjs/hooks';
```
### Deno
```js
import { hooks } from 'https://deno.land/x/hooks@x.x.x/deno/index.ts';
```
## Documentation

@@ -17,0 +31,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