Skip to content

Commit eb7ffeb

Browse files
Merge branch 'main' into fix/rtn-web-browser-chromeos
2 parents 14780ce + 23a3293 commit eb7ffeb

File tree

8 files changed

+662
-451
lines changed

8 files changed

+662
-451
lines changed

.github/dependency-review/dependency-review-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ allow-licenses:
1515
- 'ISC'
1616
- 'JSON'
1717
- 'MIT'
18+
- 'MIT-0'
1819
- 'OpenSSL'
1920
- 'PDDL-1.0'
2021
- 'PostgreSQL'

.github/workflows/close-stale-issues.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ jobs:
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
1818
only-issue-labels: pending-community-response,question
19+
stale-issue-label: pending-community-response
20+
days-before-issue-stale: -1 # skip stale labeling
1921
days-before-issue-close: 14
2022
close-issue-message: 'This issue is being automatically closed due to lack of recent activity. Please feel free to reopen it if you have any further questions.'
2123
days-before-pr-stale: -1 # ignore PRs
2224
days-before-pr-close: -1 # ignore PRs
23-
remove-issue-stale-when-updated: true
25+
remove-issue-stale-when-updated: false
2426
operations-per-run: 100
2527
debug-only: true # TODO: remove this when the dry-run succeeds

jest.setup.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,26 @@ global.console = {
1111

1212
// React Native global
1313
global['__DEV__'] = true;
14+
15+
/* this is available according to
16+
https://developer.mozilla.org/en-US/docs/Web/API/URL
17+
18+
for react-native use:
19+
import { loadUrlPolyfill } from '@aws-amplify/react-native';
20+
*/
21+
Object.defineProperty(URL, 'parse', {
22+
value: (path, origin) => {
23+
try {
24+
return new URL(path, origin);
25+
} catch {
26+
return null;
27+
}
28+
},
29+
});
30+
31+
Object.defineProperty(URL, 'canParse', {
32+
value: (path, origin) => {
33+
const out = URL.parse(path, origin);
34+
return null !== out;
35+
},
36+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@babel/preset-react": "^7.0.0",
8383
"@eslint/compat": "^1.2.0",
8484
"@lerna/legacy-package-management": "^8.2.1",
85-
"@rollup/plugin-commonjs": "^28.0.1",
85+
"@rollup/plugin-commonjs": "^28.0.1",
8686
"@rollup/plugin-typescript": "^11.1.6",
8787
"@size-limit/dual-publish": "^8.1.0",
8888
"@size-limit/file": "^8.1.0",

0 commit comments

Comments
 (0)