first
This commit is contained in:
10
node_modules/@sideway/pinpoint/LICENSE.md
generated
vendored
Normal file
10
node_modules/@sideway/pinpoint/LICENSE.md
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
Copyright (c) 2019-2020, Sideway. Inc, and project contributors
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
14
node_modules/@sideway/pinpoint/README.md
generated
vendored
Normal file
14
node_modules/@sideway/pinpoint/README.md
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
# @sideway/pinpoint
|
||||
|
||||
#### Return the filename and line number of the calling function.
|
||||
|
||||
**pinpoint** is part of the **joi** ecosystem.
|
||||
|
||||
### Visit the [joi.dev](https://joi.dev) Developer Portal for tutorials, documentation, and support
|
||||
|
||||
## Useful resources
|
||||
|
||||
- [Documentation and API](https://joi.dev/module/pinpoint/)
|
||||
- [Version status](https://joi.dev/resources/status/#pinpoint) (builds, dependencies, node versions, licenses, eol)
|
||||
- [Changelog](https://joi.dev/module/pinpoint/changelog/)
|
||||
- [Project policies](https://joi.dev/policies/)
|
24
node_modules/@sideway/pinpoint/lib/index.d.ts
generated
vendored
Normal file
24
node_modules/@sideway/pinpoint/lib/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
Returns the filename and line number of the caller in the call stack
|
||||
|
||||
@param depth - The distance from the location function in the call stack. Defaults to 1 (caller).
|
||||
|
||||
@return an object with the filename and line number.
|
||||
*/
|
||||
export function location(depth?: number): location.Location;
|
||||
|
||||
declare namespace location {
|
||||
|
||||
interface Location {
|
||||
|
||||
/**
|
||||
The fully qualified filename.
|
||||
*/
|
||||
readonly filename: string;
|
||||
|
||||
/**
|
||||
The file line number.
|
||||
*/
|
||||
readonly line: number;
|
||||
}
|
||||
}
|
21
node_modules/@sideway/pinpoint/lib/index.js
generated
vendored
Normal file
21
node_modules/@sideway/pinpoint/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
const internals = {};
|
||||
|
||||
|
||||
exports.location = function (depth = 0) {
|
||||
|
||||
const orig = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = (ignore, stack) => stack;
|
||||
|
||||
const capture = {};
|
||||
Error.captureStackTrace(capture, this);
|
||||
const line = capture.stack[depth + 1];
|
||||
|
||||
Error.prepareStackTrace = orig;
|
||||
|
||||
return {
|
||||
filename: line.getFileName(),
|
||||
line: line.getLineNumber()
|
||||
};
|
||||
};
|
58
node_modules/@sideway/pinpoint/package.json
generated
vendored
Normal file
58
node_modules/@sideway/pinpoint/package.json
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
"_from": "@sideway/pinpoint@^2.0.0",
|
||||
"_id": "@sideway/pinpoint@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==",
|
||||
"_location": "/@sideway/pinpoint",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@sideway/pinpoint@^2.0.0",
|
||||
"name": "@sideway/pinpoint",
|
||||
"escapedName": "@sideway%2fpinpoint",
|
||||
"scope": "@sideway",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/joi"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz",
|
||||
"_shasum": "cff8ffadc372ad29fd3f78277aeb29e632cc70df",
|
||||
"_spec": "@sideway/pinpoint@^2.0.0",
|
||||
"_where": "C:\\Users\\zhouxueli\\Desktop\\scheduling-app\\node_modules\\joi",
|
||||
"bugs": {
|
||||
"url": "https://github.com/sideway/pinpoint/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Return the filename and line number of the calling function",
|
||||
"devDependencies": {
|
||||
"@hapi/code": "8.x.x",
|
||||
"@hapi/lab": "24.x.x",
|
||||
"typescript": "4.0.x"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"homepage": "https://github.com/sideway/pinpoint#readme",
|
||||
"keywords": [
|
||||
"utilities"
|
||||
],
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "lib/index.js",
|
||||
"name": "@sideway/pinpoint",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/sideway/pinpoint.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "lab -a @hapi/code -t 100 -L -Y",
|
||||
"test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html"
|
||||
},
|
||||
"types": "lib/index.d.ts",
|
||||
"version": "2.0.0"
|
||||
}
|
Reference in New Issue
Block a user