File tree 3 files changed +21
-0
lines changed 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,15 @@ function createHook (meta) {
253
253
return url
254
254
}
255
255
256
+ // If the file is referencing itself, we need to skip adding the iitm search params
257
+ if ( url . url === parentURL ) {
258
+ return {
259
+ url : url . url ,
260
+ shortCircuit : true ,
261
+ format : url . format
262
+ }
263
+ }
264
+
256
265
specifiers . set ( url . url , specifier )
257
266
258
267
return {
Original file line number Diff line number Diff line change
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import * as BatchesAPI from './cyclical-self.mjs'
3
+ export class Batches { }
4
+ export class BatchesPage { }
5
+ ( function ( Batches ) {
6
+ Batches . BatchesPage = BatchesAPI . BatchesPage
7
+ // eslint-disable-next-line no-class-assign
8
+ } ) ( Batches || ( Batches = { } ) )
Original file line number Diff line number Diff line change
1
+ import { Batches , BatchesPage } from '../fixtures/cyclical-self.mjs'
2
+ import { strictEqual } from 'assert'
3
+
4
+ strictEqual ( Batches . BatchesPage , BatchesPage )
You can’t perform that action at this time.
0 commit comments