* Fix vulnerable packages

* Update samples/package.json

Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com>

---------

Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com>
This commit is contained in:
Dmitrii Bobreshev 2024-06-20 14:12:38 +02:00 коммит произвёл GitHub
Родитель 1351c2c696
Коммит 1e8e2218e4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
7 изменённых файлов: 2811 добавлений и 402 удалений

Просмотреть файл

@ -109,7 +109,7 @@ More detailed information for the endpoints of each API can be found at https://
## Running Samples
Pre-reqs: [Node >= 4.4.7 LTS](https://nodejs.org) and [typescript (tsc) >= 1.8](https://www.npmjs.com/package/typescript)
Pre-reqs: [Node >= 16](https://nodejs.org) and [typescript (tsc) >= 4](https://www.npmjs.com/package/typescript)
Run `npm install` first
@ -136,6 +136,11 @@ Run a specific sample:
$ npm run samples -- projectAnalysis
```
## Node support
v14 and above - [current, maintained] - Supports node 16 and above
v13 and below - End Of Life, for Node < 16, contains security vulnerabilities, use at your own risk
## API and TFS Mapping
Below you'll find a quick mapping of azure-devops-node-api versions and their corresponding TFS releases. All API versions will work on the TFS version mentioned as well as later TFS versions.

Просмотреть файл

@ -28,24 +28,18 @@ extends:
- job: job
strategy:
matrix:
'Node 6':
versionSpec: '6.x'
npmVersion: '5'
'Node 8':
versionSpec: '8.x'
npmVersion: '6'
'Node 10':
versionSpec: '10.x'
npmVersion: '6'
'Node 12':
versionSpec: '12.x'
npmVersion: '6'
'Node 14':
versionSpec: '14.x'
npmVersion: '6'
'Node 16':
versionSpec: '16.x'
npmVersion: '8'
'Node 18':
versionSpec: '18.x'
npmVersion: '10'
'Node 20':
versionSpec: '20.x'
npmVersion: '10'
'Node 22':
versionSpec: '22.x'
npmVersion: '10'
steps:
- task: NodeTool@0
inputs:

2711
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,7 +1,7 @@
{
"name": "azure-devops-node-api",
"description": "Node client for Azure DevOps and TFS REST APIs",
"version": "13.0.0",
"version": "14.0.0",
"main": "./WebApi.js",
"types": "./WebApi.d.ts",
"scripts": {
@ -23,19 +23,22 @@
"Teddy Ward <t-edward@microsoft.com>"
],
"license": "MIT",
"engines": {
"node": ">= 16.0.0"
},
"dependencies": {
"tunnel": "0.0.6",
"typed-rest-client": "^1.8.4"
"typed-rest-client": "^2.0.0"
},
"devDependencies": {
"@types/glob": "5.0.35",
"@types/minimatch": "3.0.3",
"@types/mocha": "^2.2.44",
"@types/shelljs": "0.7.8",
"mocha": "^3.5.3",
"@types/node": "16.11.7",
"@types/shelljs": "0.8.5",
"mocha": "^10.4.0",
"nock": "9.6.1",
"shelljs": "0.7.8",
"typescript": "3.1.5",
"@types/node": "8.9.2"
"shelljs": "^0.8.5",
"typescript": "4.0.2"
}
}

197
samples/package-lock.json сгенерированный
Просмотреть файл

@ -1,14 +1,204 @@
{
"name": "vsts-node-api-samples",
"version": "1.0.0",
"lockfileVersion": 1,
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "vsts-node-api-samples",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"azure-devops-node-api": "file:../_build"
},
"devDependencies": {}
},
"../_build": {
"name": "azure-devops-node-api",
"version": "14.0.0",
"license": "MIT",
"dependencies": {
"tunnel": "0.0.6",
"typed-rest-client": "^2.0.0"
},
"devDependencies": {
"@types/glob": "5.0.35",
"@types/minimatch": "3.0.3",
"@types/mocha": "^2.2.44",
"@types/node": "16.11.7",
"@types/shelljs": "0.8.5",
"mocha": "^10.4.0",
"nock": "9.6.1",
"shelljs": "^0.8.5",
"typescript": "4.0.2"
},
"engines": {
"node": ">= 16.0.0"
}
},
"../_build/node_modules/call-bind": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
"integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
"dependencies": {
"es-define-property": "^1.0.0",
"es-errors": "^1.3.0",
"function-bind": "^1.1.2",
"get-intrinsic": "^1.2.4",
"set-function-length": "^1.2.1"
}
},
"../_build/node_modules/define-data-property": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
"dependencies": {
"es-define-property": "^1.0.0",
"es-errors": "^1.3.0",
"gopd": "^1.0.1"
}
},
"../_build/node_modules/es-define-property": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
"integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
"dependencies": {
"get-intrinsic": "^1.2.4"
}
},
"../_build/node_modules/es-errors": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="
},
"../_build/node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="
},
"../_build/node_modules/get-intrinsic": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
"integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
"dependencies": {
"es-errors": "^1.3.0",
"function-bind": "^1.1.2",
"has-proto": "^1.0.1",
"has-symbols": "^1.0.3",
"hasown": "^2.0.0"
}
},
"../_build/node_modules/gopd": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
"dependencies": {
"get-intrinsic": "^1.1.3"
}
},
"../_build/node_modules/has-property-descriptors": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
"dependencies": {
"es-define-property": "^1.0.0"
}
},
"../_build/node_modules/has-proto": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
"integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q=="
},
"../_build/node_modules/has-symbols": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
},
"../_build/node_modules/hasown": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz",
"integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==",
"dependencies": {
"function-bind": "^1.1.2"
}
},
"../_build/node_modules/object-inspect": {
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
"integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ=="
},
"../_build/node_modules/qs": {
"version": "6.11.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
"integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
"dependencies": {
"side-channel": "^1.0.4"
}
},
"../_build/node_modules/set-function-length": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz",
"integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==",
"dependencies": {
"define-data-property": "^1.1.2",
"es-errors": "^1.3.0",
"function-bind": "^1.1.2",
"get-intrinsic": "^1.2.3",
"gopd": "^1.0.1",
"has-property-descriptors": "^1.0.1"
}
},
"../_build/node_modules/side-channel": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
"integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
"dependencies": {
"call-bind": "^1.0.7",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.4",
"object-inspect": "^1.13.1"
}
},
"../_build/node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"../_build/node_modules/typed-rest-client": {
"version": "1.8.11",
"resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",
"integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==",
"dependencies": {
"qs": "^6.9.1",
"tunnel": "0.0.6",
"underscore": "^1.12.1"
}
},
"../_build/node_modules/underscore": {
"version": "1.13.6",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
"integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A=="
},
"node_modules/azure-devops-node-api": {
"resolved": "../_build",
"link": true
}
},
"dependencies": {
"azure-devops-node-api": {
"version": "file:../_build",
"requires": {
"@types/glob": "5.0.35",
"@types/minimatch": "3.0.3",
"@types/mocha": "^2.2.44",
"@types/node": "16.11.7",
"@types/shelljs": "0.8.5",
"mocha": "^10.4.0",
"nock": "9.6.1",
"shelljs": "^0.8.5",
"tunnel": "0.0.6",
"typed-rest-client": "^1.8.4"
"typed-rest-client": "^2.0.0",
"typescript": "4.0.2"
},
"dependencies": {
"call-bind": {
@ -140,8 +330,7 @@
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"typed-rest-client": {
"version": "1.8.11",
"resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",
"version": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",
"integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==",
"requires": {
"qs": "^6.9.1",

Просмотреть файл

@ -6,10 +6,6 @@
"dependencies": {
"azure-devops-node-api": "file:../_build"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT"
}

253
test/package-lock.json сгенерированный
Просмотреть файл

@ -1,90 +1,199 @@
{
"name": "azure-devops-node-api-tests",
"version": "1.0.0",
"lockfileVersion": 1,
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "azure-devops-node-api-tests",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"azure-devops-node-api": "file:../_build",
"typed-rest-client": "file:../_build/node_modules/typed-rest-client"
}
},
"../_build": {
"name": "azure-devops-node-api",
"version": "13.0.0",
"license": "MIT",
"dependencies": {
"tunnel": "0.0.6",
"typed-rest-client": "^2.0.0"
},
"devDependencies": {
"@types/glob": "5.0.35",
"@types/minimatch": "3.0.3",
"@types/mocha": "^2.2.44",
"@types/node": "16.11.7",
"@types/shelljs": "0.8.5",
"mocha": "^10.4.0",
"nock": "9.6.1",
"shelljs": "^0.8.5",
"typescript": "4.0.2"
}
},
"../_build/node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"../_build/node_modules/typed-rest-client": {
"version": "1.8.11",
"resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",
"integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==",
"dependencies": {
"qs": "^6.9.1",
"tunnel": "0.0.6",
"underscore": "^1.12.1"
}
},
"../_build/node_modules/typed-rest-client/node_modules/call-bind": {
"version": "1.0.2",
"dependencies": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
}
},
"../_build/node_modules/typed-rest-client/node_modules/function-bind": {
"version": "1.1.1"
},
"../_build/node_modules/typed-rest-client/node_modules/get-intrinsic": {
"version": "1.1.2",
"dependencies": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.3"
}
},
"../_build/node_modules/typed-rest-client/node_modules/has": {
"version": "1.0.3",
"dependencies": {
"function-bind": "^1.1.1"
}
},
"../_build/node_modules/typed-rest-client/node_modules/has-symbols": {
"version": "1.0.3"
},
"../_build/node_modules/typed-rest-client/node_modules/object-inspect": {
"version": "1.12.2"
},
"../_build/node_modules/typed-rest-client/node_modules/qs": {
"version": "6.11.0",
"dependencies": {
"side-channel": "^1.0.4"
}
},
"../_build/node_modules/typed-rest-client/node_modules/side-channel": {
"version": "1.0.4",
"dependencies": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
"object-inspect": "^1.9.0"
}
},
"../_build/node_modules/typed-rest-client/node_modules/tunnel": {
"version": "0.0.6"
},
"../_build/node_modules/typed-rest-client/node_modules/underscore": {
"version": "1.13.4"
},
"node_modules/azure-devops-node-api": {
"resolved": "../_build",
"link": true
},
"node_modules/typed-rest-client": {
"resolved": "../_build/node_modules/typed-rest-client",
"link": true
}
},
"dependencies": {
"azure-devops-node-api": {
"version": "file:../_build",
"requires": {
"@types/glob": "5.0.35",
"@types/minimatch": "3.0.3",
"@types/mocha": "^2.2.44",
"@types/node": "16.11.7",
"@types/shelljs": "0.8.5",
"mocha": "^10.4.0",
"nock": "9.6.1",
"shelljs": "^0.8.5",
"tunnel": "0.0.6",
"typed-rest-client": "^1.8.4"
"typed-rest-client": "^2.0.0",
"typescript": "4.0.2"
},
"dependencies": {
"call-bind": {
"version": "1.0.2",
"bundled": true,
"requires": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
}
},
"function-bind": {
"version": "1.1.1",
"bundled": true
},
"get-intrinsic": {
"version": "1.1.3",
"bundled": true,
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.3"
}
},
"has": {
"version": "1.0.3",
"bundled": true,
"requires": {
"function-bind": "^1.1.1"
}
},
"has-symbols": {
"version": "1.0.3",
"bundled": true
},
"object-inspect": {
"version": "1.12.3",
"bundled": true
},
"qs": {
"version": "6.11.0",
"bundled": true,
"requires": {
"side-channel": "^1.0.4"
}
},
"side-channel": {
"version": "1.0.4",
"bundled": true,
"requires": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
"object-inspect": "^1.9.0"
}
},
"tunnel": {
"version": "0.0.6",
"bundled": true
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"typed-rest-client": {
"version": "1.8.9",
"bundled": true,
"version": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",
"integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==",
"requires": {
"qs": "^6.9.1",
"tunnel": "0.0.6",
"underscore": "^1.12.1"
},
"dependencies": {
"call-bind": {
"version": "1.0.2",
"requires": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
}
},
"function-bind": {
"version": "1.1.1"
},
"get-intrinsic": {
"version": "1.1.2",
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.3"
}
},
"has": {
"version": "1.0.3",
"requires": {
"function-bind": "^1.1.1"
}
},
"has-symbols": {
"version": "1.0.3"
},
"object-inspect": {
"version": "1.12.2"
},
"qs": {
"version": "6.11.0",
"requires": {
"side-channel": "^1.0.4"
}
},
"side-channel": {
"version": "1.0.4",
"requires": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
"object-inspect": "^1.9.0"
}
},
"tunnel": {
"version": "0.0.6"
},
"underscore": {
"version": "1.13.4"
}
}
},
"underscore": {
"version": "1.13.6",
"bundled": true
}
}
},
"typed-rest-client": {
"version": "file:../_build/node_modules/typed-rest-client",
"integrity": "sha512-uSmjE38B80wjL85UFX3sTYEUlvZ1JgCRhsWj/fJ4rZ0FqDUFoIuodtiVeE+cUqiVTOKPdKrp/sdftD15MDek6g==",
"requires": {
"qs": "^6.9.1",
"tunnel": "0.0.6",
@ -93,19 +202,16 @@
"dependencies": {
"call-bind": {
"version": "1.0.2",
"bundled": true,
"requires": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
}
},
"function-bind": {
"version": "1.1.1",
"bundled": true
"version": "1.1.1"
},
"get-intrinsic": {
"version": "1.1.2",
"bundled": true,
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
@ -114,29 +220,24 @@
},
"has": {
"version": "1.0.3",
"bundled": true,
"requires": {
"function-bind": "^1.1.1"
}
},
"has-symbols": {
"version": "1.0.3",
"bundled": true
"version": "1.0.3"
},
"object-inspect": {
"version": "1.12.2",
"bundled": true
"version": "1.12.2"
},
"qs": {
"version": "6.11.0",
"bundled": true,
"requires": {
"side-channel": "^1.0.4"
}
},
"side-channel": {
"version": "1.0.4",
"bundled": true,
"requires": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
@ -144,12 +245,10 @@
}
},
"tunnel": {
"version": "0.0.6",
"bundled": true
"version": "0.0.6"
},
"underscore": {
"version": "1.13.4",
"bundled": true
"version": "1.13.4"
}
}
}