First commit
This commit is contained in:
23
hGameTest/node_modules/json-loader/.npmignore
generated
vendored
Normal file
23
hGameTest/node_modules/json-loader/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/node_modules
|
||||
|
||||
/example/assets
|
||||
|
||||
/test/js
|
||||
/coverage
|
||||
|
||||
/.idea
|
||||
|
||||
.DS_Store
|
||||
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
.eslintcache
|
||||
/dist
|
||||
/local
|
||||
/reports
|
||||
Thumbs.db
|
||||
.idea
|
||||
.vscode
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
55
hGameTest/node_modules/json-loader/CHANGELOG.md
generated
vendored
Normal file
55
hGameTest/node_modules/json-loader/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
<a name="0.5.7"></a>
|
||||
## [0.5.7](https://github.com/webpack/json-loader/compare/v0.5.6...v0.5.7) (2017-07-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Strip deprecation warning ([#58](https://github.com/webpack/json-loader/issues/58)) ([a2cf6c6](https://github.com/webpack/json-loader/commit/a2cf6c6))
|
||||
|
||||
|
||||
|
||||
<a name="0.5.6"></a>
|
||||
## [0.5.6](https://github.com/webpack/json-loader/compare/v0.5.5...v0.5.6) (2017-07-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **index:** only export CJS modules (`webpack v1.0.0`) && add deprecation warning (`webpack v2.0.0`) ([#55](https://github.com/webpack/json-loader/issues/55)) ([d34395a](https://github.com/webpack/json-loader/commit/d34395a))
|
||||
|
||||
|
||||
|
||||
<a name="0.5.5"></a>
|
||||
## [0.5.5](https://github.com/webpack/json-loader/compare/v0.5.2...v0.5.5) (2017-07-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add `stringify` option to output JSON object as string ([#45](https://github.com/webpack/json-loader/issues/45)) ([dbf1fa5](https://github.com/webpack/json-loader/commit/dbf1fa5))
|
||||
* Don't stringify with tabs to improve perf ([ee75f99](https://github.com/webpack/json-loader/commit/ee75f99)), closes [#31](https://github.com/webpack/json-loader/issues/31)
|
||||
* escape newline/paragraph separators ([#18](https://github.com/webpack/json-loader/issues/18)) ([939a8cb](https://github.com/webpack/json-loader/commit/939a8cb))
|
||||
* Remove confusing statement about polyfill ([a06933c](https://github.com/webpack/json-loader/commit/a06933c)), closes [#7](https://github.com/webpack/json-loader/issues/7)
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* add `stringify` option to output JSON object as string ([#43](https://github.com/webpack/json-loader/issues/43)) ([#52](https://github.com/webpack/json-loader/issues/52)) ([e528e1d](https://github.com/webpack/json-loader/commit/e528e1d))
|
||||
|
||||
|
||||
|
||||
<a name="0.5.4"></a>
|
||||
## [0.5.4](https://github.com/webpack/json-loader/compare/v0.5.2...v0.5.4) (2017-07-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add `stringify` option to output JSON object as string ([#45](https://github.com/webpack/json-loader/issues/45)) ([bb495b8](https://github.com/webpack/json-loader/commit/bb495b8))
|
||||
* escape newline/paragraph separators ([#18](https://github.com/webpack/json-loader/issues/18)) ([e70851e](https://github.com/webpack/json-loader/commit/e70851e))
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* add `stringify` option to output JSON object as string ([#43](https://github.com/webpack/json-loader/issues/43)) ([#52](https://github.com/webpack/json-loader/issues/52)) ([368cf18](https://github.com/webpack/json-loader/commit/368cf18))
|
||||
20
hGameTest/node_modules/json-loader/LICENSE
generated
vendored
Normal file
20
hGameTest/node_modules/json-loader/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
Copyright JS Foundation and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
85
hGameTest/node_modules/json-loader/README.md
generated
vendored
Normal file
85
hGameTest/node_modules/json-loader/README.md
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
[![npm][npm]][npm-url]
|
||||
[![node][node]][node-url]
|
||||
[![deps][deps]][deps-url]
|
||||
[![tests][tests]][tests-url]
|
||||
[![coverage][cover]][cover-url]
|
||||
[![chat][chat]][chat-url]
|
||||
|
||||
<div align="center">
|
||||
<img width="160" height="180"
|
||||
src="https://worldvectorlogo.com/logos/json.svg">
|
||||
<a href="https://github.com/webpack/webpack">
|
||||
<img width="200" height="200"
|
||||
src="https://webpack.js.org/assets/icon-square-big.svg">
|
||||
</a>
|
||||
<h1>JSON Loader</h1>
|
||||
</div>
|
||||
|
||||
<h2 align="center">Install</h2>
|
||||
|
||||
```bash
|
||||
npm install --save-dev json-loader
|
||||
```
|
||||
|
||||
> ⚠️ **Since `webpack >= v2.0.0`, importing of JSON files will work by default. You might still want to use this if you use a custom file extension. See the [v1.0.0 -> v2.0.0 Migration Guide](https://webpack.js.org/guides/migrating/#json-loader-is-not-required-anymore) for more information**
|
||||
|
||||
<h2 align="center">Usage</h2>
|
||||
|
||||
### `Inline`
|
||||
|
||||
```js
|
||||
const json = require('json-loader!./file.json');
|
||||
```
|
||||
|
||||
### `Configuration` (recommended)
|
||||
|
||||
```js
|
||||
const json = require('./file.json');
|
||||
```
|
||||
|
||||
**webpack.config.js**
|
||||
```js
|
||||
module.exports = {
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: 'json-loader'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<h2 align="center">Maintainer</h2>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img width="150" height="150" src="https://avatars.githubusercontent.com/sokra?v=3">
|
||||
</br>
|
||||
<a href="https://github.com/sokra">Tobias Koppers</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
[npm]: https://img.shields.io/npm/v/json-loader.svg
|
||||
[npm-url]: https://npmjs.com/package/json-loader
|
||||
|
||||
[node]: https://img.shields.io/node/v/json-loader.svg
|
||||
[node-url]: https://nodejs.org
|
||||
|
||||
[deps]: https://david-dm.org/webpack/json-loader.svg
|
||||
[deps-url]: https://david-dm.org/webpack/json-loader
|
||||
|
||||
[tests]: http://img.shields.io/travis/webpack/json-loader.svg
|
||||
[tests-url]: https://travis-ci.org/webpack/json-loader
|
||||
|
||||
[cover]: https://coveralls.io/repos/github/webpack/json-loader/badge.svg
|
||||
[cover-url]: https://coveralls.io/github/webpack/json-loader
|
||||
|
||||
[chat]: https://badges.gitter.im/webpack/webpack.svg
|
||||
[chat-url]: https://gitter.im/webpack/webpack
|
||||
11
hGameTest/node_modules/json-loader/index.js
generated
vendored
Normal file
11
hGameTest/node_modules/json-loader/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = function (source) {
|
||||
if (this.cacheable) this.cacheable();
|
||||
|
||||
var value = typeof source === "string" ? JSON.parse(source) : source;
|
||||
|
||||
value = JSON.stringify(value)
|
||||
.replace(/\u2028/g, '\\u2028')
|
||||
.replace(/\u2029/g, '\\u2029');
|
||||
|
||||
return `module.exports = ${value}`;
|
||||
}
|
||||
48
hGameTest/node_modules/json-loader/package.json
generated
vendored
Normal file
48
hGameTest/node_modules/json-loader/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"_from": "json-loader@^0.5.4",
|
||||
"_id": "json-loader@0.5.7",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==",
|
||||
"_location": "/json-loader",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "json-loader@^0.5.4",
|
||||
"name": "json-loader",
|
||||
"escapedName": "json-loader",
|
||||
"rawSpec": "^0.5.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.5.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/webpack"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz",
|
||||
"_shasum": "dca14a70235ff82f0ac9a3abeb60d337a365185d",
|
||||
"_spec": "json-loader@^0.5.4",
|
||||
"_where": "/home/andreas/Documents/Projects/haxe/openfl/nigger/node_modules/webpack",
|
||||
"author": {
|
||||
"name": "Tobias Koppers @sokra"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/webpack/json-loader/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "json loader module for webpack",
|
||||
"devDependencies": {
|
||||
"standard-version": "^4.2.0"
|
||||
},
|
||||
"homepage": "https://github.com/webpack/json-loader#readme",
|
||||
"license": "MIT",
|
||||
"name": "json-loader",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/webpack/json-loader.git"
|
||||
},
|
||||
"scripts": {
|
||||
"release": "standard-version"
|
||||
},
|
||||
"version": "0.5.7"
|
||||
}
|
||||
Reference in New Issue
Block a user