@socketsecurity/cli-with-sentry 0.14.97 → 0.14.98

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.
@@ -45510,118 +45510,6 @@ function getUserAgent() {
45510
45510
  return '<environment undetectable>'
45511
45511
  }
45512
45512
 
45513
- // @ts-check
45514
-
45515
- function register(state, name, method, options) {
45516
- if (typeof method !== 'function') {
45517
- throw new Error('method for before hook must be a function')
45518
- }
45519
- if (!options) {
45520
- options = {}
45521
- }
45522
- if (Array.isArray(name)) {
45523
- return name.reverse().reduce((callback, name) => {
45524
- return register.bind(null, state, name, callback, options)
45525
- }, method)()
45526
- }
45527
- return Promise.resolve().then(() => {
45528
- if (!state.registry[name]) {
45529
- return method(options)
45530
- }
45531
- return state.registry[name].reduce((method, registered) => {
45532
- return registered.hook.bind(null, method, options)
45533
- }, method)()
45534
- })
45535
- }
45536
-
45537
- // @ts-check
45538
-
45539
- function addHook(state, kind, name, hook) {
45540
- const orig = hook
45541
- if (!state.registry[name]) {
45542
- state.registry[name] = []
45543
- }
45544
- if (kind === 'before') {
45545
- hook = (method, options) => {
45546
- return Promise.resolve()
45547
- .then(orig.bind(null, options))
45548
- .then(method.bind(null, options))
45549
- }
45550
- }
45551
- if (kind === 'after') {
45552
- hook = (method, options) => {
45553
- let result
45554
- return Promise.resolve()
45555
- .then(method.bind(null, options))
45556
- .then(result_ => {
45557
- result = result_
45558
- return orig(result, options)
45559
- })
45560
- .then(() => {
45561
- return result
45562
- })
45563
- }
45564
- }
45565
- if (kind === 'error') {
45566
- hook = (method, options) => {
45567
- return Promise.resolve()
45568
- .then(method.bind(null, options))
45569
- .catch(error => {
45570
- return orig(error, options)
45571
- })
45572
- }
45573
- }
45574
- state.registry[name].push({
45575
- hook: hook,
45576
- orig: orig
45577
- })
45578
- }
45579
-
45580
- // @ts-check
45581
-
45582
- function removeHook(state, name, method) {
45583
- if (!state.registry[name]) {
45584
- return
45585
- }
45586
- const index = state.registry[name]
45587
- .map(registered => {
45588
- return registered.orig
45589
- })
45590
- .indexOf(method)
45591
- if (index === -1) {
45592
- return
45593
- }
45594
- state.registry[name].splice(index, 1)
45595
- }
45596
-
45597
- // @ts-check
45598
-
45599
- // bind with array of arguments: https://stackoverflow.com/a/21792913
45600
- const bind = Function.bind
45601
- const bindable = bind.bind(bind)
45602
- function bindApi(hook, state, name) {
45603
- const removeHookRef = bindable(removeHook, null).apply(null, [state])
45604
- hook.api = {
45605
- remove: removeHookRef
45606
- }
45607
- hook.remove = removeHookRef
45608
- ;['before', 'error', 'after', 'wrap'].forEach(kind => {
45609
- const args = [state, kind]
45610
- hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
45611
- })
45612
- }
45613
- function Collection() {
45614
- const state = {
45615
- registry: {}
45616
- }
45617
- const hook = register.bind(null, state)
45618
- bindApi(hook, state)
45619
- return hook
45620
- }
45621
- const Hook = {
45622
- Collection
45623
- }
45624
-
45625
45513
  // pkg/dist-src/defaults.js
45626
45514
 
45627
45515
  // pkg/dist-src/version.js
@@ -46557,7 +46445,7 @@ function withDefaults(request2, newDefaults) {
46557
46445
  }
46558
46446
 
46559
46447
  // pkg/dist-src/index.js
46560
- withDefaults(request, {
46448
+ const graphql2 = withDefaults(request, {
46561
46449
  headers: {
46562
46450
  'user-agent': `octokit-graphql.js/${VERSION$5} ${getUserAgent()}`
46563
46451
  },
@@ -46571,6 +46459,118 @@ function withCustomRequest(customRequest) {
46571
46459
  })
46572
46460
  }
46573
46461
 
46462
+ // @ts-check
46463
+
46464
+ function register(state, name, method, options) {
46465
+ if (typeof method !== 'function') {
46466
+ throw new Error('method for before hook must be a function')
46467
+ }
46468
+ if (!options) {
46469
+ options = {}
46470
+ }
46471
+ if (Array.isArray(name)) {
46472
+ return name.reverse().reduce((callback, name) => {
46473
+ return register.bind(null, state, name, callback, options)
46474
+ }, method)()
46475
+ }
46476
+ return Promise.resolve().then(() => {
46477
+ if (!state.registry[name]) {
46478
+ return method(options)
46479
+ }
46480
+ return state.registry[name].reduce((method, registered) => {
46481
+ return registered.hook.bind(null, method, options)
46482
+ }, method)()
46483
+ })
46484
+ }
46485
+
46486
+ // @ts-check
46487
+
46488
+ function addHook(state, kind, name, hook) {
46489
+ const orig = hook
46490
+ if (!state.registry[name]) {
46491
+ state.registry[name] = []
46492
+ }
46493
+ if (kind === 'before') {
46494
+ hook = (method, options) => {
46495
+ return Promise.resolve()
46496
+ .then(orig.bind(null, options))
46497
+ .then(method.bind(null, options))
46498
+ }
46499
+ }
46500
+ if (kind === 'after') {
46501
+ hook = (method, options) => {
46502
+ let result
46503
+ return Promise.resolve()
46504
+ .then(method.bind(null, options))
46505
+ .then(result_ => {
46506
+ result = result_
46507
+ return orig(result, options)
46508
+ })
46509
+ .then(() => {
46510
+ return result
46511
+ })
46512
+ }
46513
+ }
46514
+ if (kind === 'error') {
46515
+ hook = (method, options) => {
46516
+ return Promise.resolve()
46517
+ .then(method.bind(null, options))
46518
+ .catch(error => {
46519
+ return orig(error, options)
46520
+ })
46521
+ }
46522
+ }
46523
+ state.registry[name].push({
46524
+ hook: hook,
46525
+ orig: orig
46526
+ })
46527
+ }
46528
+
46529
+ // @ts-check
46530
+
46531
+ function removeHook(state, name, method) {
46532
+ if (!state.registry[name]) {
46533
+ return
46534
+ }
46535
+ const index = state.registry[name]
46536
+ .map(registered => {
46537
+ return registered.orig
46538
+ })
46539
+ .indexOf(method)
46540
+ if (index === -1) {
46541
+ return
46542
+ }
46543
+ state.registry[name].splice(index, 1)
46544
+ }
46545
+
46546
+ // @ts-check
46547
+
46548
+ // bind with array of arguments: https://stackoverflow.com/a/21792913
46549
+ const bind = Function.bind
46550
+ const bindable = bind.bind(bind)
46551
+ function bindApi(hook, state, name) {
46552
+ const removeHookRef = bindable(removeHook, null).apply(null, [state])
46553
+ hook.api = {
46554
+ remove: removeHookRef
46555
+ }
46556
+ hook.remove = removeHookRef
46557
+ ;['before', 'error', 'after', 'wrap'].forEach(kind => {
46558
+ const args = [state, kind]
46559
+ hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
46560
+ })
46561
+ }
46562
+ function Collection() {
46563
+ const state = {
46564
+ registry: {}
46565
+ }
46566
+ const hook = register.bind(null, state)
46567
+ bindApi(hook, state)
46568
+ return hook
46569
+ }
46570
+ const Hook = {
46571
+ Collection
46572
+ }
46573
+
46574
46574
  // pkg/dist-src/is-jwt.js
46575
46575
  const b64url = '(?:[a-zA-Z0-9_-]+)'
46576
46576
  const sep = '\\.'
@@ -88257,12 +88257,15 @@ const browserslistExports = requireBrowserslist()
88257
88257
 
88258
88258
  const distExports = requireDist$3()
88259
88259
 
88260
+ exports.GraphqlResponseError = GraphqlResponseError
88260
88261
  exports.HttpsProxyAgent = HttpsProxyAgent
88261
88262
  exports.Octokit = Octokit
88263
+ exports.RequestError = RequestError
88262
88264
  exports.browserslistExports = browserslistExports
88263
88265
  exports.configExports = configExports
88264
88266
  exports.distExports = distExports$1
88265
88267
  exports.distExports$1 = distExports
88268
+ exports.graphql2 = graphql2
88266
88269
  exports.ignoreExports = ignoreExports
88267
88270
  exports.libExports = libExports$3
88268
88271
  exports.libExports$1 = libExports$2
@@ -88282,5 +88285,5 @@ exports.terminalLinkExports = terminalLinkExports
88282
88285
  exports.updater = updater
88283
88286
  exports.yargsParser = yargsParser
88284
88287
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports
88285
- //# debugId=819601ae-6acf-4576-8bc8-f359d856b872
88288
+ //# debugId=9be936c5-05b3-41d3-9f4a-e7f348489975
88286
88289
  //# sourceMappingURL=vendor.js.map