playwright-smart-test 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SECURITY.md +41 -0
- package/node_modules/ecdsa-sig-formatter/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/ecdsa-sig-formatter/node_modules/safe-buffer/README.md +49 -0
- package/node_modules/ecdsa-sig-formatter/node_modules/safe-buffer/index.d.ts +2 -0
- package/node_modules/ecdsa-sig-formatter/node_modules/safe-buffer/index.js +17 -0
- package/node_modules/ecdsa-sig-formatter/node_modules/safe-buffer/package.json +36 -0
- package/node_modules/jwa/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/jwa/node_modules/safe-buffer/LICENSE.original +21 -0
- package/node_modules/jwa/node_modules/safe-buffer/README.md +49 -0
- package/node_modules/jwa/node_modules/safe-buffer/index.d.ts +2 -0
- package/node_modules/jwa/node_modules/safe-buffer/index.js +17 -0
- package/node_modules/jwa/node_modules/safe-buffer/package.json +36 -0
- package/node_modules/jws/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/jws/node_modules/safe-buffer/LICENSE.original +21 -0
- package/node_modules/jws/node_modules/safe-buffer/README.md +49 -0
- package/node_modules/jws/node_modules/safe-buffer/index.d.ts +2 -0
- package/node_modules/jws/node_modules/safe-buffer/index.js +17 -0
- package/node_modules/jws/node_modules/safe-buffer/package.json +36 -0
- package/package.json +3 -2
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- /package/node_modules/{safe-buffer/LICENSE → ecdsa-sig-formatter/node_modules/safe-buffer/LICENSE.original} +0 -0
package/SECURITY.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
| Version | Supported |
|
|
6
|
+
|---------|-----------|
|
|
7
|
+
| 1.x.x | ✅ Active |
|
|
8
|
+
|
|
9
|
+
## Reporting a Vulnerability
|
|
10
|
+
|
|
11
|
+
Please **do not** open a public GitHub issue for security vulnerabilities.
|
|
12
|
+
|
|
13
|
+
Use [GitHub Private Vulnerability Reporting](https://github.com/Ujjwal-S-S/playwright-smart-test/security/advisories/new) or email the maintainer directly. We will investigate all reports but cannot guarantee a specific response or fix timeline.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## What This Package Does
|
|
18
|
+
|
|
19
|
+
`playwright-smart-test` is a **CLI dev tool** — it runs locally or in CI pipelines to analyze a git diff and select the minimal set of Playwright tests to run. It is **never installed as a runtime server-side dependency** in production applications.
|
|
20
|
+
|
|
21
|
+
Key behaviours:
|
|
22
|
+
|
|
23
|
+
- Reads your local git history (`git diff`) to detect changed files
|
|
24
|
+
- Scans your local `tests/` directory to build a test catalog
|
|
25
|
+
- Optionally calls the Google Gemini API to perform AI-powered impact analysis
|
|
26
|
+
- Spawns `playwright test` with the selected test files
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Dependency Chain
|
|
31
|
+
|
|
32
|
+
Direct runtime dependencies:
|
|
33
|
+
|
|
34
|
+
| Package | Purpose |
|
|
35
|
+
|---------|---------|
|
|
36
|
+
| `@google/genai` | Gemini API client — used only when an API key is configured |
|
|
37
|
+
| `commander` | CLI argument parsing |
|
|
38
|
+
| `dotenv` | Loads `.env` file for the API key |
|
|
39
|
+
| `glob` | File pattern matching to find spec files |
|
|
40
|
+
| `picocolors` | Terminal colour output |
|
|
41
|
+
| `zod` | Config and AI response schema validation |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Socket Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @socketregistry/safe-buffer
|
|
2
|
+
|
|
3
|
+
[](https://socket.dev/npm/package/@socketregistry/safe-buffer)
|
|
4
|
+
[](https://github.com/SocketDev/socket-registry/actions/workflows/test.yml)
|
|
5
|
+
[](https://twitter.com/SocketSecurity)
|
|
6
|
+
|
|
7
|
+
> A tested zero dependency drop-in replacement of
|
|
8
|
+
> [`safe-buffer`](https://socket.dev/npm/package/safe-buffer) complete with
|
|
9
|
+
> TypeScript types.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
### Install as a package override
|
|
14
|
+
|
|
15
|
+
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
|
|
16
|
+
populate
|
|
17
|
+
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
|
|
18
|
+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
|
|
19
|
+
your `package.json`.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npx socket optimize
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Prefer to do it yourself? Add `@socketregistry/safe-buffer` to your
|
|
26
|
+
`package.json`.
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"overrides": {
|
|
31
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1"
|
|
32
|
+
},
|
|
33
|
+
"resolutions": {
|
|
34
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Install as a plain dependency
|
|
40
|
+
|
|
41
|
+
Install with your favorite package manager.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install @socketregistry/safe-buffer
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Requirements
|
|
48
|
+
|
|
49
|
+
Node >= `18.20.4`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
4
|
+
// eslint-disable-next-line n/prefer-node-protocol
|
|
5
|
+
const { Buffer: UnsafeBuffer } = require('buffer')
|
|
6
|
+
|
|
7
|
+
const SafeBuffer = Object.defineProperties(function SafeBuffer(
|
|
8
|
+
arg,
|
|
9
|
+
encodingOrOffset,
|
|
10
|
+
length,
|
|
11
|
+
) {
|
|
12
|
+
return UnsafeBuffer.from(arg, encodingOrOffset, length)
|
|
13
|
+
}, Object.getOwnPropertyDescriptors(UnsafeBuffer))
|
|
14
|
+
|
|
15
|
+
module.exports = {
|
|
16
|
+
Buffer: SafeBuffer,
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@socketregistry/safe-buffer",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Socket.dev optimized package override for safe-buffer",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"Socket.dev",
|
|
8
|
+
"package-overrides"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/SocketDev/socket-registry/tree/main/packages/npm/safe-buffer",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/SocketDev/socket-registry.git",
|
|
14
|
+
"directory": "packages/npm/safe-buffer"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"default": "./index.js"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"*.d.ts",
|
|
29
|
+
"*.js"
|
|
30
|
+
],
|
|
31
|
+
"socket": {
|
|
32
|
+
"categories": [
|
|
33
|
+
"cleanup"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Socket Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Feross Aboukhadijeh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @socketregistry/safe-buffer
|
|
2
|
+
|
|
3
|
+
[](https://socket.dev/npm/package/@socketregistry/safe-buffer)
|
|
4
|
+
[](https://github.com/SocketDev/socket-registry/actions/workflows/test.yml)
|
|
5
|
+
[](https://twitter.com/SocketSecurity)
|
|
6
|
+
|
|
7
|
+
> A tested zero dependency drop-in replacement of
|
|
8
|
+
> [`safe-buffer`](https://socket.dev/npm/package/safe-buffer) complete with
|
|
9
|
+
> TypeScript types.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
### Install as a package override
|
|
14
|
+
|
|
15
|
+
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
|
|
16
|
+
populate
|
|
17
|
+
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
|
|
18
|
+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
|
|
19
|
+
your `package.json`.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npx socket optimize
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Prefer to do it yourself? Add `@socketregistry/safe-buffer` to your
|
|
26
|
+
`package.json`.
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"overrides": {
|
|
31
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1"
|
|
32
|
+
},
|
|
33
|
+
"resolutions": {
|
|
34
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Install as a plain dependency
|
|
40
|
+
|
|
41
|
+
Install with your favorite package manager.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install @socketregistry/safe-buffer
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Requirements
|
|
48
|
+
|
|
49
|
+
Node >= `18.20.4`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
4
|
+
// eslint-disable-next-line n/prefer-node-protocol
|
|
5
|
+
const { Buffer: UnsafeBuffer } = require('buffer')
|
|
6
|
+
|
|
7
|
+
const SafeBuffer = Object.defineProperties(function SafeBuffer(
|
|
8
|
+
arg,
|
|
9
|
+
encodingOrOffset,
|
|
10
|
+
length,
|
|
11
|
+
) {
|
|
12
|
+
return UnsafeBuffer.from(arg, encodingOrOffset, length)
|
|
13
|
+
}, Object.getOwnPropertyDescriptors(UnsafeBuffer))
|
|
14
|
+
|
|
15
|
+
module.exports = {
|
|
16
|
+
Buffer: SafeBuffer,
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@socketregistry/safe-buffer",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Socket.dev optimized package override for safe-buffer",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"Socket.dev",
|
|
8
|
+
"package-overrides"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/SocketDev/socket-registry/tree/main/packages/npm/safe-buffer",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/SocketDev/socket-registry.git",
|
|
14
|
+
"directory": "packages/npm/safe-buffer"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"default": "./index.js"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"*.d.ts",
|
|
29
|
+
"*.js"
|
|
30
|
+
],
|
|
31
|
+
"socket": {
|
|
32
|
+
"categories": [
|
|
33
|
+
"cleanup"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Socket Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Feross Aboukhadijeh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @socketregistry/safe-buffer
|
|
2
|
+
|
|
3
|
+
[](https://socket.dev/npm/package/@socketregistry/safe-buffer)
|
|
4
|
+
[](https://github.com/SocketDev/socket-registry/actions/workflows/test.yml)
|
|
5
|
+
[](https://twitter.com/SocketSecurity)
|
|
6
|
+
|
|
7
|
+
> A tested zero dependency drop-in replacement of
|
|
8
|
+
> [`safe-buffer`](https://socket.dev/npm/package/safe-buffer) complete with
|
|
9
|
+
> TypeScript types.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
### Install as a package override
|
|
14
|
+
|
|
15
|
+
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
|
|
16
|
+
populate
|
|
17
|
+
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
|
|
18
|
+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
|
|
19
|
+
your `package.json`.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npx socket optimize
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Prefer to do it yourself? Add `@socketregistry/safe-buffer` to your
|
|
26
|
+
`package.json`.
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"overrides": {
|
|
31
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1"
|
|
32
|
+
},
|
|
33
|
+
"resolutions": {
|
|
34
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Install as a plain dependency
|
|
40
|
+
|
|
41
|
+
Install with your favorite package manager.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install @socketregistry/safe-buffer
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Requirements
|
|
48
|
+
|
|
49
|
+
Node >= `18.20.4`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
4
|
+
// eslint-disable-next-line n/prefer-node-protocol
|
|
5
|
+
const { Buffer: UnsafeBuffer } = require('buffer')
|
|
6
|
+
|
|
7
|
+
const SafeBuffer = Object.defineProperties(function SafeBuffer(
|
|
8
|
+
arg,
|
|
9
|
+
encodingOrOffset,
|
|
10
|
+
length,
|
|
11
|
+
) {
|
|
12
|
+
return UnsafeBuffer.from(arg, encodingOrOffset, length)
|
|
13
|
+
}, Object.getOwnPropertyDescriptors(UnsafeBuffer))
|
|
14
|
+
|
|
15
|
+
module.exports = {
|
|
16
|
+
Buffer: SafeBuffer,
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@socketregistry/safe-buffer",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Socket.dev optimized package override for safe-buffer",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"Socket.dev",
|
|
8
|
+
"package-overrides"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/SocketDev/socket-registry/tree/main/packages/npm/safe-buffer",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/SocketDev/socket-registry.git",
|
|
14
|
+
"directory": "packages/npm/safe-buffer"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"default": "./index.js"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"*.d.ts",
|
|
29
|
+
"*.js"
|
|
30
|
+
],
|
|
31
|
+
"socket": {
|
|
32
|
+
"categories": [
|
|
33
|
+
"cleanup"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright-smart-test",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI-Powered Smart Regression Test Selection Agent for Playwright",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
13
|
"README.md",
|
|
14
|
-
"LICENSE"
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"SECURITY.md"
|
|
15
16
|
],
|
|
16
17
|
"publishConfig": {
|
|
17
18
|
"access": "public"
|