Uploading the main structure

هذا الالتزام موجود في:
2025-08-18 23:23:28 +03:00
التزام e696f2f4cd
1011 ملفات معدلة مع 275020 إضافات و0 حذوفات

19
node_modules/pug-error/LICENSE مولّد مباع Normal file
عرض الملف

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

55
node_modules/pug-error/README.md مولّد مباع Normal file
عرض الملف

@@ -0,0 +1,55 @@
# pug-error
Standard error objects for pug. This module is intended for use by the lexer, parser, loader, linker, code-generator and any plugins.
[![Build Status](https://img.shields.io/travis/pugjs/pug-error/master.svg)](https://travis-ci.org/pugjs/pug-error)
[![Dependencies Status](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-error)](https://david-dm.org/pugjs/pug?path=packages/pug-error)
[![NPM version](https://img.shields.io/npm/v/pug-error.svg)](https://www.npmjs.org/package/pug-error)
## Installation
npm install pug-error
## Usage
```js
var error = require('pug-error');
```
### `error(code, message, options)`
Create a Pug error object.
`code` is a required unique code for the error type that can be used to pinpoint a certain error.
`message` is a human-readable explanation of the error.
`options` can contain any of the following properties:
- `filename`: the name of the file causing the error
- `line`: the offending line
- `column`: the offending column
- `src`: the Pug source, if available, for pretty-printing the error context
The resulting error object is a simple Error object with additional properties given in the arguments.
**Caveat:** the `message` argument is stored in `err.msg`, not `err.message`, which is occupied with a better-formatted message.
```js
var error = require('pug-error');
var err = error('MY_CODE', 'My message', {line: 3, filename: 'myfile', src: 'foo\nbar\nbaz\nbash\nbing'});
// { code: 'PUG:MY_CODE',
// msg: 'My message',
// line: 3,
// column: undefined,
// filename: 'myfile',
// src: 'foo\nbar\nbaz\nbash\nbing',
// message: 'myfile:3\n 1| foo\n 2| bar\n > 3| baz\n 4| bash\n 5| bing\n\nMy message' }
throw err;
```
## License
MIT

6
node_modules/pug-error/lib/index.d.ts مولّد مباع Normal file
عرض الملف

@@ -0,0 +1,6 @@
export default function makeError(code: string, message: string, options: {
line: number;
column: number;
filename?: string;
src?: string;
}): any;

56
node_modules/pug-error/lib/index.js مولّد مباع Normal file
عرض الملف

@@ -0,0 +1,56 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function makeError(code, message, options) {
var line = options.line;
var column = options.column;
var filename = options.filename;
var src = options.src;
var fullMessage;
var location = line + (column ? ':' + column : '');
if (src && line >= 1 && line <= src.split('\n').length) {
var lines = src.split('\n');
var start_1 = Math.max(line - 3, 0);
var end = Math.min(lines.length, line + 3);
// Error context
var context = lines
.slice(start_1, end)
.map(function (text, i) {
var curr = i + start_1 + 1;
var preamble = (curr == line ? ' > ' : ' ') + curr + '| ';
var out = preamble + text;
if (curr === line && column > 0) {
out += '\n';
out += Array(preamble.length + column).join('-') + '^';
}
return out;
})
.join('\n');
fullMessage =
(filename || 'Pug') + ':' + location + '\n' + context + '\n\n' + message;
}
else {
fullMessage = (filename || 'Pug') + ':' + location + '\n\n' + message;
}
var err = new Error(fullMessage);
err.code = 'PUG:' + code;
err.msg = message;
err.line = line;
err.column = column;
err.filename = filename;
err.src = src;
err.toJSON = function () {
return {
code: this.code,
msg: this.msg,
line: this.line,
column: this.column,
filename: this.filename,
};
};
return err;
}
exports.default = makeError;
// Make this easier to use from CommonJS
module.exports = makeError;
module.exports.default = makeError;
//# sourceMappingURL=index.js.map

1
node_modules/pug-error/lib/index.js.map مولّد مباع Normal file
عرض الملف

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,SAAwB,SAAS,CAC/B,IAAY,EACZ,OAAe,EACf,OAAwE;IAExE,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC1B,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,IAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,IAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IACxB,IAAI,WAAW,CAAC;IAChB,IAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACrD,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE;QACtD,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,IAAM,OAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACpC,IAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;QAC7C,gBAAgB;QAChB,IAAM,OAAO,GAAG,KAAK;aAClB,KAAK,CAAC,OAAK,EAAE,GAAG,CAAC;aACjB,GAAG,CAAC,UAAS,IAAI,EAAE,CAAC;YACnB,IAAM,IAAI,GAAG,CAAC,GAAG,OAAK,GAAG,CAAC,CAAC;YAC3B,IAAM,QAAQ,GAAG,CAAC,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AQ;SACxB,CAAC;IACJ,CAAC,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AAnDD,4BAmDC;AAED,wCAAwC;AACxC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;AAC3B,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC"}

1
node_modules/pug-error/lib/tsconfig.tsbuildinfo مولّد مباع Normal file

تم حذف اختلاف الملف لأن أحد الأسطر أو أكثر طويلة جداً

19
node_modules/pug-error/package.json مولّد مباع Normal file
عرض الملف

@@ -0,0 +1,19 @@
{
"name": "pug-error",
"version": "2.1.0",
"description": "Standard error objects for pug",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"keywords": [
"pug"
],
"files": [
"lib/"
],
"repository": {
"type": "git",
"url": "https://github.com/pugjs/pug/tree/master/packages/pug-error"
},
"author": "Forbes Lindesay",
"license": "MIT"
}