This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

66
node_modules/pug-lexer/History.md generated vendored Normal file
View File

@ -0,0 +1,66 @@
2.3.0 / 2016-09-11
==================
* Update is-expression to 3.0.0
2.2.2 / 2016-09-07
==================
* Support non-standard class names that start with two hyphens in class
literals, most notably used in Bemto
2.2.1 / 2016-08-29
==================
* Fix semantics of `isExpression` plugin
2.2.0 / 2016-08-26
==================
* Allow customizing `isExpression`
2.1.0 / 2016-08-22
==================
* Allow attributes that start with a colon
2.0.3 / 2016-08-07
==================
* Allow `when` expressions with colons
* Fix incorrect location of some errors
2.0.2 / 2016-06-02
==================
* Fix incorrect location of some invalid expressions in an attribute.
2.0.1 / 2016-05-31
==================
* Update README for `filename` option
2.0.0 / 2016-05-14
==================
* Take the `filename` as an option rather than special casing it. This means that lex only takes 2 arguments rather than 3
* Add support for an inline comment after a block. This means block names can no longer contain `//`
* Add type checking on arguments
1.2.0 / 2016-05-14
==================
* Throw a more helpful error if someone attempts to use the old `- each foo in bar` syntax (it should not have the `- ` prefix)
* Add Error reporting for invalid case expressions
1.0.1 / 2016-04-18
==================
* Update dependencies
- Update to `is-expression@2` which allows ES2015-style template strings
by default.
1.0.0 / 2015-12-23
==================
* First stable release

19
node_modules/pug-lexer/LICENSE generated vendored Normal file
View File

@ -0,0 +1,19 @@
Copyright (c) 2014 Forbes Lindesay
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.

73
node_modules/pug-lexer/README.md generated vendored Normal file
View File

@ -0,0 +1,73 @@
# pug-lexer
The pug lexer. This module is responsible for taking a string and converting it into an array of tokens.
[![Build Status](https://img.shields.io/travis/pugjs/pug-lexer/master.svg)](https://travis-ci.org/pugjs/pug-lexer)
[![Dependencies Status](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-lexer)](https://david-dm.org/pugjs/pug?path=packages/pug-lexer)
[![DevDependencies Status](https://david-dm.org/pugjs/pug/dev-status.svg?path=packages/pug-lexer)](https://david-dm.org/pugjs/pug?path=packages/pug-lexer&type=dev)
[![NPM version](https://img.shields.io/npm/v/pug-lexer.svg)](https://www.npmjs.org/package/pug-lexer)
[![Coverage Status](https://img.shields.io/codecov/c/github/pugjs/pug-lexer.svg)](https://codecov.io/gh/pugjs/pug-lexer)
## Installation
npm install pug-lexer
## Usage
```js
var lex = require('pug-lexer');
```
### `lex(str, options)`
Convert Pug string to an array of tokens.
`options` can contain the following properties:
- `filename` (string): The name of the Pug file; it is used in error handling if provided.
- `plugins` (array): An array of plugins, in the order they should be applied.
```js
console.log(JSON.stringify(lex('div(data-foo="bar")', {filename: 'my-file.pug'}), null, ' '))
```
```json
[
{
"type": "tag",
"line": 1,
"val": "div",
"selfClosing": false
},
{
"type": "attrs",
"line": 1,
"attrs": [
{
"name": "data-foo",
"val": "\"bar\"",
"escaped": true
}
]
},
{
"type": "eos",
"line": 1
}
]
```
### `new lex.Lexer(str, options)`
Constructor for a Lexer class. This is not meant to be used directly unless you know what you are doing.
`options` may contain the following properties:
- `filename` (string): The name of the Pug file; it is used in error handling if provided.
- `interpolated` (boolean): if the Lexer is created as a child lexer for inline tag interpolation (e.g. `#[p Hello]`). Defaults to `false`.
- `startingLine` (integer): the real line number of the first line in the input. It is also used for inline tag interpolation. Defaults to `1`.
- `plugins` (array): An array of plugins, in the order they should be applied.
## License
MIT

1520
node_modules/pug-lexer/index.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

56
node_modules/pug-lexer/package.json generated vendored Normal file
View File

@ -0,0 +1,56 @@
{
"_args": [
[
"pug-lexer@4.1.0",
"/Users/tatiana/selfdefined"
]
],
"_from": "pug-lexer@4.1.0",
"_id": "pug-lexer@4.1.0",
"_inBundle": false,
"_integrity": "sha512-i55yzEBtjm0mlplW4LoANq7k3S8gDdfC6+LThGEvsK4FuobcKfDAwt6V4jKPH9RtiE3a2Akfg5UpafZ1OksaPA==",
"_location": "/pug-lexer",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "pug-lexer@4.1.0",
"name": "pug-lexer",
"escapedName": "pug-lexer",
"rawSpec": "4.1.0",
"saveSpec": null,
"fetchSpec": "4.1.0"
},
"_requiredBy": [
"/pug"
],
"_resolved": "https://registry.npmjs.org/pug-lexer/-/pug-lexer-4.1.0.tgz",
"_spec": "4.1.0",
"_where": "/Users/tatiana/selfdefined",
"author": {
"name": "ForbesLindesay"
},
"dependencies": {
"character-parser": "^2.1.1",
"is-expression": "^3.0.0",
"pug-error": "^1.3.3"
},
"description": "The pug lexer (takes a string and converts it to an array of tokens)",
"devDependencies": {
"acorn": "^3.0.4"
},
"files": [
"index.js"
],
"gitHead": "1bdf628a70fda7a0d840c52f3abce54b1c6b0130",
"keywords": [
"pug"
],
"license": "MIT",
"name": "pug-lexer",
"repository": {
"type": "git",
"url": "https://github.com/pugjs/pug/tree/master/packages/pug-lexer"
},
"version": "4.1.0"
}