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

@bufferapp/profile-loader

Package Overview
Dependencies
Maintainers
27
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 0.95.3 to 0.95.12

40

components/ProfileLoader/index.jsx
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import ContentSurrounder from '@bufferapp/analyze-shared-components/ContentSurrounder';
import Loader from '@bufferapp/components/Loader';
import styled from 'styled-components';
import { grayLighter } from '@bufferapp/ui/style/colors';
const TOP_BAR_HEIGHT = '56px';
const PageContent = styled.div`
background: ${grayLighter};
const Center = styled.div`
display: flex;
flex-grow: 1;
flex-direction: column;
height: calc(100vh - ${TOP_BAR_HEIGHT});
box-sizing: border-box;
padding: 0.5rem 0.5rem 0;
align-items: center;
`;
const ContentWrapper = styled.div`
display: flex;
flex-direction: column;
width: 100%;
min-width: 920px;
max-width: 1080px;
`;
const PageContentLoading = styled(PageContent)`
height: 100%;
justify-content: center;

@@ -35,5 +17,15 @@ align-items: center;

if (loading) {
return (<PageContentLoading><Loader>Loading...</Loader></PageContentLoading>);
return (
<ContentSurrounder>
<Center>
<Loader>Loading...</Loader>
</Center>
</ContentSurrounder>
);
}
return (<PageContent><ContentWrapper>{children}</ContentWrapper></PageContent>);
return (
<ContentSurrounder>
{children}
</ContentSurrounder>
);
};

@@ -40,0 +32,0 @@

8

coverage/coverage-final.json

@@ -1,5 +0,5 @@

{"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/index.js": {"path":"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/index.js","statementMap":{"0":{"start":{"line":6,"column":12},"end":{"line":8,"column":3}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":3}},"loc":{"start":{"line":6,"column":12},"end":{"line":8,"column":3}},"line":6}},"branchMap":{},"s":{"0":2},"f":{"0":2},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"19188dc736b183e8b40af61dcde6c19704cb0529"}
,"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/middleware.js": {"path":"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/middleware.js","statementMap":{"0":{"start":{"line":3,"column":33},"end":{"line":17,"column":1}},"1":{"start":{"line":3,"column":41},"end":{"line":17,"column":1}},"2":{"start":{"line":4,"column":2},"end":{"line":15,"column":3}},"3":{"start":{"line":6,"column":6},"end":{"line":11,"column":10}},"4":{"start":{"line":12,"column":6},"end":{"line":12,"column":12}},"5":{"start":{"line":14,"column":6},"end":{"line":14,"column":12}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":15},"end":{"line":3,"column":16}},"loc":{"start":{"line":3,"column":33},"end":{"line":17,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":3,"column":33},"end":{"line":3,"column":34}},"loc":{"start":{"line":3,"column":41},"end":{"line":17,"column":1}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":41},"end":{"line":3,"column":42}},"loc":{"start":{"line":3,"column":53},"end":{"line":17,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":15,"column":3}},"type":"switch","locations":[{"start":{"line":5,"column":4},"end":{"line":12,"column":12}},{"start":{"line":13,"column":4},"end":{"line":14,"column":12}}],"line":4}},"s":{"0":2,"1":2,"2":2,"3":1,"4":1,"5":1,"6":2},"f":{"0":2,"1":2,"2":2},"b":{"0":[1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"86b62c3240f56e2ee0f666456fa5c01aef8e9c91"}
,"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/reducer.js": {"path":"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/reducer.js","statementMap":{"0":{"start":{"line":3,"column":27},"end":{"line":3,"column":29}},"1":{"start":{"line":5,"column":21},"end":{"line":8,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":28,"column":3}},"3":{"start":{"line":13,"column":6},"end":{"line":15,"column":8}},"4":{"start":{"line":17,"column":6},"end":{"line":19,"column":8}},"5":{"start":{"line":21,"column":6},"end":{"line":25,"column":8}},"6":{"start":{"line":27,"column":6},"end":{"line":27,"column":19}},"7":{"start":{"line":31,"column":23},"end":{"line":31,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":15},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":49},"end":{"line":29,"column":1}},"line":10}},"branchMap":{"0":{"loc":{"start":{"line":10,"column":16},"end":{"line":10,"column":36}},"type":"default-arg","locations":[{"start":{"line":10,"column":24},"end":{"line":10,"column":36}}],"line":10},"1":{"loc":{"start":{"line":11,"column":2},"end":{"line":28,"column":3}},"type":"switch","locations":[{"start":{"line":12,"column":4},"end":{"line":15,"column":8}},{"start":{"line":16,"column":4},"end":{"line":19,"column":8}},{"start":{"line":20,"column":4},"end":{"line":25,"column":8}},{"start":{"line":26,"column":4},"end":{"line":27,"column":19}}],"line":11}},"s":{"0":2,"1":2,"2":5,"3":1,"4":2,"5":1,"6":1,"7":2},"f":{"0":5},"b":{"0":[4],"1":[1,2,1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"dc52abde694d874c3762aaa20d1d2178d7c2be26"}
,"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx": {"path":"/home/fwd/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx","statementMap":{"0":{"start":{"line":8,"column":23},"end":{"line":8,"column":29}},"1":{"start":{"line":9,"column":20},"end":{"line":18,"column":1}},"2":{"start":{"line":20,"column":23},"end":{"line":26,"column":1}},"3":{"start":{"line":28,"column":27},"end":{"line":31,"column":1}},"4":{"start":{"line":33,"column":22},"end":{"line":38,"column":1}},"5":{"start":{"line":34,"column":2},"end":{"line":36,"column":3}},"6":{"start":{"line":35,"column":4},"end":{"line":35,"column":82}},"7":{"start":{"line":37,"column":2},"end":{"line":37,"column":82}},"8":{"start":{"line":40,"column":0},"end":{"line":42,"column":2}},"9":{"start":{"line":44,"column":0},"end":{"line":47,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":33,"column":22},"end":{"line":33,"column":23}},"loc":{"start":{"line":33,"column":49},"end":{"line":38,"column":1}},"line":33}},"branchMap":{"0":{"loc":{"start":{"line":34,"column":2},"end":{"line":36,"column":3}},"type":"if","locations":[{"start":{"line":34,"column":2},"end":{"line":36,"column":3}},{"start":{"line":34,"column":2},"end":{"line":36,"column":3}}],"line":34}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":0,"8":1,"9":1},"f":{"0":1},"b":{"0":[1,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"1a72bbbfa5ef8e935c77e8ea7780ba1fd9d427d2"}
{"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/index.js": {"path":"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/index.js","statementMap":{"0":{"start":{"line":6,"column":12},"end":{"line":8,"column":3}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":3}},"loc":{"start":{"line":6,"column":12},"end":{"line":8,"column":3}},"line":6}},"branchMap":{},"s":{"0":2},"f":{"0":2},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"e33a7682aa2da919eb97a3b1842ee7b4da4a4629"}
,"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/middleware.js": {"path":"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/middleware.js","statementMap":{"0":{"start":{"line":3,"column":33},"end":{"line":17,"column":1}},"1":{"start":{"line":3,"column":41},"end":{"line":17,"column":1}},"2":{"start":{"line":4,"column":2},"end":{"line":15,"column":3}},"3":{"start":{"line":6,"column":6},"end":{"line":11,"column":10}},"4":{"start":{"line":12,"column":6},"end":{"line":12,"column":12}},"5":{"start":{"line":14,"column":6},"end":{"line":14,"column":12}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":15},"end":{"line":3,"column":16}},"loc":{"start":{"line":3,"column":33},"end":{"line":17,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":3,"column":33},"end":{"line":3,"column":34}},"loc":{"start":{"line":3,"column":41},"end":{"line":17,"column":1}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":41},"end":{"line":3,"column":42}},"loc":{"start":{"line":3,"column":53},"end":{"line":17,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":15,"column":3}},"type":"switch","locations":[{"start":{"line":5,"column":4},"end":{"line":12,"column":12}},{"start":{"line":13,"column":4},"end":{"line":14,"column":12}}],"line":4}},"s":{"0":2,"1":2,"2":2,"3":1,"4":1,"5":1,"6":2},"f":{"0":2,"1":2,"2":2},"b":{"0":[1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"2fc52f0ec5145b67a6794f7669c35259142e8715"}
,"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/reducer.js": {"path":"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/reducer.js","statementMap":{"0":{"start":{"line":3,"column":27},"end":{"line":3,"column":29}},"1":{"start":{"line":5,"column":21},"end":{"line":8,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":28,"column":3}},"3":{"start":{"line":13,"column":6},"end":{"line":15,"column":8}},"4":{"start":{"line":17,"column":6},"end":{"line":19,"column":8}},"5":{"start":{"line":21,"column":6},"end":{"line":25,"column":8}},"6":{"start":{"line":27,"column":6},"end":{"line":27,"column":19}},"7":{"start":{"line":31,"column":23},"end":{"line":31,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":15},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":49},"end":{"line":29,"column":1}},"line":10}},"branchMap":{"0":{"loc":{"start":{"line":10,"column":16},"end":{"line":10,"column":36}},"type":"default-arg","locations":[{"start":{"line":10,"column":24},"end":{"line":10,"column":36}}],"line":10},"1":{"loc":{"start":{"line":11,"column":2},"end":{"line":28,"column":3}},"type":"switch","locations":[{"start":{"line":12,"column":4},"end":{"line":15,"column":8}},{"start":{"line":16,"column":4},"end":{"line":19,"column":8}},{"start":{"line":20,"column":4},"end":{"line":25,"column":8}},{"start":{"line":26,"column":4},"end":{"line":27,"column":19}}],"line":11}},"s":{"0":2,"1":2,"2":5,"3":1,"4":2,"5":1,"6":1,"7":2},"f":{"0":5},"b":{"0":[4],"1":[1,2,1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"04d32f02c93e3a23822be8a4bceb6034b6ea710c"}
,"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx": {"path":"/Users/james/Code/buffer/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx","statementMap":{"0":{"start":{"line":7,"column":15},"end":{"line":13,"column":1}},"1":{"start":{"line":15,"column":22},"end":{"line":30,"column":1}},"2":{"start":{"line":16,"column":2},"end":{"line":24,"column":3}},"3":{"start":{"line":17,"column":4},"end":{"line":23,"column":6}},"4":{"start":{"line":25,"column":2},"end":{"line":29,"column":4}},"5":{"start":{"line":32,"column":0},"end":{"line":34,"column":2}},"6":{"start":{"line":36,"column":0},"end":{"line":39,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":15,"column":22},"end":{"line":15,"column":23}},"loc":{"start":{"line":15,"column":49},"end":{"line":30,"column":1}},"line":15}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":2},"end":{"line":24,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":24,"column":3}},{"start":{"line":16,"column":2},"end":{"line":24,"column":3}}],"line":16}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":1,"6":1},"f":{"0":1},"b":{"0":[1,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"202288e60ab2c2271cfa6364753abc995c0bf1f9"}
}
{
"name": "@bufferapp/profile-loader",
"version": "0.95.3",
"version": "0.95.12",
"description": "Profile Loader wrapper, renders children once the profiles have loaded",

@@ -32,3 +32,3 @@ "main": "index.js",

},
"gitHead": "66a972adf6404e6fa6814a1a0594ce8f0005ef85"
"gitHead": "fc4428bb0a3b008447280fbc13f4787a7a71c85e"
}

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

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