Repository navigation
Commit 4f9e985
committed
Stop rendering whatever a scrape puts in a URL.
Issue 27: href, src, and CSS url() took scraped strings as-is, including javascript and data URLs. Keep only http and https, applied once when the results are normalized, including product image URLs.
Issue 28: a bad URL threw out of the URL constructor and took the whole card down, and the default fetch path rendered before resultsToUse was set. Guard the URL parse, treat products as an array, wrap each card in an error boundary, and fix accept_lang, which was missing its equals sign.
Issue 29: the video iframe loaded any URL and allowed autoplay plus device sensors. Allow only https embeds from known video hosts, sandbox it, and drop the extra allow tokens.
Issue 30: appId ships to the browser. Add a proxyUrl prop that fetches your own endpoint and never sends the key, and say in the README that the key is public unless it is domain-restricted or proxied.
Issue 31: the published tarball was a committed webpack build, and the ignore file was named .GITIGNORE so Linux CI never saw it. Stop tracking build, ship it through the files field, build in production mode before publish, and publish with provenance when a v-star tag matches package.json. Reconcile the version to 2.4.2.
Leftover: tag v2.5.0, then bump opengraph-react in apifur-ui and og-next-ui. NPM_TOKEN has to exist on the repo first.1 parent 82d64a3 commit 4f9e985
22 files changed
Lines changed: 7741 additions & 825 deletions
File tree
- .github/workflows
- build
- src
- __tests__
- components
- products
- util
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | | - | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
114 | 147 | | |
115 | 148 | | |
116 | 149 | | |
| |||
This file was deleted.
0 commit comments