cordova-plugin-wifi-manager
Advanced tools
Comparing version 0.4.1 to 0.4.2
module.exports = { | ||
extends: 'semistandard' | ||
globals: { | ||
cordova: false, | ||
}, | ||
env: { | ||
node: true, | ||
es6: true, | ||
browser: true, | ||
jasmine: true, | ||
}, | ||
extends: ['eslint:recommended', 'prettier'], | ||
}; |
@@ -0,1 +1,6 @@ | ||
## [0.4.2](https://github.com/sushichop/cordova-plugin-wifi-manager/releases/tag/0.4.2) (2022-01-01) | ||
- Update ESLint and Prettier. [#29](https://github.com/sushichop/cordova-plugin-wifi-manager/pull/29) | ||
- Unbind process from network on disconnect on Android Q. [#32](https://github.com/sushichop/cordova-plugin-wifi-manager/pull/32) | ||
## [0.4.1](https://github.com/sushichop/cordova-plugin-wifi-manager/releases/tag/0.4.1) (2021-07-09) | ||
@@ -2,0 +7,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { warn, danger } from 'danger'; | ||
const { message, warn, danger } = require('danger'); | ||
@@ -49,1 +49,4 @@ const modifiedFiles = danger.git.modified_files; | ||
} | ||
// Display `danger` has been executed. | ||
message(`<i>danger</i> has been executed.`); |
{ | ||
"name": "cordova-plugin-wifi-manager", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Wi-Fi Manager Plugin for Apache Cordova", | ||
@@ -28,4 +28,8 @@ "engines": { | ||
"scripts": { | ||
"lint": "eslint --ext .js ./", | ||
"lint:fix": "eslint --ext .js --fix ./", | ||
"lint": "run-p -l -c --aggregate-output lint:*", | ||
"lint:eslint": "eslint . --ext .js", | ||
"lint:prettier": "prettier . --check", | ||
"fix": "run-s fix:eslint fix:prettier", | ||
"fix:eslint": "npm run lint:eslint -- --fix", | ||
"fix:prettier": "npm run lint:prettier -- --write", | ||
"test:android": "cordova-paramedic --cleanUpAfterRun --verbose --platform android --plugin .", | ||
@@ -38,10 +42,7 @@ "test:ios": "cordova-paramedic --cleanUpAfterRun --verbose --platform ios --plugin ." | ||
"danger": "^10.6.6", | ||
"eslint": "^7.30.0", | ||
"eslint-cli": "^1.1.1", | ||
"eslint-config-semistandard": "^16.0.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0" | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.4.1" | ||
} | ||
} |
@@ -6,3 +6,2 @@ # cordova-plugin-wifi-manager | ||
![GitHub Actions](https://github.com/sushichop/cordova-plugin-wifi-manager/workflows/ci/badge.svg) | ||
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/Flet/semistandard) | ||
@@ -22,3 +21,3 @@ Wi-Fi Manager Plugin for Apache Cordova | ||
__Notice__ | ||
**Notice** | ||
@@ -30,6 +29,5 @@ When you use this plugin for Android 10 (API level 29) or later, you can connect to the Internet only through your own (cordova) app. This is due to the specification of new Android API, [WifiNetworkSpecifier](https://developer.android.com/reference/android/net/wifi/WifiNetworkSpecifier). | ||
``` | ||
cordova run android --device -- --gradleArg=-PcdvTargetSdkVersion=28 | ||
cordova run android --device -- --gradleArg=-PcdvTargetSdkVersion=28 | ||
``` | ||
## Usage | ||
@@ -78,4 +76,4 @@ | ||
[MIT]: http://www.opensource.org/licenses/mit-license | ||
[mit]: http://www.opensource.org/licenses/mit-license | ||
`cordova-plugin-wifi-manager` is available under the [MIT license][MIT]. See the LICENSE file for details. | ||
`cordova-plugin-wifi-manager` is available under the [MIT license][mit]. See the LICENSE file for details. |
{ | ||
"name": "cordova-plugin-wifi-manager-app", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Wi-Fi Manager Plugin App", | ||
@@ -5,0 +5,0 @@ "cordova": { |
{ | ||
"name": "cordova-plugin-wifi-manager-tests", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Wi-Fi Manager Plugin Tests", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -1,2 +0,2 @@ | ||
// Type definitions for cordova-plugin-wifi-manager 0.4.1 | ||
// Type definitions for cordova-plugin-wifi-manager 0.4.2 | ||
// Project: https://github.com/sushichop/cordova-plugin-wifi-manager | ||
@@ -17,8 +17,3 @@ // Definitions by: Koichi Yokota <https://github.com/sushichop> | ||
*/ | ||
connect( | ||
ssid: string, | ||
passphrase: string, | ||
onSuccess: SuccessCallback, | ||
onFailure: FailureCallback, | ||
): void; | ||
connect(ssid: string, passphrase: string, onSuccess: SuccessCallback, onFailure: FailureCallback): void; | ||
@@ -31,7 +26,3 @@ /** | ||
*/ | ||
disconnect( | ||
ssid: string, | ||
onSuccess: SuccessCallback, | ||
onFailure: FailureCallback, | ||
): void; | ||
disconnect(ssid: string, onSuccess: SuccessCallback, onFailure: FailureCallback): void; | ||
} | ||
@@ -38,0 +29,0 @@ |
@@ -14,3 +14,3 @@ 'use strict'; | ||
*/ | ||
function connect (ssid, passphrase, onSuccess, onFailure) { | ||
function connect(ssid, passphrase, onSuccess, onFailure) { | ||
argscheck.checkArgs('ssFF', PLUGIN_NAME + '.connect', arguments); | ||
@@ -26,3 +26,3 @@ exec(onSuccess, onFailure, PLUGIN_NAME, 'connect', [ssid, passphrase]); | ||
*/ | ||
function disconnect (ssid, onSuccess, onFailure) { | ||
function disconnect(ssid, onSuccess, onFailure) { | ||
argscheck.checkArgs('sFF', PLUGIN_NAME + '.disconnect', arguments); | ||
@@ -34,3 +34,3 @@ exec(onSuccess, onFailure, PLUGIN_NAME, 'disconnect', [ssid]); | ||
connect: connect, | ||
disconnect: disconnect | ||
disconnect: disconnect, | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32637
5
23
142
76