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

@bufferapp/profile-loader

Package Overview
Dependencies
Maintainers
31
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bufferapp/profile-loader - npm Package Compare versions

Comparing version 1.77.4 to 2.0.0-beta-3

coverage/clover.xml

9

components/ProfileLoader/index.jsx

@@ -6,3 +6,3 @@ import React, { useEffect, useState } from "react";

import { useQuery } from "@apollo/client";
import { AccountContext, GET_ACCOUNT } from '@bufferapp/analyze-account';
import { AccountContext, GET_ACCOUNT } from '~/account';

@@ -75,2 +75,9 @@ import { ChannelsContext } from "../../ChannelsContext";

if (queuedLoading && !data) {
return (
<Center>
<Loader />
</Center>
);
}

@@ -77,0 +84,0 @@ return (

30

index.test.jsx

@@ -1,6 +0,6 @@

import React from "react";
import { configure, mount } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import { Provider } from "react-redux";
import { MockedProvider } from "@apollo/client/testing";
import React from 'react';
import { configure, mount } from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import { Provider } from 'react-redux';
import { MockedProvider } from '@apollo/client/testing';
import ProfileLoaderContainer, {

@@ -11,7 +11,7 @@ reducer,

middleware,
} from "./index";
import ProfileLoader from "./components/ProfileLoader";
} from './index';
import ProfileLoader from './components/ProfileLoader';
configure({ adapter: new Adapter() });
const storeFake = (state) => ({
const storeFake = state => ({
default: () => {},

@@ -23,4 +23,4 @@ subscribe: () => {},

describe("ProfileLoaderContainer", () => {
it("should render", () => {
describe('ProfileLoaderContainer', () => {
it('should render', () => {
const store = storeFake({

@@ -36,3 +36,3 @@ profileLoader: {

</MockedProvider>
</Provider>
</Provider>,
);

@@ -42,17 +42,17 @@ expect(wrapper.find(ProfileLoader).length).toBe(1);

it("should export reducer", () => {
it('should export reducer', () => {
expect(reducer).toBeDefined();
});
it("should export actions", () => {
it('should export actions', () => {
expect(actions).toBeDefined();
});
it("should export actionTypes", () => {
it('should export actionTypes', () => {
expect(actionTypes).toBeDefined();
});
it("should export middleware", () => {
it('should export middleware', () => {
expect(middleware).toBeDefined();
});
});
{
"name": "@bufferapp/profile-loader",
"version": "1.77.4",
"version": "2.0.0-beta-3",
"description": "Profile Loader wrapper, renders children once the profiles have loaded",

@@ -12,2 +12,5 @@ "main": "index.js",

"author": "mike@msanroman.io",
"dependencies": {
"@bufferapp/components": "3.2.1"
},
"devDependencies": {

@@ -14,0 +17,0 @@ "@storybook/addon-storyshots": "3.1.4",

@@ -1,2 +0,2 @@

# @bufferapp/profile-loader
# ~/profile-loader

@@ -86,3 +86,3 @@ Profile Loader wrapper, renders children once the profiles have loaded

```js
import ProfileLoader, { actions, actionTypes, middleware, reducer } from '@bufferapp/profile-loader';
import ProfileLoader, { actions, actionTypes, middleware, reducer } from '~/profile-loader';
```

@@ -89,0 +89,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