Skip to content

Commit 28b0dee

Browse files
authored
Merge pull request #297 from p3ol/fix/remove-legacy-prop
🐛 fix: remove legacy prop
2 parents 341baa5 + cefaabe commit 28b0dee

4 files changed

Lines changed: 66 additions & 3 deletions

File tree

app/components/Premium.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default () => {
9999
return (
100100
<div className="page premium">
101101
<div className="container">
102-
<Header paywallRef={accessRef} onLogin={onLogin} />
102+
<Header onLogin={onLogin} />
103103
<h1>Premium post</h1>
104104
<p>This is a premium post (with a paywall), it
105105
contains exactly 10 paragraphs of lorem ipsum
@@ -112,7 +112,6 @@ export default () => {
112112
<Paywall
113113
ref={accessRef}
114114
contentRef={paywallRef}
115-
beforeInit={init}
116115
events={{ onSubscribeClick, onLoginClick }}
117116
config={config}
118117
/>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslint-config-standard": "17.0.0",
2222
"eslint-plugin-babel": "5.3.1",
2323
"eslint-plugin-import": "2.26.0",
24+
"eslint-plugin-n": "15.7.0",
2425
"eslint-plugin-node": "11.1.0",
2526
"eslint-plugin-promise": "6.0.0",
2627
"eslint-plugin-react": "7.30.1",

webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ module.exports = {
4141
filename: 'bundle.[fullhash].js',
4242
publicPath: '/',
4343
},
44-
devtool: 'inline-source-map',
4544
devServer: {
4645
port: 8888,
4746
host: 'localhost',

yarn.lock

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,13 @@ buffer-from@^1.0.0:
19471947
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"
19481948
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
19491949

1950+
builtins@^5.0.1:
1951+
version "5.0.1"
1952+
resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9"
1953+
integrity sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==
1954+
dependencies:
1955+
semver "^7.0.0"
1956+
19501957
bytes@3.0.0:
19511958
version "3.0.0"
19521959
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
@@ -2533,6 +2540,14 @@ eslint-plugin-es@^3.0.0:
25332540
eslint-utils "^2.0.0"
25342541
regexpp "^3.0.0"
25352542

2543+
eslint-plugin-es@^4.1.0:
2544+
version "4.1.0"
2545+
resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz#f0822f0c18a535a97c3e714e89f88586a7641ec9"
2546+
integrity sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==
2547+
dependencies:
2548+
eslint-utils "^2.0.0"
2549+
regexpp "^3.0.0"
2550+
25362551
eslint-plugin-import@2.26.0:
25372552
version "2.26.0"
25382553
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b"
@@ -2552,6 +2567,20 @@ eslint-plugin-import@2.26.0:
25522567
resolve "^1.22.0"
25532568
tsconfig-paths "^3.14.1"
25542569

2570+
eslint-plugin-n@15.7.0:
2571+
version "15.7.0"
2572+
resolved "https://registry.yarnpkg.com/eslint-plugin-n/-/eslint-plugin-n-15.7.0.tgz#e29221d8f5174f84d18f2eb94765f2eeea033b90"
2573+
integrity sha512-jDex9s7D/Qial8AGVIHq4W7NswpUD5DPDL2RH8Lzd9EloWUuvUkHfv4FRLMipH5q2UtyurorBkPeNi1wVWNh3Q==
2574+
dependencies:
2575+
builtins "^5.0.1"
2576+
eslint-plugin-es "^4.1.0"
2577+
eslint-utils "^3.0.0"
2578+
ignore "^5.1.1"
2579+
is-core-module "^2.11.0"
2580+
minimatch "^3.1.2"
2581+
resolve "^1.22.1"
2582+
semver "^7.3.8"
2583+
25552584
eslint-plugin-node@11.1.0:
25562585
version "11.1.0"
25572586
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d"
@@ -3367,6 +3396,13 @@ is-callable@^1.1.4, is-callable@^1.2.4:
33673396
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
33683397
integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==
33693398

3399+
is-core-module@^2.11.0, is-core-module@^2.9.0:
3400+
version "2.11.0"
3401+
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144"
3402+
integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==
3403+
dependencies:
3404+
has "^1.0.3"
3405+
33703406
is-core-module@^2.2.0:
33713407
version "2.8.0"
33723408
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548"
@@ -3670,6 +3706,13 @@ lower-case@^2.0.2:
36703706
dependencies:
36713707
tslib "^2.0.3"
36723708

3709+
lru-cache@^6.0.0:
3710+
version "6.0.0"
3711+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
3712+
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
3713+
dependencies:
3714+
yallist "^4.0.0"
3715+
36733716
make-dir@^3.0.2, make-dir@^3.1.0:
36743717
version "3.1.0"
36753718
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f"
@@ -4430,6 +4473,15 @@ resolve@^1.22.0:
44304473
path-parse "^1.0.7"
44314474
supports-preserve-symlinks-flag "^1.0.0"
44324475

4476+
resolve@^1.22.1:
4477+
version "1.22.1"
4478+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
4479+
integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
4480+
dependencies:
4481+
is-core-module "^2.9.0"
4482+
path-parse "^1.0.7"
4483+
supports-preserve-symlinks-flag "^1.0.0"
4484+
44334485
resolve@^2.0.0-next.3:
44344486
version "2.0.0-next.3"
44354487
resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.3.tgz#d41016293d4a8586a39ca5d9b5f15cbea1f55e46"
@@ -4535,6 +4587,13 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0:
45354587
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
45364588
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
45374589

4590+
semver@^7.0.0, semver@^7.3.8:
4591+
version "7.3.8"
4592+
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798"
4593+
integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==
4594+
dependencies:
4595+
lru-cache "^6.0.0"
4596+
45384597
send@0.18.0:
45394598
version "0.18.0"
45404599
resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be"
@@ -5157,6 +5216,11 @@ ws@^8.4.2:
51575216
resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f"
51585217
integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==
51595218

5219+
yallist@^4.0.0:
5220+
version "4.0.0"
5221+
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
5222+
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
5223+
51605224
yocto-queue@^0.1.0:
51615225
version "0.1.0"
51625226
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"

0 commit comments

Comments
 (0)