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">
|
||||
|
||||
[](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>
|
||||
|
||||
|
@ -7,9 +7,7 @@ import { URLSearchParams } from 'url';
|
||||
{{/platforms}}
|
||||
{{#platforms}}
|
||||
{{^deno}}
|
||||
// typings of url-parse are incorrect...
|
||||
// @ts-ignore
|
||||
import * as URLParse from "url-parse";
|
||||
import URLParse from "url-parse";
|
||||
{{/deno}}
|
||||
{{/platforms}}
|
||||
import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{extensionForDeno}}'{{/useRxJS}};
|
||||
|
@ -51,7 +51,8 @@
|
||||
"url-parse": "^1.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^3.9.3"
|
||||
"typescript": "^3.9.3",
|
||||
"@types/url-parse": "1.4.4"
|
||||
}{{#npmRepository}},{{/npmRepository}}
|
||||
{{#npmRepository}}
|
||||
"publishConfig":{
|
||||
|
@ -13,6 +13,9 @@
|
||||
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* To import url-parse */
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
|
@ -1,6 +1,4 @@
|
||||
// typings of url-parse are incorrect...
|
||||
// @ts-ignore
|
||||
import * as URLParse from "url-parse";
|
||||
import URLParse from "url-parse";
|
||||
import { Observable, from } from '../rxjsStub';
|
||||
|
||||
export * from './isomorphic-fetch';
|
||||
|
@ -22,6 +22,7 @@
|
||||
"url-parse": "^1.4.3"
|
||||
},
|
||||
"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. */
|
||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* To import url-parse */
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
|
@ -1,9 +1,7 @@
|
||||
// TODO: evaluate if we can easily get rid of this library
|
||||
import * as FormData from "form-data";
|
||||
import { URLSearchParams } from 'url';
|
||||
// typings of url-parse are incorrect...
|
||||
// @ts-ignore
|
||||
import * as URLParse from "url-parse";
|
||||
import URLParse from "url-parse";
|
||||
import { Observable, from } from '../rxjsStub';
|
||||
|
||||
export * from './isomorphic-fetch';
|
||||
|
@ -26,6 +26,7 @@
|
||||
"url-parse": "^1.4.3"
|
||||
},
|
||||
"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. */
|
||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* To import url-parse */
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
|
@ -1,9 +1,7 @@
|
||||
// TODO: evaluate if we can easily get rid of this library
|
||||
import * as FormData from "form-data";
|
||||
import { URLSearchParams } from 'url';
|
||||
// typings of url-parse are incorrect...
|
||||
// @ts-ignore
|
||||
import * as URLParse from "url-parse";
|
||||
import URLParse from "url-parse";
|
||||
import { Observable, from } from '../rxjsStub';
|
||||
|
||||
export * from './isomorphic-fetch';
|
||||
|
@ -27,6 +27,7 @@
|
||||
"url-parse": "^1.4.3"
|
||||
},
|
||||
"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. */
|
||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* To import url-parse */
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
|
@ -1,6 +1,4 @@
|
||||
// typings of url-parse are incorrect...
|
||||
// @ts-ignore
|
||||
import * as URLParse from "url-parse";
|
||||
import URLParse from "url-parse";
|
||||
import { Observable, from } from '../rxjsStub';
|
||||
|
||||
export * from './jquery';
|
||||
|
@ -23,6 +23,7 @@
|
||||
"url-parse": "^1.4.3"
|
||||
},
|
||||
"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. */
|
||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* To import url-parse */
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
|
@ -1,9 +1,7 @@
|
||||
// TODO: evaluate if we can easily get rid of this library
|
||||
import * as FormData from "form-data";
|
||||
import { URLSearchParams } from 'url';
|
||||
// typings of url-parse are incorrect...
|
||||
// @ts-ignore
|
||||
import * as URLParse from "url-parse";
|
||||
import URLParse from "url-parse";
|
||||
import { Observable, from } from '../rxjsStub';
|
||||
|
||||
export * from './isomorphic-fetch';
|
||||
|
@ -26,6 +26,7 @@
|
||||
"url-parse": "^1.4.3"
|
||||
},
|
||||
"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. */
|
||||
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* To import url-parse */
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
|
Loading…
x
Reference in New Issue
Block a user