Skip to content

Commit 561db87

Browse files
author
sw-yx
committed
update certain things
1 parent bc3bf2a commit 561db87

File tree

5 files changed

+28
-49
lines changed

5 files changed

+28
-49
lines changed

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-netlify-identity",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "use netlify identity with react",
55
"author": "sw-yx",
66
"license": "MIT",
@@ -28,7 +28,6 @@
2828
"react-dom": "^15.0.0 || ^16.0.0"
2929
},
3030
"devDependencies": {
31-
"@svgr/rollup": "^2.4.1",
3231
"@types/jest": "^23.1.5",
3332
"@types/react": "^16.7.13",
3433
"@types/react-dom": "^16.0.11",
@@ -37,8 +36,8 @@
3736
"cross-env": "^5.1.4",
3837
"gh-pages": "^1.2.0",
3938
"gotrue-js": "^0.9.24",
40-
"react": "^16.7.0-alpha.2",
41-
"react-dom": "^16.7.0-alpha.2",
39+
"react": "^16.8.0-alpha.0",
40+
"react-dom": "^16.8.0-alpha.0",
4241
"react-scripts-ts": "^2.16.0",
4342
"rollup": "^0.62.0",
4443
"rollup-plugin-babel": "^3.0.7",
@@ -48,7 +47,7 @@
4847
"rollup-plugin-postcss": "^1.6.2",
4948
"rollup-plugin-typescript2": "^0.17.0",
5049
"rollup-plugin-url": "^1.4.0",
51-
"typescript": "^2.8.3"
50+
"typescript": "^3.2.2"
5251
},
5352
"files": [
5453
"dist"

src/index.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/**
2-
* @class ExampleComponent
3-
*/
4-
5-
import * as React from 'react';
1+
import React from 'react';
62

73
import GoTrue, { User } from 'gotrue-js';
84

@@ -119,6 +115,8 @@ export function useNetlifyIdentity(
119115
recoverAccount,
120116
updateUser,
121117
getFreshJWT,
122-
authedFetch
118+
authedFetch,
119+
_authRef: authRef,
120+
_domain: domain
123121
};
124122
}

src/typings.d.ts

-17
This file was deleted.

tsconfig.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
"moduleResolution": "node",
1212
"forceConsistentCasingInFileNames": true,
1313
"noImplicitReturns": true,
14-
"noImplicitThis": true,
15-
"noImplicitAny": true,
16-
"strictNullChecks": true,
14+
"strict": true,
15+
"allowSyntheticDefaultImports": true,
1716
"suppressImplicitAnyIndexErrors": true,
1817
"noUnusedLocals": true,
1918
"noUnusedParameters": true

yarn.lock

+18-18
Original file line numberDiff line numberDiff line change
@@ -7618,15 +7618,15 @@ react-dev-utils@^5.0.1:
76187618
strip-ansi "3.0.1"
76197619
text-table "0.2.0"
76207620

7621-
react-dom@^16.7.0-alpha.2:
7622-
version "16.7.0-alpha.2"
7623-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.7.0-alpha.2.tgz#16632880ed43676315991d8b412cce6975a30282"
7624-
integrity sha512-o0mMw8jBlwHjGZEy/vvKd/6giAX0+skREMOTs3/QHmgi+yAhUClp4My4Z9lsKy3SXV+03uPdm1l/QM7NTcGuMw==
7621+
react-dom@^16.8.0-alpha.0:
7622+
version "16.8.0-alpha.0"
7623+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.0-alpha.0.tgz#47bbcf42593eab5468b577d3c3f3c27f251a65ef"
7624+
integrity sha512-OGfLUXGxtMgqLB1BqnB9flVCvc8VvAnhQYeFr+EUzwiODcD34dPrxtfa7ccK4dwzcPi8HRLSyBcaQi2OvVoUww==
76257625
dependencies:
76267626
loose-envify "^1.1.0"
76277627
object-assign "^4.1.1"
76287628
prop-types "^15.6.2"
7629-
scheduler "^0.12.0-alpha.2"
7629+
scheduler "^0.13.0-alpha.0"
76307630

76317631
react-error-overlay@^4.0.1:
76327632
version "4.0.1"
@@ -7678,15 +7678,15 @@ react-scripts-ts@^2.16.0:
76787678
optionalDependencies:
76797679
fsevents "^1.1.3"
76807680

7681-
react@^16.7.0-alpha.2:
7682-
version "16.7.0-alpha.2"
7683-
resolved "https://registry.yarnpkg.com/react/-/react-16.7.0-alpha.2.tgz#924f2ae843a46ea82d104a8def7a599fbf2c78ce"
7684-
integrity sha512-Xh1CC8KkqIojhC+LFXd21jxlVtzoVYdGnQAi/I2+dxbmos9ghbx5TQf9/nDxc4WxaFfUQJkya0w1k6rMeyIaxQ==
7681+
react@^16.8.0-alpha.0:
7682+
version "16.8.0-alpha.0"
7683+
resolved "https://registry.yarnpkg.com/react/-/react-16.8.0-alpha.0.tgz#8545eb79534cce5ba99ed40085f7f955e8857a19"
7684+
integrity sha512-B/nJJkNqV4JAJQ1M0Q38ZvhZ6BoYsjyZq29hbsIIPYayn/0DcYhu7tExpfzdtTC0SnUcA+RnDBTlXTEJ5b9PEg==
76857685
dependencies:
76867686
loose-envify "^1.1.0"
76877687
object-assign "^4.1.1"
76887688
prop-types "^15.6.2"
7689-
scheduler "^0.12.0-alpha.2"
7689+
scheduler "^0.13.0-alpha.0"
76907690

76917691
read-pkg-up@^1.0.1:
76927692
version "1.0.1"
@@ -8263,10 +8263,10 @@ saxes@^3.1.3:
82638263
dependencies:
82648264
xmlchars "^1.3.1"
82658265

8266-
scheduler@^0.12.0-alpha.2:
8267-
version "0.12.0-alpha.3"
8268-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.12.0-alpha.3.tgz#59afcaba1cb79e3e8bee91de94eb8f42c9152c2b"
8269-
integrity sha512-KADuBlOWSrT/DCt/oA+NgsNamRCsfz7wj+leaeGjGHipNClsqhjOPogKkJgem6WLAv/QzxW8bE7zlGc9OxiYSQ==
8266+
scheduler@^0.13.0-alpha.0:
8267+
version "0.13.0-alpha.0"
8268+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.0-alpha.0.tgz#8fc1f01617b59e4543376735b2f954867d49110c"
8269+
integrity sha512-+DbRwO53hlLso4gzrSIqcfNe8eRMMaV4gd4eySGisbyLBrp5unTpAMR0UAbrqlQLTGhnOFNoQAfaZTz4iPj1RQ==
82708270
dependencies:
82718271
loose-envify "^1.1.0"
82728272
object-assign "^4.1.1"
@@ -9258,10 +9258,10 @@ typedarray@^0.0.6:
92589258
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
92599259
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
92609260

9261-
typescript@^2.8.3:
9262-
version "2.9.2"
9263-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c"
9264-
integrity sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==
9261+
typescript@^3.2.2:
9262+
version "3.2.2"
9263+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5"
9264+
integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==
92659265

92669266
uglify-es@^3.3.4:
92679267
version "3.3.9"

0 commit comments

Comments
 (0)