@meshtastic/meshtasticjs
Advanced tools
Comparing version 0.9.7 to 0.9.8
@@ -86,3 +86,3 @@ import { Types } from "./index.js"; | ||
let pingSuccessful = false; | ||
await fetch(`${this.url}/hotspot-detect.html`, { signal }) | ||
await fetch(`${this.url}/hotspot-detect.html`, { signal, mode: 'no-cors' }) | ||
.then(() => { | ||
@@ -89,0 +89,0 @@ pingSuccessful = true; |
@@ -612,3 +612,7 @@ import { Logger } from "tslog"; | ||
generateRandId() { | ||
return Math.floor(Math.random() * 1e9); | ||
const seed = crypto.getRandomValues(new Uint32Array(1)); | ||
if (!seed[0]) { | ||
throw new Error("Cannot generate CSPRN"); | ||
} | ||
return Math.floor(seed[0] * Math.pow(2, -32) * 1e9); | ||
} | ||
@@ -615,0 +619,0 @@ /** |
{ | ||
"name": "@meshtastic/meshtasticjs", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "Browser library for interfacing with meshtastic devices", | ||
@@ -50,3 +50,3 @@ "license": "GPL-3.0-only", | ||
"@typescript-eslint/parser": "^5.47.1", | ||
"eslint": "^8.30.0", | ||
"eslint": "^8.31.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -53,0 +53,0 @@ "eslint-import-resolver-typescript": "^3.5.2", |
@@ -5,3 +5,3 @@ # Meshtastic.js | ||
[![Downloads](https://badgen.net/npm/dt/@meshtastic/meshtasticjs)](https://www.npmjs.com/package/@meshtastic/meshtasticjs) | ||
[![CI](https://img.shields.io/github/workflow/status/meshtastic/meshtastic.js/CI?label=actions&logo=github&color=yellow)](https://github.com/meshtastic/meshtastic.js/actions/workflows/ci.yml) | ||
[![CI](https://img.shields.io/github/actions/workflow/status/meshtastic/js/ci.yml?branch=master&label=actions&logo=github&color=yellow)](https://github.com/meshtastic/js/actions/workflows/ci.yml) | ||
[![CLA assistant](https://cla-assistant.io/readme/badge/meshtastic/meshtastic.js)](https://cla-assistant.io/meshtastic/meshtastic.js) | ||
@@ -8,0 +8,0 @@ [![Fiscal Contributors](https://opencollective.com/meshtastic/tiers/badge.svg?label=Fiscal%20Contributors&color=deeppink)](https://opencollective.com/meshtastic/) |
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
552029
11595