Revert "[typescript] Make module usable with esbuild (#11298)" (#11333)

This reverts commit 7129cdebc5.
This commit is contained in:
Esteban Gehring
2022-01-16 16:31:16 +01:00
committed by GitHub
parent 341ad1fad4
commit 3f4e7d8263
19 changed files with 25 additions and 37 deletions

View File

@@ -3,7 +3,7 @@
<div align="center">
[![Stable releases in Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/org/openapitools/openapi-generator/maven-metadata.xml.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-orange)](./LICENSE) [![Open Collective backers](https://img.shields.io/opencollective/backers/openapi_generator?color=orange&label=OpenCollective%20Backers)](https://opencollective.com/openapi_generator) [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) [![Follow OpenAPI Generator Twitter account to get the latest update](https://img.shields.io/twitter/follow/oas_generator.svg?style=social&label=Follow)](https://twitter.com/oas_generator)
[![Stable releaases in Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/org/openapitools/openapi-generator/maven-metadata.xml.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-orange)](./LICENSE) [![Open Collective backers](https://img.shields.io/opencollective/backers/openapi_generator?color=orange&label=OpenCollective%20Backers)](https://opencollective.com/openapi_generator) [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) [![Follow OpenAPI Generator Twitter account to get the latest update](https://img.shields.io/twitter/follow/oas_generator.svg?style=social&label=Follow)](https://twitter.com/oas_generator)
</div>

View File

@@ -7,7 +7,9 @@ import { URLSearchParams } from 'url';
{{/platforms}}
{{#platforms}}
{{^deno}}
import URLParse from "url-parse";
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
{{/deno}}
{{/platforms}}
import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{extensionForDeno}}'{{/useRxJS}};

View File

@@ -51,8 +51,7 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
"typescript": "^3.9.3"
}{{#npmRepository}},{{/npmRepository}}
{{#npmRepository}}
"publishConfig":{

View File

@@ -13,9 +13,6 @@
"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",

View File

@@ -1,4 +1,6 @@
import URLParse from "url-parse";
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';
export * from './isomorphic-fetch';

View File

@@ -22,7 +22,6 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
"typescript": "^3.9.3"
}
}

View File

@@ -13,9 +13,6 @@
"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",

View File

@@ -1,7 +1,9 @@
// TODO: evaluate if we can easily get rid of this library
import * as FormData from "form-data";
import { URLSearchParams } from 'url';
import URLParse from "url-parse";
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';
export * from './isomorphic-fetch';

View File

@@ -26,7 +26,6 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
"typescript": "^3.9.3"
}
}

View File

@@ -13,9 +13,6 @@
"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",

View File

@@ -1,7 +1,9 @@
// TODO: evaluate if we can easily get rid of this library
import * as FormData from "form-data";
import { URLSearchParams } from 'url';
import URLParse from "url-parse";
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';
export * from './isomorphic-fetch';

View File

@@ -27,7 +27,6 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
"typescript": "^3.9.3"
}
}

View File

@@ -13,9 +13,6 @@
"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",

View File

@@ -1,4 +1,6 @@
import URLParse from "url-parse";
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';
export * from './jquery';

View File

@@ -23,7 +23,6 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
"typescript": "^3.9.3"
}
}

View File

@@ -13,9 +13,6 @@
"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",

View File

@@ -1,7 +1,9 @@
// TODO: evaluate if we can easily get rid of this library
import * as FormData from "form-data";
import { URLSearchParams } from 'url';
import URLParse from "url-parse";
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';
export * from './isomorphic-fetch';

View File

@@ -26,7 +26,6 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
"typescript": "^3.9.3"
}
}

View File

@@ -13,9 +13,6 @@
"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",