Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Wed Oct 16 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import MuppetChannel from './src/MuppetChannel';
import { MuppetProvider } from './src/MuppetProvider';
import { getAndSaveSessionId, getSessionId } from './src/session';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@noaa-gsl/idsse-muppet",
"version": "0.0.11",
"version": "0.0.12",
"description": "Connect to, send, and receive data over MUPPET data channels in convenient React interfaces using the MUPPETs protocol",
"main": "index.js",
"scripts": {
Expand Down
11 changes: 11 additions & 0 deletions src/MuppetChannel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
/* --------------------------------------------------------------------------------
* Created on Wed Oct 16 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/
/* eslint-disable no-console */

import { io } from 'socket.io-client';
import { subscribeToTimeout } from './utils';

Expand Down
11 changes: 11 additions & 0 deletions src/MuppetProvider.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Tues Nov 5 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import { createContext, useEffect, useState } from 'react';

import MuppetChannel from './MuppetChannel';
Expand Down
11 changes: 11 additions & 0 deletions src/hooks/useMuppetCallback.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Tue Nov 5 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import { useEffect, useState } from 'react';

import useMuppetChannel from './useMuppetChannel';
Expand Down
11 changes: 11 additions & 0 deletions src/hooks/useMuppetChannel.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Wed Oct 16 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import { useContext } from 'react';

import { MuppetContext } from '../MuppetProvider';
Expand Down
11 changes: 11 additions & 0 deletions src/hooks/useMuppetChannels.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Wed Nov 6 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import { useContext } from 'react';

import { MuppetContext } from '../MuppetProvider';
Expand Down
11 changes: 11 additions & 0 deletions src/session.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Wed Oct 16 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import { getDeviceFingerprint } from './utils';

/**
Expand Down
11 changes: 11 additions & 0 deletions src/session.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Fri Jan 24 2025
*
* Copyright (c) 2025 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import { describe, it, expect, beforeEach, vi, afterEach } from 'vitest';
import { getSessionId, setSessionId, clearSessionId } from './session';

Expand Down
11 changes: 11 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/* --------------------------------------------------------------------------------
* Created on Wed Oct 16 2024
*
* Copyright (c) 2024 Colorado State University. All rights reserved. (1)
*
* Contributors:
* Mackenzie Grimes (1)
*
* --------------------------------------------------------------------------------
*/

import * as ThumbmarkJS from '@thumbmarkjs/thumbmarkjs';

// utility to simulate attempting a network call. To be deleted
Expand Down
13 changes: 13 additions & 0 deletions src/vitest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* --------------------------------------------------------------------------------
* Created on Fri Jan 24 2025
*
* Copyright (c) 2025 Colorado State University. All rights reserved. (1)
* Copyright (c) 2025 Regents of the University of Colorado. All rights reserved. (2)

* Contributors:
* Mackenzie Grimes (1)
* Mike Rabellino (2)
*
* --------------------------------------------------------------------------------
*/

import { defineConfig } from 'vitest/config';

export default defineConfig({
Expand Down