Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

magpie-base

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magpie-base - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "magpie-base",
"version": "0.2.1",
"version": "0.2.2",
"description": "Provides base components for _magpie frontend projects",

@@ -5,0 +5,0 @@ "author": "_magpie project",

@@ -20,2 +20,6 @@ # magpie-base

## Development principles
* Components should not expose CSS classes for manipulation but instead offer customization either via unstyled slots or via props.
* Pre-packaged screens are more of a convenience should be rather easy to replicate with normal userland code
### Docs

@@ -22,0 +26,0 @@ In order to spin up a local web server with the docs run `npm run docs`.

@@ -14,5 +14,4 @@ import { Socket as PhoenixSocket } from 'phoenix';

export default class Socket extends EventEmitter {
constructor($magpie, socketURL, errorhandler) {
constructor(experimentId, socketURL, errorhandler) {
super();
this.$magpie = $magpie;
this.errorHandler = (er) => {

@@ -24,6 +23,7 @@ this.state = states.ERROR;

this.participantId = generateId(40);
this.experimentId = experimentId;
this.phoenix = new PhoenixSocket(socketURL, {
params: {
participant_id: this.participantId,
experiment_id: this.$magpie.experimentId
experiment_id: experimentId
}

@@ -64,6 +64,6 @@ });

if (!this.chain || !this.realization) {
return
return;
}
this.roomChannel = this.phoenix.channel(
`interactive_room:${this.$magpie.id}:${this.chain}:${this.realization}`,
`interactive_room:${this.experimentId}:${this.chain}:${this.realization}`,
{ participant_id: this.participantId }

@@ -70,0 +70,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc