webbluetooth
Advanced tools
Comparing version 1.0.7 to 1.1.0
{ | ||
"name": "webbluetooth", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "Node.js implementation of the Web Bluetooth Specification", | ||
@@ -8,4 +8,5 @@ "homepage": "https://github.com/thegecko/webbluetooth", | ||
"license": "MIT", | ||
"types": "./types/index.d.ts", | ||
"main": "./index.js", | ||
"main": "dist/webbluetooth.umd.js", | ||
"module": "dist/webbluetooth.esm.js", | ||
"types": "types/index.d.ts", | ||
"repository": { | ||
@@ -21,25 +22,26 @@ "type": "git", | ||
"scripts": { | ||
"gulp": "gulp" | ||
"build": "rollup -c && typedoc src", | ||
"watch": "rollup -c -w" | ||
}, | ||
"engines": { | ||
"node": ">=4.8.0" | ||
"node": ">=6.15.0" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^1.10.1", | ||
"rollup-plugin-delete": "^0.2.2", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-terser": "^4.0.4", | ||
"rollup-plugin-tslint": "^0.2.2", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"tslint": "^5.16.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.4.5" | ||
}, | ||
"dependencies": { | ||
"@types/noble": "0.0.34", | ||
"@types/node": "^8.0.54", | ||
"del": "^3.0.0", | ||
"gulp": "^3.9.1", | ||
"gulp-sourcemaps": "^2.6.1", | ||
"gulp-tslint": "^8.1.3", | ||
"gulp-typedoc": "^2.1.1", | ||
"gulp-typescript": "^3.2.3", | ||
"merge2": "^1.2.0", | ||
"tslint": "^5.9.1", | ||
"tslint-eslint-rules": "^4.1.1", | ||
"typedoc": "^0.9.0", | ||
"typescript": "~2.6.2" | ||
}, | ||
"dependencies": { | ||
"noble": "^1.8.1" | ||
} | ||
} |
@@ -10,3 +10,3 @@ # Node Web Bluetooth | ||
[Node.js > v4.8.0](https://nodejs.org), which includes `npm`. | ||
[Node.js > v6.15.0](https://nodejs.org), which includes `npm`. | ||
@@ -13,0 +13,0 @@ ## Installation |
@@ -43,8 +43,8 @@ /// <reference types="node" /> | ||
private readonly state; | ||
private init(completeFn); | ||
private checkForError(errorFn, continueFn?, delay?); | ||
private bufferToDataView(buffer); | ||
private dataViewToBuffer(dataView); | ||
private validDevice(deviceInfo, serviceUUIDs); | ||
private deviceToBluetoothDevice(deviceInfo); | ||
private init; | ||
private checkForError; | ||
private bufferToDataView; | ||
private dataViewToBuffer; | ||
private validDevice; | ||
private deviceToBluetoothDevice; | ||
getEnabled(completeFn: (enabled: boolean) => void): void; | ||
@@ -51,0 +51,0 @@ startScan(serviceUUIDs: Array<string>, foundFn: (device: Partial<BluetoothDevice>) => void, completeFn?: () => void, errorFn?: (errorMsg: string) => void): void; |
@@ -75,3 +75,3 @@ import { EventDispatcher } from "./dispatcher"; | ||
constructor(options?: BluetoothOptions); | ||
private filterDevice(options, deviceInfo, validServices); | ||
private filterDevice; | ||
/** | ||
@@ -78,0 +78,0 @@ * Gets the availability of a bluetooth adapter |
@@ -78,3 +78,3 @@ import { EventDispatcher } from "./dispatcher"; | ||
constructor(init: Partial<BluetoothRemoteGATTCharacteristic>); | ||
private setValue(value?, emit?); | ||
private setValue; | ||
/** | ||
@@ -81,0 +81,0 @@ * Gets a single characteristic descriptor |
@@ -0,0 +0,0 @@ import { BluetoothRemoteGATTCharacteristic } from "./characteristic"; |
@@ -0,0 +0,0 @@ import { EventDispatcher } from "./dispatcher"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -36,3 +36,3 @@ /** | ||
"user_data" = 6172, | ||
"weight_scale" = 6173, | ||
"weight_scale" = 6173 | ||
} | ||
@@ -203,3 +203,3 @@ /** | ||
"weight_scale_feature" = 10910, | ||
"wind_chill" = 10873, | ||
"wind_chill" = 10873 | ||
} | ||
@@ -224,3 +224,3 @@ /** | ||
"es_trigger_setting" = 10509, | ||
"time_trigger_setting" = 10510, | ||
"time_trigger_setting" = 10510 | ||
} | ||
@@ -227,0 +227,0 @@ /** |
@@ -0,0 +0,0 @@ import { Bluetooth } from "./bluetooth"; |
@@ -0,0 +0,0 @@ import { BluetoothDevice } from "./device"; |
@@ -0,0 +0,0 @@ import { EventDispatcher } from "./dispatcher"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1689630
11
9621
3
79
2
1
+ Added@types/noble@0.0.34
+ Added@types/node@^8.0.54
+ Added@types/noble@0.0.34(transitive)
+ Added@types/node@8.10.66(transitive)