Skip to content

Commit

Permalink
this version should work with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Nov 2, 2017
1 parent bb5970e commit 17d26ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/mem-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ global.self = window.self;
import FakeXMLHttpRequest from 'fake-xml-http-request';
import RouteRecognizer from 'route-recognizer';

// import Model from './model';
// import Response from './response';
import startServer from './server';

window.FakeXMLHttpRequest = FakeXMLHttpRequest;
Expand All @@ -28,8 +26,6 @@ export default function(modelFixtureTree, Server, initializer=() => {}) {
DB: {},
Server: {},
Models: registerModels(modelFixtureTree),
// Model: Model,
// Response: Response,
start(options={ logging: true }) {
this.DB = resetDatabase(this.Models, modelFixtureTree);
this.Server = startServer(Server, options);
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "memserver",
"version": "0.7.2",
"version": "0.7.3",
"description": "in-memory database/ORM and http mock server you can run in-browser and node environments. Built for large frontend teams, fast tests and rapid prototyping",
"main": "lib/index.js",
"license": "ISC",
"scripts": {
"test": "sh run-tests.sh",
"bin": "node cli.js"
"bin": "node cli.js",
"prepublish": "rollup -i ./lib/model.js -o model.js -f cjs && rollup -i ./lib/response.js -o response.js -f cjs"
},
"bin": {
"memserver": "cli.js"
Expand Down
3 changes: 2 additions & 1 deletion test/server/mem-server.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ describe('MemServer.Server shortcut functionality', function() {
import Response from '../lib/response';
export default function({ Photo }) {
this.urlPrefix = 'http://facebook.com'
this.urlPrefix = 'http://facebook.com/';
this.namespace = 'api';
this.get('/photos', () => {
const photos = Photo.findAll();
Expand Down

0 comments on commit 17d26ff

Please sign in to comment.