-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from marmelab/modernize
Modernize
- Loading branch information
Showing
15 changed files
with
6,495 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "stage-0"], | ||
"plugins": ["transform-runtime", "add-module-exports"] | ||
"presets": [["@babel/preset-env"]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '7.0' | ||
- 'lts/*' | ||
cache: | ||
directories: | ||
- node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,37 +2,35 @@ | |
"name": "fakerest", | ||
"version": "2.2.0", | ||
"repository": "https://github.com/marmelab/FakeRest", | ||
"description": | ||
"Patch XMLHttpRequest to fake a REST server based on JSON data. ", | ||
"description": "Patch XMLHttpRequest to fake a REST server based on JSON data. ", | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"main": "dist/FakeRest.min.js", | ||
"author": "François Zaninotto <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"array.prototype.findindex": "~2.0.0", | ||
"babel-core": "~6.22.1", | ||
"babel-loader": "~6.2.10", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-runtime": "^6.22.0", | ||
"babel-polyfill": "^6.22.0", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-stage-0": "^6.22.0", | ||
"babel-runtime": "~6.22.0", | ||
"fetch-mock": "~5.9.3", | ||
"@babel/preset-env": "^7.12.13", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-runtime": "^6.26.0", | ||
"fetch-mock": "^9.11.0", | ||
"jasmine-core": "^2.5.2", | ||
"karma": "1.4.1", | ||
"karma-chrome-launcher": "2.0.0", | ||
"karma-jasmine": "1.1.0", | ||
"karma-phantomjs-launcher": "1.0.2", | ||
"karma-spec-reporter": "0.0.26", | ||
"object.assign": "~4.0.1", | ||
"sinon": "~1.14.1", | ||
"string.prototype.endswith": "~0.2.0", | ||
"webpack": "~1.7.1" | ||
"terser-webpack-plugin": "^5.1.1", | ||
"webpack": "^5.20.0", | ||
"webpack-cli": "^4.5.0" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^6.22.0" | ||
} | ||
"babel-runtime": "^6.26.0" | ||
}, | ||
"browserslist": "> 0.25%, not dead" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import Server from 'Server'; | ||
import FetchServer from 'FetchServer'; | ||
import Collection from 'Collection'; | ||
import Single from 'Single'; | ||
import { Server } from './Server'; | ||
import { FetchServer } from './FetchServer'; | ||
import { Collection } from './Collection'; | ||
import { Single } from './Single'; | ||
|
||
export default { | ||
Server: Server, | ||
FetchServer: FetchServer, | ||
Collection: Collection, | ||
Single: Single | ||
} | ||
export { Server, FetchServer, Collection, Single }; | ||
export default { Server, FetchServer, Collection, Single }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters