@foxglove/rosbag2-web
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -5,3 +5,3 @@ /// <reference types="emscripten" /> | ||
import { SqlJsStatic } from "@foxglove/sql.js"; | ||
export declare type LocateWasmUrl = (url: string, scriptDirectory: string) => string; | ||
export type LocateWasmUrl = (url: string, scriptDirectory: string) => string; | ||
export declare class SqliteSqljs implements SqliteDb { | ||
@@ -8,0 +8,0 @@ private file?; |
@@ -11,2 +11,9 @@ "use strict"; | ||
class SqliteSqljs { | ||
static async Initialize(config) { | ||
if (SqliteSqljs.SqlInitialization) { | ||
return await SqliteSqljs.SqlInitialization; | ||
} | ||
SqliteSqljs.SqlInitialization = (0, sql_js_1.default)(config); | ||
return await SqliteSqljs.SqlInitialization; | ||
} | ||
constructor(data) { | ||
@@ -20,9 +27,2 @@ if (data instanceof File) { | ||
} | ||
static async Initialize(config) { | ||
if (SqliteSqljs.SqlInitialization) { | ||
return await SqliteSqljs.SqlInitialization; | ||
} | ||
SqliteSqljs.SqlInitialization = (0, sql_js_1.default)(config); | ||
return await SqliteSqljs.SqlInitialization; | ||
} | ||
async open() { | ||
@@ -29,0 +29,0 @@ const SQL = await SqliteSqljs.Initialize(); |
{ | ||
"name": "@foxglove/rosbag2-web", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "ROS2 (Robot Operating System) bag reader and writer for the browser", | ||
@@ -44,26 +44,26 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@foxglove/eslint-plugin": "0.20.0", | ||
"@types/jest": "^29.0.1", | ||
"@types/sql.js": "^1.4.3", | ||
"@foxglove/eslint-plugin": "0.21.0", | ||
"@types/jest": "^29.4.0", | ||
"@types/sql.js": "^1.4.4", | ||
"@types/wicg-entries-api": "^2020.8.0", | ||
"@types/wicg-file-system-access": "^2020.9.5", | ||
"@typescript-eslint/eslint-plugin": "5.37.0", | ||
"@typescript-eslint/parser": "5.37.0", | ||
"eslint": "8.23.1", | ||
"eslint-config-prettier": "8.5.0", | ||
"@typescript-eslint/eslint-plugin": "5.52.0", | ||
"@typescript-eslint/parser": "5.52.0", | ||
"eslint": "8.34.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-plugin-es": "4.1.0", | ||
"eslint-plugin-filenames": "1.3.2", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jest": "27.0.4", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-jest": "27.2.1", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"jest": "29.0.3", | ||
"jest-environment-jsdom": "29.0.3", | ||
"prettier": "2.7.1", | ||
"ts-jest": "29.0.0", | ||
"typescript": "4.8.3" | ||
"jest": "29.4.3", | ||
"jest-environment-jsdom": "29.4.3", | ||
"prettier": "2.8.4", | ||
"ts-jest": "29.0.5", | ||
"typescript": "4.9.5" | ||
}, | ||
"dependencies": { | ||
"@foxglove/rosbag2": "^4.3.1", | ||
"@foxglove/rosbag2": "^4.3.3", | ||
"@foxglove/sql.js": "^0.0.4" | ||
} | ||
} |
# @foxglove/rosbag2-web | ||
> _ROS2 (Robot Operating System) bag reader and writer for the browser 👜_ | ||
> _ROS 2 (Robot Operating System) bag reader for the browser 👜_ | ||
@@ -9,10 +9,4 @@ [![npm version](https://img.shields.io/npm/v/@foxglove/rosbag2-web.svg?style=flat)](https://www.npmjs.com/package/@foxglove/rosbag2-web) | ||
... | ||
`rosbag2-web` enables web browsers to read the contents of ROS 2 SQLite files. It is currently being used in the [Foxglove Studio app](https://studio.foxglove.dev) to support reading data in this legacy file format. This SQLite format has been superseded by [MCAP](https://mcap.dev). | ||
## Usage | ||
```Typescript | ||
... | ||
``` | ||
## License | ||
@@ -19,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52303
24
Updated@foxglove/rosbag2@^4.3.3