This commit is contained in:
21
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/LICENSE
generated
vendored
Normal file
21
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
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
|
41
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/SECURITY.md
generated
vendored
Normal file
41
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/SECURITY.md
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
|
||||
|
||||
## Security
|
||||
|
||||
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
||||
|
||||
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
||||
|
||||
## Reporting Security Issues
|
||||
|
||||
**Please do not report security vulnerabilities through public GitHub issues.**
|
||||
|
||||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
||||
|
||||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
||||
|
||||
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
||||
|
||||
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
||||
|
||||
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
||||
* Full paths of source file(s) related to the manifestation of the issue
|
||||
* The location of the affected source code (tag/branch/commit or direct URL)
|
||||
* Any special configuration required to reproduce the issue
|
||||
* Step-by-step instructions to reproduce the issue
|
||||
* Proof-of-concept or exploit code (if possible)
|
||||
* Impact of the issue, including how an attacker might exploit the issue
|
||||
|
||||
This information will help us triage your report more quickly.
|
||||
|
||||
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
||||
|
||||
## Preferred Languages
|
||||
|
||||
We prefer all communications to be in English.
|
||||
|
||||
## Policy
|
||||
|
||||
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
||||
|
||||
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
15
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/azure-pipelines/build.yml
generated
vendored
Normal file
15
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/azure-pipelines/build.yml
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: "18.x"
|
||||
|
||||
- powershell: |
|
||||
git submodule update --init
|
||||
$env:npm_config_arch="$(NPM_ARCH)"
|
||||
npm install
|
||||
displayName: Install Dependencies
|
||||
|
||||
- powershell: |
|
||||
npm test
|
||||
displayName: Run Tests
|
||||
condition: eq(variables.NPM_ARCH, 'x64')
|
30
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/azure-pipelines/ci.yml
generated
vendored
Normal file
30
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/azure-pipelines/ci.yml
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
trigger:
|
||||
branches:
|
||||
include: ['*']
|
||||
tags:
|
||||
include: ['*']
|
||||
|
||||
jobs:
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
variables:
|
||||
NPM_ARCH: 'x64'
|
||||
steps:
|
||||
- template: build.yml
|
||||
|
||||
- job: macOS
|
||||
pool:
|
||||
vmImage: 'macOS-latest'
|
||||
variables:
|
||||
NPM_ARCH: 'x64'
|
||||
steps:
|
||||
- template: build.yml
|
||||
|
||||
- job: Linux
|
||||
pool:
|
||||
vmImage: 'Ubuntu-latest'
|
||||
variables:
|
||||
NPM_ARCH: 'x64'
|
||||
steps:
|
||||
- template: build.yml
|
55
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/azure-pipelines/publish.yml
generated
vendored
Normal file
55
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/azure-pipelines/publish.yml
generated
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
name: $(Date:yyyyMMdd)$(Rev:.r)
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
pr: none
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: templates
|
||||
type: github
|
||||
name: microsoft/vscode-engineering
|
||||
ref: main
|
||||
endpoint: Monaco
|
||||
|
||||
parameters:
|
||||
- name: publishPackage
|
||||
displayName: 🚀 Publish node-spdlog
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
extends:
|
||||
template: azure-pipelines/npm-package/pipeline.yml@templates
|
||||
parameters:
|
||||
npmPackages:
|
||||
- name: node-spdlog
|
||||
|
||||
buildSteps:
|
||||
- script: |
|
||||
git submodule update --init
|
||||
npm ci
|
||||
displayName: Install dependencies
|
||||
|
||||
testPlatforms:
|
||||
- name: Linux
|
||||
nodeVersions:
|
||||
- 18.x
|
||||
- name: MacOS
|
||||
nodeVersions:
|
||||
- 18.x
|
||||
- name: Windows
|
||||
nodeVersions:
|
||||
- 18.x
|
||||
|
||||
testSteps:
|
||||
- script: |
|
||||
git submodule update --init
|
||||
npm ci
|
||||
displayName: Install dependencies
|
||||
|
||||
- script: npm run test
|
||||
displayName: Compile & test npm package
|
||||
|
||||
publishPackage: ${{ parameters.publishPackage }}
|
BIN
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/build/Release/spdlog.node
generated
vendored
Executable file
BIN
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/build/Release/spdlog.node
generated
vendored
Executable file
Binary file not shown.
25
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/index.js
generated
vendored
Normal file
25
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/index.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
const path = require('path');
|
||||
const mkdirp = require('mkdirp');
|
||||
const spdlog = require('bindings')('spdlog');
|
||||
|
||||
exports.version = spdlog.version;
|
||||
exports.setLevel = spdlog.setLevel;
|
||||
exports.setFlushOn = spdlog.setFlushOn;
|
||||
exports.Logger = spdlog.Logger;
|
||||
|
||||
function createRotatingLogger(name, filepath, maxFileSize, maxFiles) {
|
||||
return createLogger('rotating', name, filepath, maxFileSize, maxFiles);
|
||||
}
|
||||
|
||||
function createAsyncRotatingLogger(name, filepath, maxFileSize, maxFiles) {
|
||||
return createLogger('rotating_async', name, filepath, maxFileSize, maxFiles);
|
||||
}
|
||||
|
||||
async function createLogger(loggerType, name, filepath, maxFileSize, maxFiles) {
|
||||
const dirname = path.dirname(filepath);
|
||||
await mkdirp(dirname);
|
||||
return new spdlog.Logger(loggerType, name, filepath, maxFileSize, maxFiles);
|
||||
}
|
||||
|
||||
exports.createRotatingLogger = createRotatingLogger;
|
||||
exports.createAsyncRotatingLogger = createAsyncRotatingLogger;
|
40
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/package.json
generated
vendored
Normal file
40
vscode-server-linux-x64-web/node_modules/@vscode/spdlog/package.json
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "@vscode/spdlog",
|
||||
"version": "0.15.0",
|
||||
"description": "Node bindings for spdlog",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"mocha": {
|
||||
"ui": "tdd"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/microsoft/node-spdlog.git"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"spdlog",
|
||||
"logging",
|
||||
"logger",
|
||||
"log"
|
||||
],
|
||||
"author": "Microsoft",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/microsoft/node-spdlog/issues"
|
||||
},
|
||||
"homepage": "https://github.com/microsoft/node-spdlog#readme",
|
||||
"dependencies": {
|
||||
"bindings": "^1.5.0",
|
||||
"mkdirp": "^1.0.4",
|
||||
"node-addon-api": "7.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^10.0.0",
|
||||
"@types/node": "^16.0.0",
|
||||
"mocha": "^10.1.0"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user