feathers-memory
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -118,2 +118,6 @@ var Proto = require('uberproto'); | ||
module.exports = MemoryService; | ||
module.exports = function(options) { | ||
return Proto.create.call(MemoryService, options); | ||
} | ||
module.exports.Service = MemoryService; |
{ | ||
"name": "feathers-memory", | ||
"description": "Feathers in memory service", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"homepage": "https://feathersjs.com", | ||
@@ -6,0 +6,0 @@ "repository": { |
feathers-memory | ||
=============== | ||
An in memory feathers service (probably not for production use) | ||
[](https://travis-ci.org/feathersjs/feathers-memory) | ||
[](https://codeclimate.com/github/feathersjs/feathers-memory) | ||
An in memory CRUD service for [feathers](http://feathersjs.com) (probably not for production use) |
var chai = require('chai'); | ||
var expect = chai.expect; | ||
var MemoryService = require('./memory'); | ||
var Proto = require('uberproto'); | ||
var memory = require('./memory'); | ||
var service; | ||
@@ -9,3 +8,3 @@ | ||
beforeEach(function(done){ | ||
service = Proto.create.call(MemoryService); | ||
service = memory(); | ||
service.create({ | ||
@@ -12,0 +11,0 @@ id: 1, |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13207
9
387
8
2