11// import chalk from 'chalk'
22// import chalkTable from 'chalk-table'
33import meow from 'meow'
4+ import { getManifestData } from '@socketsecurity/registry'
45
56//import ora from 'ora'
67import { printFlagList } from '../utils/formatting'
@@ -27,129 +28,7 @@ const SOCKET_REGISTRY_NAME = '@socketregistry'
2728
2829const SOCKET_REGISTRY_MAJOR_VERSION = '^1'
2930
30- const allPackages = [
31- 'abab' ,
32- 'array-buffer-byte-length' ,
33- 'array-flatten' ,
34- 'array-includes' ,
35- 'array.from' ,
36- 'array.of' ,
37- 'array.prototype.at' ,
38- 'array.prototype.every' ,
39- 'array.prototype.filter' ,
40- 'array.prototype.find' ,
41- 'array.prototype.findlast' ,
42- 'array.prototype.findlastindex' ,
43- 'array.prototype.flat' ,
44- 'array.prototype.flatmap' ,
45- 'array.prototype.foreach' ,
46- 'array.prototype.map' ,
47- 'array.prototype.reduce' ,
48- 'array.prototype.toreversed' ,
49- 'array.prototype.tosorted' ,
50- 'arraybuffer.prototype.slice' ,
51- 'assert' ,
52- 'asynciterator.prototype' ,
53- 'available-typed-arrays' ,
54- 'date' ,
55- 'deep-equal' ,
56- 'define-properties' ,
57- 'es-aggregate-error' ,
58- 'es-define-property' ,
59- 'es-get-iterator' ,
60- 'es-iterator-helpers' ,
61- 'es-set-tostringtag' ,
62- 'es6-object-assign' ,
63- 'es6-symbol' ,
64- 'function-bind' ,
65- 'function.prototype.name' ,
66- 'get-symbol-description' ,
67- 'globalthis' ,
68- 'gopd' ,
69- 'harmony-reflect' ,
70- 'has' ,
71- 'has-property-descriptors' ,
72- 'has-proto' ,
73- 'has-symbols' ,
74- 'has-tostringtag' ,
75- 'hasown' ,
76- 'internal-slot' ,
77- 'is-arguments' ,
78- 'is-array-buffer' ,
79- 'is-bigint' ,
80- 'is-boolean-object' ,
81- 'is-core-module' ,
82- 'is-date-object' ,
83- 'is-generator-function' ,
84- 'is-map' ,
85- 'is-nan' ,
86- 'is-negative-zero' ,
87- 'is-number-object' ,
88- 'is-regex' ,
89- 'is-set' ,
90- 'is-shared-array-buffer' ,
91- 'is-string' ,
92- 'is-symbol' ,
93- 'is-typed-array' ,
94- 'is-weakmap' ,
95- 'is-weakref' ,
96- 'is-weakset' ,
97- 'isarray' ,
98- 'iterator.prototype' ,
99- 'json-stable-stringify' ,
100- 'jsonify' ,
101- 'number-is-nan' ,
102- 'object-is' ,
103- 'object-keys' ,
104- 'object.assign' ,
105- 'object.entries' ,
106- 'object.fromentries' ,
107- 'object.getownpropertydescriptors' ,
108- 'object.getprototypeof' ,
109- 'object.groupby' ,
110- 'object.hasown' ,
111- 'object.values' ,
112- 'promise.allsettled' ,
113- 'promise.any' ,
114- 'querystringify' ,
115- 'reflect.getprototypeof' ,
116- 'reflect.ownkeys' ,
117- 'regexp.prototype.flags' ,
118- 'safe-array-concat' ,
119- 'safe-buffer' ,
120- 'safe-regex-test' ,
121- 'safer-buffer' ,
122- 'set-function-length' ,
123- 'side-channel' ,
124- 'string.fromcodepoint' ,
125- 'string.prototype.at' ,
126- 'string.prototype.codepointat' ,
127- 'string.prototype.endswith' ,
128- 'string.prototype.includes' ,
129- 'string.prototype.matchall' ,
130- 'string.prototype.padend' ,
131- 'string.prototype.padstart' ,
132- 'string.prototype.repeat' ,
133- 'string.prototype.replaceall' ,
134- 'string.prototype.split' ,
135- 'string.prototype.startswith' ,
136- 'string.prototype.trim' ,
137- 'string.prototype.trimend' ,
138- 'string.prototype.trimleft' ,
139- 'string.prototype.trimright' ,
140- 'string.prototype.trimstart' ,
141- 'typed-array-buffer' ,
142- 'typed-array-byte-length' ,
143- 'typed-array-byte-offset' ,
144- 'typed-array-length' ,
145- 'typedarray' ,
146- 'typedarray.prototype.slice' ,
147- 'unbox-primitive' ,
148- 'util.promisify' ,
149- 'which-boxed-primitive' ,
150- 'which-collection' ,
151- 'which-typed-array'
152- ] as const
31+ const allPackages = getManifestData ( 'npm' ) ! . map ( ( { 1 : d } ) => d . package )
15332
15433type Overrides = { [ key : string ] : string | StringKeyValueObject }
15534
0 commit comments