memserver
Advanced tools
Comparing version 2.3.9 to 2.4.0
@@ -5,5 +5,12 @@ ### Changelog | ||
#### [v2.4.0](https://github.com/izelnakri/memserver/compare/v2.3.9...v2.4.0) | ||
- Workspaces(@memserver/model, @memserver/server) [`#235`](https://github.com/izelnakri/memserver/pull/235) | ||
#### [v2.3.9](https://github.com/izelnakri/memserver/compare/v2.3.8...v2.3.9) | ||
> 5 April 2021 | ||
- upgrade jsdom to 16.5.2 [`b09a1ab`](https://github.com/izelnakri/memserver/commit/b09a1abf25d61e6f08fa5daf8afb16a427993182) | ||
- Release 2.3.9 [`7eb4b6b`](https://github.com/izelnakri/memserver/commit/7eb4b6bfbe80610a024a2ca301ae67b8086c97da) | ||
@@ -10,0 +17,0 @@ #### [v2.3.8](https://github.com/izelnakri/memserver/compare/v2.3.7...v2.3.8) |
102
package.json
{ | ||
"name": "memserver", | ||
"version": "2.3.9", | ||
"type": "module", | ||
"version": "2.4.0", | ||
"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", | ||
@@ -14,66 +15,65 @@ "author": "Izel Nakri", | ||
}, | ||
"workspaces": [ | ||
"packages/@memserver/*" | ||
], | ||
"scripts": { | ||
"bin": "src/cli.ts", | ||
"build": "npm run libs:build && npm run build:tests", | ||
"build:tests": "rm -rf tmp && node scripts/build-test-folders.js", | ||
"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", | ||
"typecheck": "node_modules/.bin/tsc --project tsconfig.json --noEmit", | ||
"test": "node_modules/.bin/ava --verbose", | ||
"build": "npm run prepublishOnly", | ||
"prepublishOnly": "npm run npm-link-ember-packages && tsc --build && npm run publish-modules-for-browser", | ||
"npm-link-ember-packages": "node scripts/npm-link-ember-packages.js", | ||
"publish-modules-for-browser": "node scripts/publish-modules-for-browser-and-node.js", | ||
"libs:build": "node scripts/clean-libraries.js && node scripts/build-libraries.js", | ||
"libs:clean": "node scripts/clean-libraries.js", | ||
"libs:release": "node scripts/release-libraries.js", | ||
"dev": "webpack-dev-server", | ||
"prepack": "npm run build", | ||
"release": "release-it", | ||
"release:beta": "release-it --preRelease=beta" | ||
"release:beta": "release-it --preRelease=beta", | ||
"test": "npm run test:browser && npm run test:node && npm run test:cli", | ||
"test:ci": "npm run test:browser:ci && npm run test:node:ci", | ||
"test:browser": "ENVIRONMENT=development npm run test:browser:ci", | ||
"test:browser:ci": "npm run build && node_modules/.bin/qunitx test/index.ts --browser --debug --failFast --before=packages/@memserver/server/test/helpers/webserver-for-passthrough.js", | ||
"test:node": "ENVIRONMENT=development npm run test:node:ci", | ||
"test:node:ci": "npm run build:tests && qunitx tmp/@memserver/model/index.js tmp/@memserver/response/index.js tmp/@memserver/server/index.js --before=packages/@memserver/server/test/helpers/webserver-for-passthrough.js", | ||
"test:cli": "node_modules/.bin/qunitx packages/@memserver/cli/test/index.js", | ||
"typecheck": "tsc --project tsconfig.json --noEmit --skipLibCheck" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^14.14.37", | ||
"ansi-colors": "4.1.1", | ||
"@emberx/string": "^0.0.11", | ||
"@types/node": "^15.12.0", | ||
"fake-xml-http-request": "^2.1.2", | ||
"inflected": "^2.1.0", | ||
"jsdom": "^16.5.2", | ||
"jsdom": "16.6.0", | ||
"kleur": "4.1.4", | ||
"object-inspect": "^1.10.3", | ||
"pretender": "^3.4.3", | ||
"route-recognizer": "^0.3.4", | ||
"ts-node": "^9.1.1" | ||
"ts-node": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ava/typescript": "^1.1.1", | ||
"@babel/cli": "^7.13.14", | ||
"@babel/core": "^7.13.14", | ||
"@babel/plugin-transform-modules-commonjs": "^7.13.8", | ||
"@babel/cli": "^7.14.3", | ||
"@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/plugin-proposal-decorators": "^7.14.2", | ||
"@babel/plugin-proposal-private-methods": "^7.13.0", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@ember/-internals": "file:@ember/-internals", | ||
"@ember/debug": "file:@ember/debug", | ||
"@ember/deprecated-features": "file:@ember/deprecated-features", | ||
"@ember/error": "file:@ember/error", | ||
"@ember/polyfills": "file:@ember/polyfills", | ||
"@ember/string": "file:@ember/string", | ||
"@rollup/plugin-commonjs": "^18.0.0", | ||
"@rollup/plugin-node-resolve": "^11.2.1", | ||
"@types/jquery": "^3.5.5", | ||
"auto-changelog": "^2.2.1", | ||
"ava": "3.15.0", | ||
"auto-changelog": "^2.3.0", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-module-extension-resolver": "^1.0.0-rc.2", | ||
"cors": "^2.8.5", | ||
"ember-cli-fastboot": "2.2.3", | ||
"ember-inflector": "file:ember-inflector", | ||
"ember-source": "3.20.4", | ||
"express": "^4.17.1", | ||
"fastboot": "^3.1.2", | ||
"jquery": "^3.6.0", | ||
"lerna-changelog": "^1.0.1", | ||
"mber": "^0.14.6", | ||
"release-it": "^14.5.1", | ||
"sinon": "^10.0.0", | ||
"tsconfig-paths": "^3.9.0", | ||
"typescript": "^4.2.3" | ||
"jquery": "3.6.0", | ||
"qunitx": "^0.2.1", | ||
"recursive-lookup": "^1.0.0", | ||
"release-it": "^14.7.0", | ||
"sinon": "^11.1.1", | ||
"strip-ansi": "^7.0.0", | ||
"tsconfig-paths-webpack-plugin": "^3.5.1", | ||
"typescript": "^4.3.2", | ||
"webpack": "^5.37.0", | ||
"webpack-cli": "^4.7.0", | ||
"webpack-dev-server": "^4.0.0-beta.3" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-modules-commonjs" | ||
] | ||
}, | ||
"ava": { | ||
@@ -95,2 +95,10 @@ "files": [ | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"babel-plugin-module-extension-resolver" | ||
] | ||
}, | ||
"prettier": { | ||
@@ -101,3 +109,3 @@ "printWidth": 100, | ||
"volta": { | ||
"node": "15.3.0" | ||
"node": "16.3.0" | ||
}, | ||
@@ -115,2 +123,2 @@ "release-it": { | ||
} | ||
} | ||
} |
@@ -11,3 +11,3 @@ ![docker-based-ci](https://github.com/izelnakri/memserver/workflows/docker-based-ci/badge.svg) | ||
``` npm install -g memserver ``` | ||
``` npm install -g @memserver/cli ``` | ||
@@ -22,5 +22,5 @@ ``` memserver ``` | ||
// MEMSERVER MODEL API | ||
import Model from 'memserver/model'; | ||
import Model from '@memserver/model'; | ||
// OR: | ||
const Model = require('memserver/model').default; | ||
const Model = require('@memserver/model').default; | ||
// THEN: | ||
@@ -74,3 +74,3 @@ | ||
import User from './models/user'; | ||
import Response from 'memserver/response'; | ||
import Response from '@memserver/response'; | ||
@@ -163,3 +163,3 @@ interface Request { | ||
import Server from './memserver/index'; | ||
import Response from 'memserver/response'; | ||
import Response from '@memserver/response'; | ||
@@ -186,3 +186,3 @@ test('testing form submit errors when backend is down', async function (assert) { | ||
import Memserver from "memserver/server"; | ||
import Memserver from "@memserver/server"; | ||
import initializer from "./initializer"; | ||
@@ -214,3 +214,3 @@ import routes from "./routes"; | ||
```js | ||
import Model from 'memserver/model'; | ||
import Model from '@memserver/model'; | ||
@@ -232,3 +232,3 @@ class User extends Model { | ||
```js | ||
import Model from 'memserver/model'; | ||
import Model from '@memserver/model'; | ||
@@ -267,3 +267,3 @@ class User extends Model { | ||
- `memserver/response` does not require `new Reponse`, just `Response`. | ||
- `@memserver/response` does not require `new Reponse`, just `Response`. | ||
@@ -270,0 +270,0 @@ - Less code output and dependencies. |
{ | ||
"ts-node": { | ||
"transpileOnly": true | ||
}, | ||
"compilerOptions": { | ||
/* Basic Options */ | ||
"incremental": false, /* Enable incremental compilation */ | ||
"target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | ||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | ||
// "lib": [], /* Specify library files to be included in the compilation. */ | ||
// "allowJs": true, /* Allow javascript files to be compiled. */ | ||
// "checkJs": true, /* Report errors in .js files. */ | ||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
"target": "ES2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | ||
"module": "commonjs", | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
//"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ | ||
//"sourceMap": true, /* Generates corresponding '.map' file. */ | ||
//"outFile": "./index.js", /* Concatenate and emit output to single file. */ | ||
"rootDir": "./packages", | ||
"outDir": "./dist", /* Redirect output structure to the directory. */ | ||
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ | ||
// "composite": true, /* Enable project compilation */ | ||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ | ||
// "removeComments": true, /* Do not emit comments to output. */ | ||
// "noEmit": true, /* Do not emit outputs. */ | ||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */ | ||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ | ||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ | ||
/* Strict Type-Checking Options */ | ||
//"strict": true, /* Enable all strict type-checking options. */ | ||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ | ||
// "strictNullChecks": true, /* Enable strict null checks. */ | ||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */ | ||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ | ||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ | ||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ | ||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ | ||
/* Additional Checks */ | ||
// "noUnusedLocals": true, /* Report errors on unused locals. */ | ||
// "noUnusedParameters": true, /* Report errors on unused parameters. */ | ||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ | ||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ | ||
/* Module Resolution Options */ | ||
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */ | ||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ | ||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ | ||
// "typeRoots": [], /* List of folders to include type definitions from. */ | ||
// "types": [], /* Type declaration files to be included in compilation. */ | ||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ | ||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ | ||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ | ||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ | ||
// Enhance Strictness | ||
"noUnusedLocals": true, | ||
"noImplicitThis": true, | ||
// Enabling these breaks @glimmer/application, fix and reenable this | ||
"noImplicitAny": true, | ||
"suppressImplicitAnyIndexErrors": false, | ||
"noUnusedParameters": true, | ||
"strictNullChecks": true, | ||
"allowUnreachableCode": false, | ||
"noImplicitReturns": false, | ||
"skipLibCheck": true, | ||
"skipDefaultLibCheck": true, | ||
/* Source Map Options */ | ||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ | ||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ | ||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ | ||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ | ||
"newLine": "LF", | ||
/* Experimental Options */ | ||
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ | ||
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ | ||
/* Advanced Options */ | ||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ | ||
"types": [ | ||
"qunit", | ||
"node" | ||
] | ||
}, | ||
"include": [ | ||
], | ||
"exclude": [ | ||
"memserver-boilerplate", | ||
"memserver", | ||
"dist", | ||
"@ember", | ||
"ember-inflector", | ||
"vendor", | ||
"examples", | ||
"scripts" | ||
] | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance 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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
3411820
23
111
78390
Yes
10
2
23
14
+ Added@emberx/string@^0.0.11
+ Addedkleur@4.1.4
+ Addedobject-inspect@^1.10.3
+ Added@cspotcode/source-map-support@0.8.1(transitive)
+ Added@emberx/string@0.0.11(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/sourcemap-codec@1.4.15(transitive)
+ Added@jridgewell/trace-mapping@0.3.9(transitive)
+ Added@tsconfig/node10@1.0.11(transitive)
+ Added@tsconfig/node12@1.0.11(transitive)
+ Added@tsconfig/node14@1.0.3(transitive)
+ Added@tsconfig/node16@1.0.4(transitive)
+ Added@types/node@15.14.9(transitive)
+ Addedacorn-walk@8.3.2(transitive)
+ Addedjsdom@16.6.0(transitive)
+ Addedkleur@4.1.4(transitive)
+ Addedobject-inspect@1.13.1(transitive)
+ Addedts-node@10.9.2(transitive)
+ Addedv8-compile-cache-lib@3.0.1(transitive)
- Removedansi-colors@4.1.1
- Removed@types/node@14.18.63(transitive)
- Removedansi-colors@4.1.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedjsdom@16.7.0(transitive)
- Removedsource-map-support@0.5.21(transitive)
- Removedts-node@9.1.1(transitive)
Updated@types/node@^15.12.0
Updatedjsdom@16.6.0
Updatedts-node@^10.0.0