Skip to content

Commit

Permalink
Update repository name and move to npm scope (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Aug 21, 2018
1 parent 69d16dc commit 55e1ba0
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 211 deletions.
2 changes: 1 addition & 1 deletion packages/express/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_js:
- '6'
addons:
code_climate:
repo_token: 966bd479ee7d82eee5081abd823b995893aa7342de0da6fbf5b5ec0632cb76c8
repo_token: c348bb60c0659ca8c1afe04ca7738e1681138e1ce0a30daaa5e7de11016888ad
notifications:
email: false
slack:
Expand Down
14 changes: 7 additions & 7 deletions packages/express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Change Log

## [v1.0.0-pre.2](https://github.com/feathersjs/feathers-express/tree/v1.0.0-pre.2) (2017-10-18)
[Full Changelog](https://github.com/feathersjs/feathers-express/compare/v1.0.0-pre.1...v1.0.0-pre.2)
## [v1.0.0-pre.2](https://github.com/feathersjs/express/tree/v1.0.0-pre.2) (2017-10-18)
[Full Changelog](https://github.com/feathersjs/express/compare/v1.0.0-pre.1...v1.0.0-pre.2)

**Merged pull requests:**

- Also export Express top level functionality [\#5](https://github.com/feathersjs/feathers-express/pull/5) ([daffl](https://github.com/daffl))
- Update mocha to the latest version 🚀 [\#4](https://github.com/feathersjs/feathers-express/pull/4) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update debug to the latest version 🚀 [\#2](https://github.com/feathersjs/feathers-express/pull/2) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Also export Express top level functionality [\#5](https://github.com/feathersjs/express/pull/5) ([daffl](https://github.com/daffl))
- Update mocha to the latest version 🚀 [\#4](https://github.com/feathersjs/express/pull/4) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update debug to the latest version 🚀 [\#2](https://github.com/feathersjs/express/pull/2) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v1.0.0-pre.1](https://github.com/feathersjs/feathers-express/tree/v1.0.0-pre.1) (2017-07-19)
## [v1.0.0-pre.1](https://github.com/feathersjs/express/tree/v1.0.0-pre.1) (2017-07-19)
**Merged pull requests:**

- Update dependencies to enable Greenkeeper 🌴 [\#1](https://github.com/feathersjs/feathers-express/pull/1) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update dependencies to enable Greenkeeper 🌴 [\#1](https://github.com/feathersjs/express/pull/1) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))



Expand Down
21 changes: 10 additions & 11 deletions packages/express/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# feathers-express
# @feathersjs/express

[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers-express.svg)](https://greenkeeper.io/)
[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/express.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/feathersjs/feathers-express.png?branch=master)](https://travis-ci.org/feathersjs/feathers-express)
[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-express/badges/gpa.svg)](https://codeclimate.com/github/feathersjs/feathers-express)
[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-express/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-express/coverage)
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-express.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-express)
[![Download Status](https://img.shields.io/npm/dm/feathers-express.svg?style=flat-square)](https://www.npmjs.com/package/feathers-express)
[![Build Status](https://travis-ci.org/feathersjs/express.png?branch=master)](https://travis-ci.org/feathersjs/express)
[![Test Coverage](https://codeclimate.com/github/feathersjs/express/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/express/coverage)
[![Dependency Status](https://img.shields.io/david/feathersjs/express.svg?style=flat-square)](https://david-dm.org/feathersjs/express)
[![Download Status](https://img.shields.io/npm/dm/@feathersjs/express.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/express)

> Feathers Express framework bindings and REST provider
Expand All @@ -15,22 +14,22 @@ This plugin turns a Feathers v3+ application into a drop-in replacement for any
## Installation

```
npm install feathers-express --save
npm install @feathersjs/express --save
```

> _Important:_ This plugin only works with `feathers` 3.0 and later
## Documentation

Please refer to the [feathers-express API documentation](https://docs.feathersjs.com/api/express.html) for more details.
Please refer to the [@feathersjs/express API documentation](https://docs.feathersjs.com/api/express.html) for more details.

## Complete Example

Here's an example of a Feathers server that uses `feathers-express`.
Here's an example of a Feathers server that uses `@feathersjs/express`.

```js
const feathers = require('feathers');
const expressify = require('feathers-express');
const expressify = require('@feathersjs/express');

const app = expressify(feathers());

Expand Down
6 changes: 3 additions & 3 deletions packages/express/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const debug = require('debug')('feathers-express');
const debug = require('debug')('@feathersjs/express');
const express = require('express');
const Proto = require('uberproto');

module.exports = function feathersExpress (feathersApp) {
if (!feathersApp || typeof feathersApp.setup !== 'function') {
throw new Error('feathers-express requires a valid Feathers application instance');
throw new Error('@feathersjs/express requires a valid Feathers application instance');
}

if (!feathersApp.version || feathersApp.version < '3.0.0') {
throw new Error(`feathers-express requires an instance of a Feathers application version 3.x or later (got ${feathersApp.version || 'unknown'})`);
throw new Error(`@feathersjs/express requires an instance of a Feathers application version 3.x or later (got ${feathersApp.version || 'unknown'})`);
}

const expressApp = express();
Expand Down
Loading

0 comments on commit 55e1ba0

Please sign in to comment.