forked from loafle/openapi-generator-original
[typescript] Make module usable with esbuild (#11298)
* Use default import from url-parse * Update samples * Fix typo in readme
This commit is contained in:
parent
dff3944d19
commit
7129cdebc5
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [](./LICENSE) [](https://opencollective.com/openapi_generator) [](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) [](https://twitter.com/oas_generator)
|
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [](./LICENSE) [](https://opencollective.com/openapi_generator) [](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) [](https://twitter.com/oas_generator)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -7,9 +7,7 @@ import { URLSearchParams } from 'url';
|
|||||||
{{/platforms}}
|
{{/platforms}}
|
||||||
{{#platforms}}
|
{{#platforms}}
|
||||||
{{^deno}}
|
{{^deno}}
|
||||||
// typings of url-parse are incorrect...
|
import URLParse from "url-parse";
|
||||||
// @ts-ignore
|
|
||||||
import * as URLParse from "url-parse";
|
|
||||||
{{/deno}}
|
{{/deno}}
|
||||||
{{/platforms}}
|
{{/platforms}}
|
||||||
import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{extensionForDeno}}'{{/useRxJS}};
|
import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{extensionForDeno}}'{{/useRxJS}};
|
||||||
|
@ -51,7 +51,8 @@
|
|||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3",
|
||||||
|
"@types/url-parse": "1.4.4"
|
||||||
}{{#npmRepository}},{{/npmRepository}}
|
}{{#npmRepository}},{{/npmRepository}}
|
||||||
{{#npmRepository}}
|
{{#npmRepository}}
|
||||||
"publishConfig":{
|
"publishConfig":{
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* To import url-parse */
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
// typings of url-parse are incorrect...
|
import URLParse from "url-parse";
|
||||||
// @ts-ignore
|
|
||||||
import * as URLParse from "url-parse";
|
|
||||||
import { Observable, from } from '../rxjsStub';
|
import { Observable, from } from '../rxjsStub';
|
||||||
|
|
||||||
export * from './isomorphic-fetch';
|
export * from './isomorphic-fetch';
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3",
|
||||||
|
"@types/url-parse": "1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* To import url-parse */
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
// TODO: evaluate if we can easily get rid of this library
|
// TODO: evaluate if we can easily get rid of this library
|
||||||
import * as FormData from "form-data";
|
import * as FormData from "form-data";
|
||||||
import { URLSearchParams } from 'url';
|
import { URLSearchParams } from 'url';
|
||||||
// typings of url-parse are incorrect...
|
import URLParse from "url-parse";
|
||||||
// @ts-ignore
|
|
||||||
import * as URLParse from "url-parse";
|
|
||||||
import { Observable, from } from '../rxjsStub';
|
import { Observable, from } from '../rxjsStub';
|
||||||
|
|
||||||
export * from './isomorphic-fetch';
|
export * from './isomorphic-fetch';
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3",
|
||||||
|
"@types/url-parse": "1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* To import url-parse */
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
// TODO: evaluate if we can easily get rid of this library
|
// TODO: evaluate if we can easily get rid of this library
|
||||||
import * as FormData from "form-data";
|
import * as FormData from "form-data";
|
||||||
import { URLSearchParams } from 'url';
|
import { URLSearchParams } from 'url';
|
||||||
// typings of url-parse are incorrect...
|
import URLParse from "url-parse";
|
||||||
// @ts-ignore
|
|
||||||
import * as URLParse from "url-parse";
|
|
||||||
import { Observable, from } from '../rxjsStub';
|
import { Observable, from } from '../rxjsStub';
|
||||||
|
|
||||||
export * from './isomorphic-fetch';
|
export * from './isomorphic-fetch';
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3",
|
||||||
|
"@types/url-parse": "1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* To import url-parse */
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
// typings of url-parse are incorrect...
|
import URLParse from "url-parse";
|
||||||
// @ts-ignore
|
|
||||||
import * as URLParse from "url-parse";
|
|
||||||
import { Observable, from } from '../rxjsStub';
|
import { Observable, from } from '../rxjsStub';
|
||||||
|
|
||||||
export * from './jquery';
|
export * from './jquery';
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3",
|
||||||
|
"@types/url-parse": "1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* To import url-parse */
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
// TODO: evaluate if we can easily get rid of this library
|
// TODO: evaluate if we can easily get rid of this library
|
||||||
import * as FormData from "form-data";
|
import * as FormData from "form-data";
|
||||||
import { URLSearchParams } from 'url';
|
import { URLSearchParams } from 'url';
|
||||||
// typings of url-parse are incorrect...
|
import URLParse from "url-parse";
|
||||||
// @ts-ignore
|
|
||||||
import * as URLParse from "url-parse";
|
|
||||||
import { Observable, from } from '../rxjsStub';
|
import { Observable, from } from '../rxjsStub';
|
||||||
|
|
||||||
export * from './isomorphic-fetch';
|
export * from './isomorphic-fetch';
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"url-parse": "^1.4.3"
|
"url-parse": "^1.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3",
|
||||||
|
"@types/url-parse": "1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* To import url-parse */
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user