Skip to content

Commit

Permalink
chore(deps): upgrade dependencies (#68)
Browse files Browse the repository at this point in the history
* chore(deps): upgrade dependencies

* chore: re-enable linter

* fix: patch axios
  • Loading branch information
kevinperaza authored Aug 14, 2024
1 parent 10a8c3e commit 85f503c
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 199 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"test": "jest"
},
"dependencies": {
"@basis-theory/basis-theory-js": "^4.7.0",
"@basis-theory/basis-theory-js": "^4.7.1",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"card-validator": "^10.0.0",
"ramda": "^0.30.1",
"react": "18.3.1",
"react-native": "0.74.4",
"react-native": "0.74.5",
"react-native-mask-input": "^1.2.3",
"react-native-safe-area-context": "^4.10.8",
"react-native-screens": "^3.34.0",
Expand All @@ -39,25 +39,26 @@
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.1.3",
"@semantic-release/github": "^10.1.4",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.1",
"@sucrase/jest-plugin": "^3.0.0",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.5.2",
"@testing-library/react-native": "^12.5.3",
"@tsconfig/react-native": "^3.0.5",
"@types/jest": "^29.5.12",
"@types/ramda": "^0.30.1",
"@types/react": "^18.3.3",
"@types/react-test-renderer": "^18.3.0",
"@typescript-eslint/parser": "^8.0.0",
"@typescript-eslint/parser": "^8.1.0",
"babel-jest": "^29.7.0",
"eslint": "^9.8.0",
"eslint": "^9.9.0",
"eslint-plugin-ft-flow": "^3.0.11",
"eslint-plugin-prettier": "5.2.1",
"jest": "^29.7.0",
"metro-react-native-babel-preset": "0.77.0",
"prettier": "^3.3.3",
"react-native-builder-bob": "^0.29.0",
"react-native-builder-bob": "^0.29.1",
"react-test-renderer": "18.3.1",
"semantic-release": "^24.0.0",
"semver": "^7.6.3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ current_directory="$PWD"

cd $(dirname $0)/..

# yarn lint
yarn lint


#echo "Running tests..."
Expand Down
1 change: 0 additions & 1 deletion src/components/CardExpirationDateElement.hook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { ForwardedRef } from 'react';
import { useId, useRef, useState } from 'react';
import type { TextInput } from 'react-native';
import uuid from 'react-native-uuid';
import type { BTDateRef } from '../BaseElementTypes';
import {
ElementType,
Expand Down
1 change: 0 additions & 1 deletion src/components/CardNumberElement.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { CreditCardType } from '@basis-theory/basis-theory-js/types/element
import type { ForwardedRef } from 'react';
import { useId, useRef, useState } from 'react';
import type { TextInput } from 'react-native';
import uuid from 'react-native-uuid';
import {
ElementType,
type BTRef,
Expand Down
1 change: 0 additions & 1 deletion src/components/CardVerificationCodeElement.hook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { ForwardedRef } from 'react';
import { useId, useRef, useState } from 'react';
import type { TextInput } from 'react-native';
import uuid from 'react-native-uuid';
import {
ElementType,
type BTRef,
Expand Down
3 changes: 1 addition & 2 deletions src/components/TextElement.hook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { ForwardedRef } from 'react';
import { useEffect, useId, useRef, useState } from 'react';
import { useId, useRef, useState } from 'react';
import type { TextInput } from 'react-native';
import uuid from 'react-native-uuid';
import {
ElementType,
type BTRef,
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextElement.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type { StyleProp, TextStyle, TextInputProps } from 'react-native';
import type { TextInputProps } from 'react-native';
import type { UseTextElementProps } from './TextElement.hook';
import { useTextElement } from './TextElement.hook';
import MaskInput from 'react-native-mask-input';
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/useElementEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export const useElementEvent = ({
const valid = !empty && !errors;

const maskSatisfied = mask
? metadata?.lengths?.includes(extractDigits(value)?.length ?? 0) ??
mask.length === value.length
? (metadata?.lengths?.includes(extractDigits(value)?.length ?? 0) ??
mask.length === value.length)
: true;

const complete = !errors && maskSatisfied;
Expand Down
Loading

0 comments on commit 85f503c

Please sign in to comment.