Skip to content

Commit

Permalink
fix: move datastore to dependency (#1115)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Shih <[email protected]>
Jshhhh and Justin Shih authored Oct 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6b2206a commit 381e0a5
Showing 3 changed files with 327 additions and 2,548 deletions.
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import { SignOutOpts } from '@aws-amplify/auth/lib-esm/types/Auth';
import { Hub, Auth } from 'aws-amplify';
import { AMPLIFY_SYMBOL } from '../amplify-symbol';
import { getErrorMessage } from '../get-error-message';
@@ -24,8 +23,10 @@ import {
ACTION_AUTH_SIGNOUT_FINISHED,
} from './constants';

export type SignOutOptions = Parameters<typeof Auth['signOut']>[0];

export interface UseAuthSignOutAction {
(options?: SignOutOpts): () => Promise<void>;
(options?: SignOutOptions): () => Promise<void>;
}

export const useAuthSignOutAction: UseAuthSignOutAction = (options) => async () => {
2,851 changes: 310 additions & 2,541 deletions packages/codegen-ui-react/package-lock.json

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions packages/codegen-ui-react/package.json
Original file line number Diff line number Diff line change
@@ -21,8 +21,8 @@
},
"devDependencies": {
"@aws-amplify/appsync-modelgen-plugin": "^2.3.3",
"@aws-amplify/auth": "^5.6.5",
"@aws-amplify/datastore": "^4.0.0",
"@aws-amplify/datastore": "^4.7.5",
"aws-amplify": "^5.3.11",
"@aws-amplify/ui-react": "^4.6.0",
"@aws-amplify/ui-react-storage": "^1.1.0",
"@testing-library/react-hooks": "^7.0.1",
@@ -35,7 +35,6 @@
"react-test-renderer": "^17.0.2"
},
"dependencies": {
"aws-amplify": "^5.3.11",
"@aws-amplify/codegen-ui": "2.18.0",
"@typescript/vfs": "~1.3.5",
"pluralize": "^8.0.0",
@@ -44,7 +43,17 @@
},
"peerDependencies": {
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
"react-dom": "^16.8 || ^17.0 || ^18.0",
"@aws-amplify/datastore": "^4.7.5",
"aws-amplify": "^5.3.11"
},
"peerDependenciesMeta": {
"@aws-amplify/datastore": {
"optional": true
},
"aws-amplify": {
"optional": true
}
},
"optionalDependencies": {
"prettier": "2.3.2"
@@ -90,4 +99,4 @@
"hermes-engine": ">=0.10.0",
"shell-quote": ">=1.7.3"
}
}
}

0 comments on commit 381e0a5

Please sign in to comment.