Version 1.0.2 mit node_modules Verzeichnis

This commit is contained in:
ISA
2024-10-02 07:58:24 +02:00
parent f353a06b1b
commit 62b6e55a0a
68228 changed files with 4548477 additions and 651 deletions

86
node_modules/raw-loader/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,86 @@
# Changelog
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.
### [4.0.2](https://github.com/webpack-contrib/raw-loader/compare/v4.0.1...v4.0.2) (2020-10-09)
### Chore
* update `schema-utils`
### [4.0.1](https://github.com/webpack-contrib/raw-loader/compare/v4.0.0...v4.0.1) (2020-04-15)
### Chore
* update deps
## [4.0.0](https://github.com/webpack-contrib/raw-loader/compare/v3.1.0...v4.0.0) (2019-11-25)
### Features
* new esModules option
### BREAKING CHANGES
* minimum required nodejs version is `10.13.0`
## [3.1.0](https://github.com/webpack-contrib/raw-loader/compare/v3.0.0...v3.1.0) (2019-07-18)
### Features
* improved validation error messages ([#85](https://github.com/webpack-contrib/raw-loader/issues/85)) ([6cf76b8](https://github.com/webpack-contrib/raw-loader/commit/6cf76b8))
## [3.0.0](https://github.com/webpack-contrib/raw-loader/compare/v2.0.0...v3.0.0) (2019-06-05)
### chore
* **deps:** update ([#81](https://github.com/webpack-contrib/raw-loader/issues/81)) ([d11ff27](https://github.com/webpack-contrib/raw-loader/commit/d11ff27))
### BREAKING CHANGES
* **deps:** minimum required nodejs version is `8.9.0`
<a name="2.0.0"></a>
# [2.0.0](https://github.com/webpack-contrib/raw-loader/compare/v1.0.0...v2.0.0) (2019-03-18)
### Features
* use ES Module export instead of CommonJS ([#69](https://github.com/webpack-contrib/raw-loader/issues/69)) ([3c7bf2c](https://github.com/webpack-contrib/raw-loader/commit/3c7bf2c))
### BREAKING CHANGES
* use ES Module export instead of CommonJS ([#69](https://github.com/webpack-contrib/raw-loader/issues/69)) ([3c7bf2c](https://github.com/webpack-contrib/raw-loader/commit/3c7bf2c))
<a name="1.0.0"></a>
## 1.0.0 (2018-12-10)
### Bug Fixes
* escape invalid characters ([#43](https://github.com/webpack-contrib/raw-loader/issues/43)) ([83f6541](https://github.com/webpack-contrib/raw-loader/commit/83f6541))
### Features
* schema validation ([#58](https://github.com/webpack-contrib/raw-loader/issues/58)) ([4a6da19](https://github.com/webpack-contrib/raw-loader/commit/4a6da19))
### BREAKING CHANGES
* minimum require `webpack` version is `4`
* minimum require `nodejs` version is `6.9`

20
node_modules/raw-loader/LICENSE generated vendored Normal file
View 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.

131
node_modules/raw-loader/README.md generated vendored Normal file
View File

@@ -0,0 +1,131 @@
<div align="center">
<img width="200" height="200"
src="https://cdn3.iconfinder.com/data/icons/lexter-flat-colorfull-file-formats/56/raw-256.png">
<a href="https://github.com/webpack/webpack">
<img width="200" height="200"
src="https://webpack.js.org/assets/icon-square-big.svg">
</a>
</div>
[![npm][npm]][npm-url]
[![node][node]][node-url]
[![deps][deps]][deps-url]
[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]
[![chat][chat]][chat-url]
[![size][size]][size-url]
# raw-loader
A loader for webpack that allows importing files as a String.
## Getting Started
To begin, you'll need to install `raw-loader`:
```console
$ npm install raw-loader --save-dev
```
Then add the loader to your `webpack` config. For example:
**file.js**
```js
import txt from './file.txt';
```
**webpack.config.js**
```js
// webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.txt$/i,
use: 'raw-loader',
},
],
},
};
```
And run `webpack` via your preferred method.
## Options
| Name | Type | Default | Description |
| :-------------------------: | :---------: | :-----: | :--------------------- |
| **[`esModule`](#esmodule)** | `{Boolean}` | `true` | Uses ES modules syntax |
### `esModule`
Type: `Boolean`
Default: `true`
By default, `raw-loader` generates JS modules that use the ES modules syntax.
There are some cases in which using ES modules is beneficial, like in the case of [module concatenation](https://webpack.js.org/plugins/module-concatenation-plugin/) and [tree shaking](https://webpack.js.org/guides/tree-shaking/).
You can enable a CommonJS module syntax using:
**webpack.config.js**
```js
module.exports = {
module: {
rules: [
{
test: /\.txt$/i,
use: [
{
loader: 'raw-loader',
options: {
esModule: false,
},
},
],
},
],
},
};
```
## Examples
### Inline
```js
import txt from 'raw-loader!./file.txt';
```
Beware, if you already define loader(s) for extension(s) in `webpack.config.js` you should use:
```js
import css from '!!raw-loader!./file.txt'; // Adding `!!` to a request will disable all loaders specified in the configuration
```
## Contributing
Please take a moment to read our contributing guidelines if you haven't yet done so.
[CONTRIBUTING](./.github/CONTRIBUTING.md)
## License
[MIT](./LICENSE)
[npm]: https://img.shields.io/npm/v/raw-loader.svg
[npm-url]: https://npmjs.com/package/raw-loader
[node]: https://img.shields.io/node/v/raw-loader.svg
[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack-contrib/raw-loader.svg
[deps-url]: https://david-dm.org/webpack-contrib/raw-loader
[tests]: https://github.com/webpack-contrib/raw-loader/workflows/raw-loader/badge.svg
[tests-url]: https://github.com/webpack-contrib/raw-loader/actions
[cover]: https://codecov.io/gh/webpack-contrib/raw-loader/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/webpack-contrib/raw-loader
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
[chat-url]: https://gitter.im/webpack/webpack
[size]: https://packagephobia.now.sh/badge?p=raw-loader
[size-url]: https://packagephobia.now.sh/result?p=raw-loader

5
node_modules/raw-loader/dist/cjs.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
const loader = require('./index');
module.exports = loader.default;

25
node_modules/raw-loader/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = rawLoader;
var _loaderUtils = require("loader-utils");
var _schemaUtils = require("schema-utils");
var _options = _interopRequireDefault(require("./options.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function rawLoader(source) {
const options = (0, _loaderUtils.getOptions)(this);
(0, _schemaUtils.validate)(_options.default, options, {
name: 'Raw Loader',
baseDataPath: 'options'
});
const json = JSON.stringify(source).replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029');
const esModule = typeof options.esModule !== 'undefined' ? options.esModule : true;
return `${esModule ? 'export default' : 'module.exports ='} ${json};`;
}

9
node_modules/raw-loader/dist/options.json generated vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"additionalProperties": false,
"properties": {
"esModule": {
"type": "boolean"
}
},
"type": "object"
}

75
node_modules/raw-loader/package.json generated vendored Normal file
View File

@@ -0,0 +1,75 @@
{
"name": "raw-loader",
"version": "4.0.2",
"description": "A loader for webpack that allows importing files as a String",
"license": "MIT",
"repository": "webpack-contrib/raw-loader",
"author": "Tobias Koppers @sokra",
"homepage": "https://github.com/webpack-contrib/raw-loader",
"bugs": "https://github.com/webpack-contrib/raw-loader/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
"main": "dist/cjs.js",
"engines": {
"node": ">= 10.13.0"
},
"scripts": {
"start": "npm run build -- -w",
"clean": "del-cli dist",
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"commitlint": "commitlint --from=master",
"security": "npm audit",
"lint:prettier": "prettier --list-different .",
"lint:js": "eslint --cache .",
"lint": "npm-run-all -l -p \"lint:**\"",
"test:only": "cross-env NODE_ENV=test jest",
"test:watch": "npm run test:only -- --watch",
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
"pretest": "npm run lint",
"test": "npm run test:coverage",
"prepare": "npm run build",
"release": "standard-version",
"defaults": "webpack-defaults"
},
"files": [
"dist"
],
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0"
},
"dependencies": {
"loader-utils": "^2.0.0",
"schema-utils": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@webpack-contrib/defaults": "^6.3.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^26.5.2",
"cross-env": "^7.0.2",
"del": "^6.0.0",
"del-cli": "^3.0.1",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.3.0",
"jest": "^26.5.2",
"lint-staged": "^10.4.0",
"memfs": "^3.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"standard-version": "^9.0.0",
"webpack": "^4.44.2"
},
"keywords": [
"webpack"
]
}