Skip to content

Commit 8a6efa7

Browse files
authored
chore(@aws-amplify/ui-components): minor changes (#5266)
* Minor changes before merge to master * Update tests * Remove locks from .gitignore * add yarnrc * Remove yarn lock
1 parent f91f34d commit 8a6efa7

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ packages/**/cjs/
1616
*.log
1717
.npm/
1818
packages/**/cypress/videos/
19-
package-lock.json
20-
yarn.lock

.yarnrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--add.no-lockfile true
2+
--install.no-lockfile true

packages/amplify-ui-components/src/components/amplify-icon/__snapshots__/amplify-icon.spec.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ exports[`amplify-icon spec: Render logic -> renders loading correctly 1`] = `
8484
<g fill="none" fill-rule="evenodd" id="02-Basic-Inputs" stroke="none" stroke-width="1">
8585
<g id="Bits-&amp;-Loaders-1312px-/-16-Copy-2" transform="translate(-392.000000, -448.000000)">
8686
<g id="AmpBasicSmall" transform="translate(392.000000, 448.000000)">
87-
<path d="M10,0 C15.5228475,0 20,4.4771525 20,10 C20,15.5228475 15.5228475,20 10,20 C4.4771525,20 0,15.5228475 0,10 C0,4.4771525 4.4771525,0 10,0 Z M10,4 C6.6862915,4 4,6.6862915 4,10 C4,13.3137085 6.6862915,16 10,16 C13.3137085,16 16,13.3137085 16,10 C16,6.6862915 13.3137085,4 10,4 Z" fill="#E1E1E1" id="Combined-Shape"></path>
88-
<path d="M10,0 L10,4 C6.6862915,4 4,6.6862915 4,10 C4,12.0133587 4.99166921,13.7951006 6.51321137,14.8834295 L4.18685298,18.1377379 C1.65198576,16.3237368 0,13.3547894 0,10 C0,4.4771525 4.4771525,0 10,0 Z" fill="#FF9900" id="Combined-Shape"></path>
87+
<path d="M10,0 C15.5228475,0 20,4.4771525 20,10 C20,15.5228475 15.5228475,20 10,20 C4.4771525,20 0,15.5228475 0,10 C0,4.4771525 4.4771525,0 10,0 Z M10,4 C6.6862915,4 4,6.6862915 4,10 C4,13.3137085 6.6862915,16 10,16 C13.3137085,16 16,13.3137085 16,10 C16,6.6862915 13.3137085,4 10,4 Z" fill="#E1E1E1" id="Combined-Shape-1"></path>
88+
<path d="M10,0 L10,4 C6.6862915,4 4,6.6862915 4,10 C4,12.0133587 4.99166921,13.7951006 6.51321137,14.8834295 L4.18685298,18.1377379 C1.65198576,16.3237368 0,13.3547894 0,10 C0,4.4771525 4.4771525,0 10,0 Z" fill="#FF9900" id="Combined-Shape-2"></path>
8989
</g>
9090
</g>
9191
</g>

packages/amplify-ui-components/src/components/amplify-icon/icons.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ export const icons = {
160160
<g id="AmpBasicSmall" transform="translate(392.000000, 448.000000)">
161161
<path
162162
d="M10,0 C15.5228475,0 20,4.4771525 20,10 C20,15.5228475 15.5228475,20 10,20 C4.4771525,20 0,15.5228475 0,10 C0,4.4771525 4.4771525,0 10,0 Z M10,4 C6.6862915,4 4,6.6862915 4,10 C4,13.3137085 6.6862915,16 10,16 C13.3137085,16 16,13.3137085 16,10 C16,6.6862915 13.3137085,4 10,4 Z"
163-
id="Combined-Shape"
163+
id="Combined-Shape-1"
164164
fill="#E1E1E1"
165165
></path>
166166
<path
167167
d="M10,0 L10,4 C6.6862915,4 4,6.6862915 4,10 C4,12.0133587 4.99166921,13.7951006 6.51321137,14.8834295 L4.18685298,18.1377379 C1.65198576,16.3237368 0,13.3547894 0,10 C0,4.4771525 4.4771525,0 10,0 Z"
168-
id="Combined-Shape"
168+
id="Combined-Shape-2"
169169
fill="#FF9900"
170170
></path>
171171
</g>

packages/amplify-ui-components/src/components/amplify-require-new-password/amplify-require-new-password.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export class AmplifyRequireNewPassword {
8080
try {
8181
const { requiredAttributes } = this.user.challengeParam;
8282
const user = await Auth.completeNewPassword(this.user, this.password, requiredAttributes);
83-
user.challengeParameter;
8483

8584
logger.debug('complete new password', user);
8685
switch (user.challengeName) {

packages/auth/src/Auth.ts

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import {
4141
ICredentials,
4242
Parser,
4343
JS,
44-
Platform,
4544
} from '@aws-amplify/core';
4645
import {
4746
CookieStorage,

packages/core/src/Platform/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// generated by genversion
2-
export const version = '3.1.1';
2+
export const version = '3.1.2';

0 commit comments

Comments
 (0)