New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-vaccine

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-vaccine - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

lib/mock-state.js

5

index.js
import { vaccinator } from './lib/vaccinator.js';
import { withVaccine } from './lib/with-vaccine.js';
import * as vaccinations from 'vaccinations.js';
import * as vaccinations from './vaccinations.js';
import MockState from './lib/mock-state.js';

@@ -13,2 +14,2 @@ const getVaccination = key => {

export { vaccinator, vaccinate };
export { vaccinator, vaccinate, MockState };

2

lib/vaccinator.js
import React from 'react';
import * as vaccinations from 'vaccinations.js';
import * as vaccinations from '../vaccinations.js';

@@ -4,0 +4,0 @@ let initialized = false;

{
"name": "react-vaccine",
"version": "0.0.2",
"version": "0.0.3",
"description": "Config-free React and Redux testkit",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -1,21 +0,3 @@

class MockState {
import { MockState } from './index.js';
deepClone(state) {
return Object.assign({}, state); //Temporary
}
setState(state) {
this.state = this.deepClone(state);
}
setDispatch(dispatch) {
this.dispatch = dispatch;
}
getState() {
return this.state;
}
}
let mockState = new MockState();

@@ -22,0 +4,0 @@

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