@psdk/device-bluetooth-traits
Advanced tools
Comparing version 0.5.9 to 0.5.10
@@ -1,2 +0,2 @@ | ||
require('./sourcemap-register.js');(()=>{"use strict";var e={328:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TBluetoothHelpers=void 0;const i=r(761);class TBluetoothHelpers{static isAllowService(e,t){return this.isAllowServices(e,t&&[t])}static isAllowServices(e,t){if(t==undefined)return true;for(const r of t){const t=r.rule??i.AllowRule.EQUALS;switch(t){case i.AllowRule.EQUALS:{if(e==r.uuid)return true;break}case i.AllowRule.START_WITH:{if(e.startsWith(r.uuid))return true;break}case i.AllowRule.END_WITH:{if(e.endsWith(r.uuid))return true;break}case i.AllowRule.REGEX:{if(new RegExp(r.uuid).test(e))return true;break}}}}}t.TBluetoothHelpers=TBluetoothHelpers},926:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var o=Object.getOwnPropertyDescriptor(t,r);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,o)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var o=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});o(r(728),t);o(r(761),t);o(r(328),t)},728:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Jluetooth=void 0;class Jluetooth{async isDiscovery(){const e=await this.bluetoothAdapterState();return e.discovering||false}}t.Jluetooth=Jluetooth},761:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.AllowRule=t.JluetoothDevice=void 0;class JluetoothDevice{origin;name;deviceId;constructor(e){this.origin=e.origin;this.name=e.name;this.deviceId=e.deviceId}}t.JluetoothDevice=JluetoothDevice;var r;(function(e){e["EQUALS"]="EQUALS";e["START_WITH"]="START_WITH";e["END_WITH"]="END_WITH";e["REGEX"]="REGEX"})(r||(t.AllowRule=r={}))}};var t={};function __nccwpck_require__(r){var i=t[r];if(i!==undefined){return i.exports}var o=t[r]={exports:{}};var u=true;try{e[r].call(o.exports,o,o.exports,__nccwpck_require__);u=false}finally{if(u)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(926);module.exports=r})(); | ||
//# sourceMappingURL=index.js.map | ||
var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var v=(r,e)=>{for(var i in e)a(r,i,{get:e[i],enumerable:!0})},f=(r,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!b.call(r,t)&&t!==i&&a(r,t,{get:()=>e[t],enumerable:!(o=l(e,t))||o.enumerable});return r};var p=r=>f(a({},"__esModule",{value:!0}),r);var S={};v(S,{AllowRule:()=>c,Jluetooth:()=>n,JluetoothDevice:()=>s,TBluetoothHelpers:()=>d});module.exports=p(S);var n=class{async isDiscovery(){return(await this.bluetoothAdapterState()).discovering||!1}};var s=class{origin;name;deviceId;constructor(e){this.origin=e.origin,this.name=e.name,this.deviceId=e.deviceId}},c=(t=>(t.EQUALS="EQUALS",t.START_WITH="START_WITH",t.END_WITH="END_WITH",t.REGEX="REGEX",t))(c||{});var d=class{static isAllowService(e,i){return this.isAllowServices(e,i&&[i])}static isAllowServices(e,i){if(i==null)return!0;for(let o of i)switch(o.rule??"EQUALS"){case"EQUALS":{if(e==o.uuid)return!0;break}case"START_WITH":{if(e.startsWith(o.uuid))return!0;break}case"END_WITH":{if(e.endsWith(o.uuid))return!0;break}case"REGEX":{if(new RegExp(o.uuid).test(e))return!0;break}}}}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@psdk/device-bluetooth-traits", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"description": "psdk", | ||
"main": "build/index.js", | ||
"main": "src/index.js", | ||
"types": "build/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"package": "tsc && ncc build --source-map build/index.js -m -C -o dist", | ||
"package": "tsc && node esbuild.js", | ||
"test": "jest", | ||
@@ -19,3 +19,4 @@ "docs": "npx typedoc --out dist/docs index.ts" | ||
"@types/jest": "^29.5.12", | ||
"@vercel/ncc": "^0.38.1", | ||
"await-timeout": "^1.1.1", | ||
"esbuild": "^0.23.0", | ||
"jest": "^29.7.0", | ||
@@ -28,4 +29,3 @@ "ts-jest": "^29.1.5", | ||
"dependencies": { | ||
"@psdk/frame-father": "0.5.9", | ||
"await-timeout": "^1.1.1" | ||
"@psdk/frame-father": "0.5.10" | ||
}, | ||
@@ -37,3 +37,3 @@ "files": [ | ||
], | ||
"gitHead": "9d88a4e272f866005196481a70fd526eb992b5cf" | ||
"gitHead": "ee792253e2636ba296172473763669a6e5d700c4" | ||
} |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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 2 instances in 1 package
1
2
1
15707
8
15
189
+ Added@psdk/frame-father@0.5.10(transitive)
- Removedawait-timeout@^1.1.1
- Removed@psdk/frame-father@0.5.9(transitive)
- Removedawait-timeout@1.1.1(transitive)
Updated@psdk/frame-father@0.5.10