react-native-linkedin-oauth2 1.0.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ jest.mock('react-native', () => {
3
+ const React = require('react');
4
+ const View = (props) => React.createElement('View', props, props.children);
5
+ const Text = (props) => React.createElement('Text', props, props.children);
6
+ const Modal = (props) => React.createElement('Modal', props, props.children);
7
+ const TouchableOpacity = (props) => React.createElement('TouchableOpacity', props, props.children);
8
+ const ActivityIndicator = (props) => React.createElement('ActivityIndicator', props, props.children);
9
+ const SafeAreaView = (props) => React.createElement('SafeAreaView', props, props.children);
10
+ return {
11
+ StyleSheet: {
12
+ create: (styles) => styles,
13
+ absoluteFillObject: {},
14
+ flatten: (style) => style,
15
+ },
16
+ View,
17
+ Text,
18
+ Modal,
19
+ TouchableOpacity,
20
+ ActivityIndicator,
21
+ SafeAreaView,
22
+ Platform: {
23
+ OS: 'ios',
24
+ select: (objs) => objs.ios,
25
+ },
26
+ Dimensions: {
27
+ get: () => ({ width: 375, height: 812 }),
28
+ },
29
+ __esModule: true,
30
+ };
31
+ });
32
+ jest.mock('react-native-webview', () => {
33
+ const React = require('react');
34
+ return {
35
+ __esModule: true,
36
+ default: (props) => React.createElement('View', { ...props, testID: 'mock-webview' }),
37
+ };
38
+ });
39
+ jest.mock('react-native-webview/lib/WebViewTypes', () => ({}));
40
+ //# sourceMappingURL=setupTests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupTests.js","sourceRoot":"","sources":["../src/setupTests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/B,MAAM,IAAI,GAAG,CAAC,KAAU,EAAE,EAAE,CAC1B,KAAK,CAAC,aAAa,CA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,EAAE,IAAI;KACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACrC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE,CACtB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;KACpE,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,IAAI,CAAC,uCAAuC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "react-native-linkedin-oauth2",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "A simple package to integrate Linkedin OAuth2 in React Native Apps",
5
5
  "scripts": {
6
- "test": "vitest run",
7
- "dev": "vitest",
6
+ "test": "jest",
7
+ "dev": "jest --watch",
8
8
  "build": "tsc",
9
9
  "ci": "npm run build && npm run check-format && npm run format && npm run test",
10
10
  "format": "prettier --write .",
@@ -15,7 +15,11 @@
15
15
  "keywords": [
16
16
  "linkedin",
17
17
  "oauth2",
18
- "react-native"
18
+ "react-native",
19
+ "react-native-linkedin",
20
+ "react-native-oauth2",
21
+ "react-native-linkedin-oauth2",
22
+ "linkedin-oauth2"
19
23
  ],
20
24
  "author": "Nikhil Wankhede",
21
25
  "homepage": "https://github.com/NikhilRW/react-native-linkedin-oauth2",
@@ -33,9 +37,36 @@
33
37
  "main": "dist/index.js",
34
38
  "license": "MIT",
35
39
  "devDependencies": {
40
+ "@babel/core": "^7.25.2",
41
+ "@babel/preset-env": "^7.25.3",
42
+ "@babel/runtime": "^7.25.0",
36
43
  "@changesets/cli": "^2.29.8",
44
+ "@react-native-community/cli": "20.0.0",
45
+ "@react-native-community/cli-platform-android": "20.0.0",
46
+ "@react-native-community/cli-platform-ios": "20.0.0",
47
+ "@react-native/babel-preset": "0.83.0",
48
+ "@react-native/eslint-config": "0.83.0",
49
+ "@react-native/metro-config": "^0.83.0",
50
+ "@react-native/new-app-screen": "0.83.0",
51
+ "@react-native/typescript-config": "0.83.0",
52
+ "@testing-library/react-native": "^13.3.3",
53
+ "@types/jest": "^29.5.13",
54
+ "@types/node": "^25.0.3",
55
+ "@types/react": "^19.2.0",
56
+ "@types/react-test-renderer": "^19.1.0",
57
+ "eslint": "^8.19.0",
58
+ "jest": "^29.6.3",
37
59
  "prettier": "^3.7.4",
38
- "typescript": "^5.9.3",
39
- "vitest": "^4.0.15"
60
+ "react": "19.2.0",
61
+ "react-native": "0.83.0",
62
+ "react-native-safe-area-context": "^5.5.2",
63
+ "react-test-renderer": "19.2.0",
64
+ "typescript": "^5.9.3"
65
+ },
66
+ "peerDependencies": {
67
+ "react": "*",
68
+ "react-native": "*",
69
+ "react-native-safe-area-context": "*",
70
+ "react-native-webview": "*"
40
71
  }
41
72
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- import { loginLinkedIn } from '../index.js';
2
- import { test, expect, vi } from 'vitest';
3
- test('Test loginLinkedIn function', () => {
4
- expect(loginLinkedIn).toBeDefined();
5
- const logSpy = vi.spyOn(console, 'log');
6
- loginLinkedIn();
7
- expect(logSpy).toHaveBeenCalledWith('Logging In In Your App Using Linkedin !!! ');
8
- logSpy.mockRestore();
9
- });
10
- //# sourceMappingURL=index.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE1C,IAAI,CAAC,6BAA6B,EAAE,GAAG,EAAE;IACvC,MAAM,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,CAAC;IAEpC,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAExC,aAAa,EAAE,CAAC;IAEhB,MAAM,CAAC,MAAM,CAAC,CAAC,oBAAoB,CACjC,4CAA4C,CAC7C,CAAC;IAEF,MAAM,CAAC,WAAW,EAAE,CAAC;AACvB,CAAC,CAAC,CAAC"}