Skip to content

Commit 9b88255

Browse files
committed
fix(scripts): update template imports and biome formatter
- Import readPackageJson and resolveOriginalPackageName from @socketsecurity/lib/packages - Simplify biomeFormat() to use stdin mode instead of temp files - Update all npm package READMEs via manifest update
1 parent fc0f7dd commit 9b88255

File tree

133 files changed

+1332
-1582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+1332
-1582
lines changed

packages/npm/abab/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
# @socketregistry/abab
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/abab)](https://socket.dev/npm/package/@socketregistry/abab)
43
[![CI - @socketregistry/abab](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency drop-in replacement of the deprecated
10-
> [`abab`](https://socket.dev/npm/package/abab) package complete with TypeScript
11-
> types.
8+
>A tested zero dependency drop-in replacement of the deprecated [`abab`](https://socket.dev/npm/package/abab) package complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/abab` to your `package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/abab`
26+
to your `package.json`.
2827

2928
```json
3029
{
@@ -42,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/abab` to your `package.json`.
4241
Install with your favorite package manager.
4342

4443
```sh
45-
npm install @socketregistry/abab
44+
pnpm install @socketregistry/abab
4645
```
4746

4847
## Requirements
4948

50-
Node >= `18.20.4`
49+
Node >= `18`
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
# @socketregistry/aggregate-error
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/aggregate-error)](https://socket.dev/npm/package/@socketregistry/aggregate-error)
43
[![CI - @socketregistry/aggregate-error](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency CJS/ESM compatible drop-in replacement of
10-
> [`aggregate-error`](https://socket.dev/npm/package/aggregate-error) complete
11-
> with TypeScript types.
8+
>A tested zero dependency CJS/ESM compatible drop-in replacement of [`aggregate-error`](https://socket.dev/npm/package/aggregate-error) complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/aggregate-error` to your
28-
`package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/aggregate-error`
26+
to your `package.json`.
2927

3028
```json
3129
{
@@ -43,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/aggregate-error` to your
4341
Install with your favorite package manager.
4442

4543
```sh
46-
npm install @socketregistry/aggregate-error
44+
pnpm install @socketregistry/aggregate-error
4745
```
4846

4947
## Requirements
5048

51-
Node >= `18.20.4`
49+
Node >= `18`
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
# @socketregistry/array-buffer-byte-length
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/array-buffer-byte-length)](https://socket.dev/npm/package/@socketregistry/array-buffer-byte-length)
43
[![CI - @socketregistry/array-buffer-byte-length](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency drop-in replacement of
10-
> [`array-buffer-byte-length`](https://socket.dev/npm/package/array-buffer-byte-length)
11-
> complete with TypeScript types.
8+
>A tested zero dependency drop-in replacement of [`array-buffer-byte-length`](https://socket.dev/npm/package/array-buffer-byte-length) complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/array-buffer-byte-length` to your
28-
`package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/array-buffer-byte-length`
26+
to your `package.json`.
2927

3028
```json
3129
{
@@ -43,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/array-buffer-byte-length` to your
4341
Install with your favorite package manager.
4442

4543
```sh
46-
npm install @socketregistry/array-buffer-byte-length
44+
pnpm install @socketregistry/array-buffer-byte-length
4745
```
4846

4947
## Requirements
5048

51-
Node >= `18.20.4`
49+
Node >= `18`
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
# @socketregistry/array-flatten
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/array-flatten)](https://socket.dev/npm/package/@socketregistry/array-flatten)
43
[![CI - @socketregistry/array-flatten](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency drop-in replacement of
10-
> [`array-flatten`](https://socket.dev/npm/package/array-flatten) complete with
11-
> TypeScript types.
8+
>A tested zero dependency drop-in replacement of [`array-flatten`](https://socket.dev/npm/package/array-flatten) complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/array-flatten` to your
28-
`package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/array-flatten`
26+
to your `package.json`.
2927

3028
```json
3129
{
@@ -43,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/array-flatten` to your
4341
Install with your favorite package manager.
4442

4543
```sh
46-
npm install @socketregistry/array-flatten
44+
pnpm install @socketregistry/array-flatten
4745
```
4846

4947
## Requirements
5048

51-
Node >= `18.20.4`
49+
Node >= `18`
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
# @socketregistry/array-includes
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/array-includes)](https://socket.dev/npm/package/@socketregistry/array-includes)
43
[![CI - @socketregistry/array-includes](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency drop-in replacement of
10-
> [`array-includes`](https://socket.dev/npm/package/array-includes) complete
11-
> with TypeScript types.
8+
>A tested zero dependency drop-in replacement of [`array-includes`](https://socket.dev/npm/package/array-includes) complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/array-includes` to your
28-
`package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/array-includes`
26+
to your `package.json`.
2927

3028
```json
3129
{
@@ -43,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/array-includes` to your
4341
Install with your favorite package manager.
4442

4543
```sh
46-
npm install @socketregistry/array-includes
44+
pnpm install @socketregistry/array-includes
4745
```
4846

4947
## Requirements
5048

51-
Node >= `18.20.4`
49+
Node >= `18`

packages/npm/array.from/README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
# @socketregistry/array.from
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/array.from)](https://socket.dev/npm/package/@socketregistry/array.from)
43
[![CI - @socketregistry/array.from](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency drop-in replacement of
10-
> [`array.from`](https://socket.dev/npm/package/array.from) complete with
11-
> TypeScript types.
8+
>A tested zero dependency drop-in replacement of [`array.from`](https://socket.dev/npm/package/array.from) complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/array.from` to your
28-
`package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/array.from`
26+
to your `package.json`.
2927

3028
```json
3129
{
@@ -43,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/array.from` to your
4341
Install with your favorite package manager.
4442

4543
```sh
46-
npm install @socketregistry/array.from
44+
pnpm install @socketregistry/array.from
4745
```
4846

4947
## Requirements
5048

51-
Node >= `18.20.4`
49+
Node >= `18`

packages/npm/array.of/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
# @socketregistry/array.of
2-
32
[![Socket Badge](https://socket.dev/api/badge/npm/package/@socketregistry/array.of)](https://socket.dev/npm/package/@socketregistry/array.of)
43
[![CI - @socketregistry/array.of](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-registry/actions/workflows/ci.yml)
54

65
[![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
76
[![Follow @socket.dev on Bluesky](https://img.shields.io/badge/[email protected]?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
87

9-
> A tested zero dependency drop-in replacement of
10-
> [`array.of`](https://socket.dev/npm/package/array.of) complete with TypeScript
11-
> types.
8+
>A tested zero dependency drop-in replacement of [`array.of`](https://socket.dev/npm/package/array.of) complete with TypeScript types.
9+
1210

1311
## Installation
1412

1513
### Install as a package override
1614

17-
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically ✨
18-
populate
15+
[`socket`](https://socket.dev/npm/package/socket)
16+
CLI will automagically ✨ populate
1917
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides)
20-
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) of
21-
your `package.json`.
18+
and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions)
19+
of your `package.json`.
2220

2321
```sh
2422
npx socket optimize
2523
```
2624

27-
Prefer to do it yourself? Add `@socketregistry/array.of` to your `package.json`.
25+
Prefer to do it yourself? Add `@socketregistry/array.of`
26+
to your `package.json`.
2827

2928
```json
3029
{
@@ -42,9 +41,9 @@ Prefer to do it yourself? Add `@socketregistry/array.of` to your `package.json`.
4241
Install with your favorite package manager.
4342

4443
```sh
45-
npm install @socketregistry/array.of
44+
pnpm install @socketregistry/array.of
4645
```
4746

4847
## Requirements
4948

50-
Node >= `18.20.4`
49+
Node >= `18`

0 commit comments

Comments
 (0)