memserver
Advanced tools
Comparing version 2.3.6-beta.0 to 2.3.6
@@ -5,6 +5,16 @@ ### Changelog | ||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). | ||
#### [v2.3.6](https://github.com/izelnakri/memserver/compare/v2.3.6-beta.0...v2.3.6) | ||
- internal pkg-upgrades [`469dd79`](https://github.com/izelnakri/memserver/commit/469dd79e1bc378f288df41e7c0cb154fae3a8c83) | ||
- add more npm scripts [`7fb5953`](https://github.com/izelnakri/memserver/commit/7fb5953c1e760f5aa522929efc9d88f12db2e1a9) | ||
- README.md typofixes [`121ece4`](https://github.com/izelnakri/memserver/commit/121ece4b6ec4bcc0fc7d3c8a68e6f808419c09a7) | ||
- remove a redundant variable on src/utils.ts func [`494a16e`](https://github.com/izelnakri/memserver/commit/494a16e73c12794c55f48879190cd72994f1bdf6) | ||
- remove redundant { classify } imports [`9d2baff`](https://github.com/izelnakri/memserver/commit/9d2baff30215b4e3cc57f552f1ad528a7cb56045) | ||
#### [v2.3.6-beta.0](https://github.com/izelnakri/memserver/compare/v2.3.5...v2.3.6-beta.0) | ||
> 6 December 2020 | ||
- Release 2.3.6-beta.0 [`00da13e`](https://github.com/izelnakri/memserver/commit/00da13edc16174c7741dd1e7682cc22e3795a894) | ||
#### [v2.3.5](https://github.com/izelnakri/memserver/compare/v2.3.4...v2.3.5) | ||
@@ -11,0 +21,0 @@ |
@@ -27,3 +27,3 @@ "use strict"; | ||
function insertFixturesWithTypechecks(modelDefinition, fixtures) { | ||
const modelPrimaryKey = fixtures.reduce((primaryKeys, fixture) => { | ||
fixtures.reduce((primaryKeys, fixture) => { | ||
const modelName = modelDefinition.name; | ||
@@ -38,4 +38,5 @@ const primaryKey = (fixture.uuid ? "uuid" : null) || (fixture.id ? "id" : null); | ||
modelDefinition.insert(fixture); | ||
return primaryKeys.concat([fixture[primaryKey]]); | ||
}, [])[0]; | ||
primaryKeys.push(fixture[primaryKey]); | ||
return primaryKeys; | ||
}, []); | ||
return fixtures; | ||
@@ -42,0 +43,0 @@ } |
{ | ||
"name": "memserver", | ||
"version": "2.3.6-beta.0", | ||
"version": "2.3.6", | ||
"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", | ||
@@ -16,4 +16,5 @@ "author": "Izel Nakri", | ||
"bin": "src/cli.ts", | ||
"changelog:preview": "node_modules/.bin/auto-changelog --stdout --commit-limit false -u", | ||
"changelog:update": "node_modules/.bin/auto-changelog --commit-limit false --package", | ||
"changelog:unreleased": "node_modules/.bin/auto-changelog --stdout --commit-limit false --package --unreleased-only --hide-credit", | ||
"changelog:preview": "node_modules/.bin/auto-changelog --stdout --commit-limit false -u --hide-credit", | ||
"changelog:update": "node_modules/.bin/auto-changelog --commit-limit false --package --hide-credit", | ||
"dev": "node_modules/.bin/tsc --watch", | ||
@@ -25,6 +26,7 @@ "typecheck": "node_modules/.bin/tsc --project tsconfig.json --noEmit", | ||
"publish-modules-for-browser": "node scripts/publish-modules-for-browser-and-node.js", | ||
"release": "release-it" | ||
"release": "release-it", | ||
"release:beta": "release-it --preRelease=beta" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^14.14.10", | ||
"@types/node": "^14.14.20", | ||
"ansi-colors": "4.1.1", | ||
@@ -36,3 +38,3 @@ "fake-xml-http-request": "^2.1.1", | ||
"route-recognizer": "^0.3.4", | ||
"ts-node": "^9.0.0" | ||
"ts-node": "^9.1.1" | ||
}, | ||
@@ -51,11 +53,11 @@ "devDependencies": { | ||
"@ember/string": "file:@ember/string", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
"@rollup/plugin-node-resolve": "^10.0.0", | ||
"@types/jquery": "^3.5.4", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@types/jquery": "^3.5.5", | ||
"auto-changelog": "^2.2.1", | ||
"ava": "3.13.0", | ||
"ava": "3.15.0", | ||
"cors": "^2.8.5", | ||
"ember-cli-fastboot": "2.2.3", | ||
"ember-inflector": "file:ember-inflector", | ||
"ember-source": "3.20.4", | ||
"ember-source": "3.24.0", | ||
"express": "^4.17.1", | ||
@@ -65,7 +67,7 @@ "fastboot": "^3.1.2", | ||
"lerna-changelog": "^1.0.1", | ||
"mber": "^0.13.2", | ||
"mber": "^0.14.2", | ||
"release-it": "^14.2.2", | ||
"sinon": "^9.2.1", | ||
"sinon": "^9.2.2", | ||
"tsconfig-paths": "^3.9.0", | ||
"typescript": "^4.1.2" | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -105,3 +107,3 @@ "babel": { | ||
"git": { | ||
"changelog": "npm run changelog:preview" | ||
"changelog": "npm run changelog:unreleased" | ||
}, | ||
@@ -108,0 +110,0 @@ "github": { |
@@ -92,3 +92,3 @@ ![docker-based-ci](https://github.com/izelnakri/memserver/workflows/docker-based-ci/badge.svg) | ||
// OR: | ||
this.post('/users'. User); | ||
this.post('/users', User); | ||
@@ -217,7 +217,7 @@ this.get('/users', (request: Request) => { | ||
const serializedUserForEndpoint = { user: User.serializer(user); } // or User.serialize(user); | ||
const serializedUserForEndpoint = { user: User.serializer(user) }; // or User.serialize(user); | ||
const users = User.findAll({ active: true }); | ||
const serializedUsersForEndpoint = { users: User.serializer(users); } // or users.map((user) => User.serialize(user)); | ||
const serializedUsersForEndpoint = { users: User.serializer(users) }; // or users.map((user) => User.serialize(user)); | ||
``` | ||
@@ -252,3 +252,3 @@ | ||
const serializedUsersForEndpoint = { users: User.customSerializer(users); } // or users.map((user) => User.customSerialize(user)); | ||
const serializedUsersForEndpoint = { users: User.customSerializer(users) }; // or users.map((user) => User.customSerialize(user)); | ||
``` | ||
@@ -255,0 +255,0 @@ |
'use strict'; | ||
function getDefaultExportFromCjs (x) { | ||
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; | ||
} | ||
function createCommonjsModule(fn, basedir, module) { | ||
return module = { | ||
path: basedir, | ||
exports: {}, | ||
require: function (path, base) { | ||
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base); | ||
} | ||
}, fn(module, module.exports), module.exports; | ||
} | ||
function commonjsRequire () { | ||
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs'); | ||
} | ||
var response = createCommonjsModule(function (module, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function default_1(statusCode = 200, data = {}, headers = {}) { | ||
@@ -30,7 +10,4 @@ return [ | ||
} | ||
exports.default = default_1; | ||
}); | ||
var _default = default_1; | ||
var response$1 = /*@__PURE__*/getDefaultExportFromCjs(response); | ||
module.exports = response$1; | ||
module.exports = _default; |
@@ -23,3 +23,2 @@ declare global { | ||
import chalk from "ansi-colors"; | ||
import { classify, dasherize } from "@ember/string"; | ||
import { pluralize } from "ember-inflector"; | ||
@@ -26,0 +25,0 @@ import setupDom from "./setup-dom"; |
import util from "util"; | ||
import chalk from "ansi-colors"; | ||
import { classify, underscore } from "@ember/string"; | ||
import { underscore } from "@ember/string"; | ||
import { pluralize, singularize } from "ember-inflector"; | ||
@@ -5,0 +5,0 @@ import { insertFixturesWithTypechecks, primaryKeyTypeSafetyCheck, generateUUID } from "./utils"; |
@@ -33,3 +33,3 @@ import chalk from "ansi-colors"; | ||
export function insertFixturesWithTypechecks(modelDefinition, fixtures) { | ||
const modelPrimaryKey = fixtures.reduce((primaryKeys, fixture) => { | ||
fixtures.reduce((primaryKeys, fixture) => { | ||
const modelName = modelDefinition.name; | ||
@@ -53,5 +53,6 @@ const primaryKey = (fixture.uuid ? "uuid" : null) || (fixture.id ? "id" : null); | ||
modelDefinition.insert(fixture); | ||
primaryKeys.push(fixture[primaryKey]); | ||
return primaryKeys.concat([fixture[primaryKey]]); | ||
}, [])[0]; | ||
return primaryKeys; | ||
}, []); | ||
@@ -58,0 +59,0 @@ return fixtures; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
561673
13980
19
9
Updated@types/node@^14.14.20
Updatedts-node@^9.1.1