Skip to content

Commit 7784d7a

Browse files
authored
Merge pull request #15 from thinkgrid-labs/dev
chore: rename package scope to @Thinkgrid and bump version to 0.3.2
2 parents b8d917d + 394c3ce commit 7784d7a

16 files changed

Lines changed: 32 additions & 32 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
## Installation
2424

2525
```sh
26-
npm install @think-grid-labs/react-native-shield
26+
npm install @thinkgrid/react-native-shield
2727
# or
28-
yarn add @think-grid-labs/react-native-shield
28+
yarn add @thinkgrid/react-native-shield
2929
# or
30-
pnpm add @think-grid-labs/react-native-shield
30+
pnpm add @thinkgrid/react-native-shield
3131
```
3232

3333
### iOS Setup
@@ -68,7 +68,7 @@ import {
6868
getAllSecureKeys,
6969
clearAllSecureStorage,
7070
requestIntegrityToken,
71-
} from '@think-grid-labs/react-native-shield';
71+
} from '@thinkgrid/react-native-shield';
7272
```
7373

7474
---

Shield.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.authors = package["author"]
1212

1313
s.platforms = { :ios => min_ios_version_supported }
14-
s.source = { :git => "https://github.com/ThinkGrid-Labs/react-native-shield.git", :tag => "#{s.version}" }
14+
s.source = { :git => "https://github.com/thinkgrid-labs/react-native-shield.git", :tag => "#{s.version}" }
1515

1616
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
1717
s.private_header_files = "ios/**/*.h"

docs/contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Contributing
22

3-
See [CONTRIBUTING.md](https://github.com/ThinkGrid-Labs/react-native-shield/blob/main/CONTRIBUTING.md) for the full development guide.
3+
See [CONTRIBUTING.md](https://github.com/thinkgrid-labs/react-native-shield/blob/main/CONTRIBUTING.md) for the full development guide.
44

55
## Quick start
66

77
```sh
8-
git clone https://github.com/ThinkGrid-Labs/react-native-shield
8+
git clone https://github.com/thinkgrid-labs/react-native-shield
99
cd react-native-shield
1010
pnpm install
1111
```
@@ -30,6 +30,6 @@ pnpm lint
3030

3131
## Opening issues
3232

33-
Report bugs and request features at [github.com/ThinkGrid-Labs/react-native-shield/issues](https://github.com/ThinkGrid-Labs/react-native-shield/issues).
33+
Report bugs and request features at [github.com/thinkgrid-labs/react-native-shield/issues](https://github.com/thinkgrid-labs/react-native-shield/issues).
3434

3535
Items on the [Roadmap](/roadmap) marked `[ ]` are open for contribution — open an issue first to discuss your approach before submitting a PR.

docs/guide/app-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## VPN detection
44

55
```typescript
6-
import { isVPNDetected } from '@think-grid-labs/react-native-shield';
6+
import { isVPNDetected } from '@thinkgrid/react-native-shield';
77

88
if (isVPNDetected()) {
99
// Traffic is routed through a VPN or proxy interface
@@ -19,7 +19,7 @@ if (isVPNDetected()) {
1919
Auto-clear the clipboard whenever the app goes to the background:
2020

2121
```typescript
22-
import { protectClipboard } from '@think-grid-labs/react-native-shield';
22+
import { protectClipboard } from '@thinkgrid/react-native-shield';
2323

2424
// Enable at startup
2525
protectClipboard(true);

docs/guide/attestation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Request a **cryptographically signed integrity token** from Google or Apple that
55
## Usage
66

77
```typescript
8-
import { requestIntegrityToken } from '@think-grid-labs/react-native-shield';
8+
import { requestIntegrityToken } from '@thinkgrid/react-native-shield';
99

1010
const verifyDeviceWithServer = async () => {
1111
try {

docs/guide/biometrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Native biometric prompt (Face ID / Touch ID / Android Biometrics) with strength-
55
## Authenticate the user
66

77
```typescript
8-
import { authenticateWithBiometrics } from '@think-grid-labs/react-native-shield';
8+
import { authenticateWithBiometrics } from '@thinkgrid/react-native-shield';
99

1010
const loginWithBiometrics = async () => {
1111
const success = await authenticateWithBiometrics('Authenticate to continue');
@@ -22,7 +22,7 @@ const loginWithBiometrics = async () => {
2222
Different sensors have very different security properties. Face Unlock on Android is classified as "weak" (2D camera, spoofable with a photo). Face ID and fingerprint readers are "strong" (secure enclave, spoof-resistant hardware).
2323

2424
```typescript
25-
import { getBiometricStrength } from '@think-grid-labs/react-native-shield';
25+
import { getBiometricStrength } from '@thinkgrid/react-native-shield';
2626

2727
const enforceStrongBiometrics = async () => {
2828
const strength = await getBiometricStrength();

docs/guide/device-integrity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
isHooked,
1414
verifySignature,
1515
getRootReasons,
16-
} from '@think-grid-labs/react-native-shield';
16+
} from '@thinkgrid/react-native-shield';
1717

1818
const checkIntegrity = () => {
1919
if (isRooted()) {

docs/guide/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
## Installation
1212

1313
```sh
14-
npm install @think-grid-labs/react-native-shield
14+
npm install @thinkgrid/react-native-shield
1515
# or
16-
yarn add @think-grid-labs/react-native-shield
16+
yarn add @thinkgrid/react-native-shield
1717
# or
18-
pnpm add @think-grid-labs/react-native-shield
18+
pnpm add @thinkgrid/react-native-shield
1919
```
2020

2121
### iOS Setup
@@ -54,15 +54,15 @@ import {
5454
getAllSecureKeys,
5555
clearAllSecureStorage,
5656
requestIntegrityToken,
57-
} from '@think-grid-labs/react-native-shield';
57+
} from '@thinkgrid/react-native-shield';
5858
```
5959

6060
## Recommended startup check
6161

6262
Run security checks early — before rendering any sensitive UI or making authenticated network requests:
6363

6464
```typescript
65-
import { isRooted, isEmulator, isHooked, isDebuggerAttached } from '@think-grid-labs/react-native-shield';
65+
import { isRooted, isEmulator, isHooked, isDebuggerAttached } from '@thinkgrid/react-native-shield';
6666

6767
const runSecurityGate = () => {
6868
if (isRooted() || isEmulator() || isHooked() || isDebuggerAttached()) {

docs/guide/secure-storage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
setSecureString,
1010
getSecureString,
1111
removeSecureString,
12-
} from '@think-grid-labs/react-native-shield';
12+
} from '@thinkgrid/react-native-shield';
1313

1414
// Store
1515
await setSecureString('access_token', 'eyJhbGci...');
@@ -24,7 +24,7 @@ await removeSecureString('access_token');
2424
## Enumerate keys
2525

2626
```typescript
27-
import { getAllSecureKeys } from '@think-grid-labs/react-native-shield';
27+
import { getAllSecureKeys } from '@thinkgrid/react-native-shield';
2828

2929
const keys = await getAllSecureKeys();
3030
// ['access_token', 'refresh_token', 'user_id']
@@ -35,7 +35,7 @@ Useful for migration scripts, key rotation, or auditing storage state before a r
3535
## Bulk wipe
3636

3737
```typescript
38-
import { clearAllSecureStorage } from '@think-grid-labs/react-native-shield';
38+
import { clearAllSecureStorage } from '@thinkgrid/react-native-shield';
3939

4040
const handleLogout = async () => {
4141
await clearAllSecureStorage();

docs/guide/ssl-pinning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Prevent Man-in-the-Middle (MitM) attacks by verifying your server's certificate
77
Call `addSSLPinning` **early in your app lifecycle** — before any network requests are made.
88

99
```typescript
10-
import { addSSLPinning } from '@think-grid-labs/react-native-shield';
10+
import { addSSLPinning } from '@thinkgrid/react-native-shield';
1111

1212
useEffect(() => {
1313
const configurePinning = async () => {
@@ -39,7 +39,7 @@ openssl s_client -servername api.yourdomain.com -connect api.yourdomain.com:443
3939
## Rotating pins
4040

4141
```typescript
42-
import { updateSSLPins } from '@think-grid-labs/react-native-shield';
42+
import { updateSSLPins } from '@thinkgrid/react-native-shield';
4343

4444
// Android: takes effect immediately at runtime
4545
// iOS: throws SSL_PIN_UPDATE_UNSUPPORTED — new pins apply after next app launch

0 commit comments

Comments
 (0)