Skip to content

Commit

Permalink
Update dependencies and remove unnecessary imports to remove import c…
Browse files Browse the repository at this point in the history
…ycles.
  • Loading branch information
Cierpliwy committed Oct 3, 2018
1 parent d4a8672 commit 4197e67
Show file tree
Hide file tree
Showing 8 changed files with 1,669 additions and 2,662 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["react-native"]
"presets": ["module:metro-react-native-babel-preset"]
}
5 changes: 4 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ node_modules/react-native/flow-github/
[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.system=haste
module.system.haste.use_name_reducers=true
# get basename
Expand Down Expand Up @@ -70,4 +73,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.75.0
^0.78.0
4,264 changes: 1,629 additions & 2,635 deletions package-lock.json

Large diffs are not rendered by default.

40 changes: 25 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,35 @@
"url": "git+https://github.com/Polidea/react-native-ble-plx.git"
},
"devDependencies": {
"babel-eslint": "8.2.1",
"babel-jest": "23.2.0",
"babel-preset-react-native": "4.0.0",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"metro-react-native-babel-preset": "0.45.6",
"documentation": "8.1.2",
"eslint": "4.15.0",
"eslint-plugin-flowtype": "2.41.0",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jest": "21.7.0",
"eslint-plugin-react": "7.5.1",
"flow-bin": "^0.75.0",
"jest": "22.3.0",
"prettier": "1.10.2",
"react": "16.4.1",
"react-native": "0.56.0"
"eslint": "5.6.1",
"eslint-plugin-flowtype": "2.50.3",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jest": "21.24.1",
"eslint-plugin-react": "7.11.1",
"flow-bin": "^0.78.0",
"jest": "23.6.0",
"prettier": "1.14.3",
"react": "16.5.0",
"react-native": "0.57.1"
},
"keywords": ["React", "Native", "Bluetooth", "Low", "Energy", "BLE", "Polidea"],
"keywords": [
"React",
"Native",
"Bluetooth",
"Low",
"Energy",
"BLE",
"Polidea"
],
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": ["<rootDir>/examples"]
"modulePathIgnorePatterns": [
"<rootDir>/examples"
]
},
"author": "Polidea",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Characteristic.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
'use strict'

import { BleManager } from './BleManager'
import { BleError } from './BleError'
import type { BleManager } from './BleManager'
import type { BleError } from './BleError'
import type { NativeCharacteristic } from './BleModule'
import type { DeviceId, Identifier, UUID, TransactionId, Base64, Subscription } from './TypeDefinition'

Expand Down
8 changes: 4 additions & 4 deletions src/Device.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @flow
'use strict'

import { BleManager } from './BleManager'
import { BleError } from './BleError'
import { Characteristic } from './Characteristic'
import { Service } from './Service'
import type { BleManager } from './BleManager'
import type { BleError } from './BleError'
import type { Characteristic } from './Characteristic'
import type { Service } from './Service'
import { ConnectionPriority } from './TypeDefinition'
import type { NativeDevice } from './BleModule'
import type { DeviceId, Base64, UUID, Subscription, TransactionId, ConnectionOptions } from './TypeDefinition'
Expand Down
6 changes: 3 additions & 3 deletions src/Service.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @flow
'use strict'

import { BleManager } from './BleManager'
import { BleError } from './BleError'
import { Characteristic } from './Characteristic'
import type { BleManager } from './BleManager'
import type { BleError } from './BleError'
import type { Characteristic } from './Characteristic'
import type { NativeService } from './BleModule'
import type { DeviceId, Identifier, Base64, UUID, Subscription, TransactionId } from './TypeDefinition'

Expand Down
2 changes: 1 addition & 1 deletion src/TypeDefinition.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
'use strict'

import { Device } from './Device'
import type { Device } from './Device'
import { BleErrorCode } from './BleError'

/**
Expand Down

0 comments on commit 4197e67

Please sign in to comment.