-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev' into dev
- Loading branch information
Showing
636 changed files
with
21,481 additions
and
17,874 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18 | ||
lts/iron |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
compressionLevel: mixed | ||
|
||
defaultSemverRangePrefix: "" | ||
|
||
nodeLinker: node-modules | ||
enableGlobalCache: false | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs | ||
spec: "@yarnpkg/plugin-typescript" | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.4.cjs | ||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import defineProvider from "@babel/helper-define-polyfill-provider"; | ||
|
||
// List of polyfill keys with supported browser targets for the functionality | ||
const PolyfillSupport = { | ||
fetch: { | ||
android: 42, | ||
chrome: 42, | ||
edge: 14, | ||
firefox: 39, | ||
ios: 10.3, | ||
opera: 29, | ||
opera_mobile: 29, | ||
safari: 10.1, | ||
samsung: 4.0, | ||
}, | ||
proxy: { | ||
android: 49, | ||
chrome: 49, | ||
edge: 12, | ||
firefox: 18, | ||
ios: 10.0, | ||
opera: 36, | ||
opera_mobile: 36, | ||
safari: 10.0, | ||
samsung: 5.0, | ||
}, | ||
}; | ||
|
||
// Map of global variables and/or instance and static properties to the | ||
// corresponding polyfill key and actual module to import | ||
const polyfillMap = { | ||
global: { | ||
Proxy: { key: "proxy", module: "proxy-polyfill" }, | ||
fetch: { key: "fetch", module: "unfetch/polyfill" }, | ||
}, | ||
instance: {}, | ||
static: {}, | ||
}; | ||
|
||
// Create plugin using the same factory as for CoreJS | ||
export default defineProvider( | ||
({ createMetaResolver, debug, shouldInjectPolyfill }) => { | ||
const resolvePolyfill = createMetaResolver(polyfillMap); | ||
return { | ||
name: "HA Custom", | ||
polyfills: PolyfillSupport, | ||
usageGlobal(meta, utils) { | ||
const polyfill = resolvePolyfill(meta); | ||
if (polyfill && shouldInjectPolyfill(polyfill.desc.key)) { | ||
debug(polyfill.desc.key); | ||
utils.injectGlobalImport(polyfill.desc.module); | ||
} | ||
}, | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.