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

@bufferapp/profile-loader

Package Overview
Dependencies
Maintainers
14
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.22.0 to 0.43.5

10

coverage/coverage-final.json

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

{"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/index.js": {"path":"/Users/jamesmorris/Code/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":"659c285d01fae956beb80b7c33c256bf605924d3"}
,"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/middleware.js": {"path":"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/middleware.js","statementMap":{"0":{"start":{"line":3,"column":33},"end":{"line":14,"column":1}},"1":{"start":{"line":3,"column":41},"end":{"line":14,"column":1}},"2":{"start":{"line":4,"column":2},"end":{"line":12,"column":3}},"3":{"start":{"line":6,"column":6},"end":{"line":8,"column":10}},"4":{"start":{"line":9,"column":6},"end":{"line":9,"column":12}},"5":{"start":{"line":11,"column":6},"end":{"line":11,"column":12}},"6":{"start":{"line":13,"column":2},"end":{"line":13,"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":14,"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":14,"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":14,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":12,"column":3}},"type":"switch","locations":[{"start":{"line":5,"column":4},"end":{"line":9,"column":12}},{"start":{"line":10,"column":4},"end":{"line":11,"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":"c7593dc0ed0727da1e80c24d2f35efe3166a779c"}
,"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/reducer.js": {"path":"/Users/jamesmorris/Code/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":7,"column":1}},"2":{"start":{"line":10,"column":2},"end":{"line":21,"column":3}},"3":{"start":{"line":12,"column":6},"end":{"line":14,"column":8}},"4":{"start":{"line":16,"column":6},"end":{"line":18,"column":8}},"5":{"start":{"line":20,"column":6},"end":{"line":20,"column":19}},"6":{"start":{"line":24,"column":23},"end":{"line":24,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":15},"end":{"line":9,"column":16}},"loc":{"start":{"line":9,"column":49},"end":{"line":22,"column":1}},"line":9}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":16},"end":{"line":9,"column":36}},"type":"default-arg","locations":[{"start":{"line":9,"column":24},"end":{"line":9,"column":36}}],"line":9},"1":{"loc":{"start":{"line":10,"column":2},"end":{"line":21,"column":3}},"type":"switch","locations":[{"start":{"line":11,"column":4},"end":{"line":14,"column":8}},{"start":{"line":15,"column":4},"end":{"line":18,"column":8}},{"start":{"line":19,"column":4},"end":{"line":20,"column":19}}],"line":10}},"s":{"0":2,"1":2,"2":4,"3":1,"4":2,"5":1,"6":2},"f":{"0":4},"b":{"0":[3],"1":[1,2,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"5bd2395c18c22ceb9dc41f0069fc4330aeb22486"}
,"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx": {"path":"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx","statementMap":{"0":{"start":{"line":5,"column":25},"end":{"line":12,"column":1}},"1":{"start":{"line":14,"column":32},"end":{"line":18,"column":1}},"2":{"start":{"line":20,"column":22},"end":{"line":25,"column":1}},"3":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"4":{"start":{"line":22,"column":4},"end":{"line":22,"column":84}},"5":{"start":{"line":24,"column":2},"end":{"line":24,"column":58}},"6":{"start":{"line":27,"column":0},"end":{"line":29,"column":2}},"7":{"start":{"line":31,"column":0},"end":{"line":34,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":22},"end":{"line":20,"column":23}},"loc":{"start":{"line":20,"column":49},"end":{"line":25,"column":1}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},{"start":{"line":21,"column":2},"end":{"line":23,"column":3}}],"line":21}},"s":{"0":2,"1":2,"2":2,"3":3,"4":2,"5":1,"6":2,"7":2},"f":{"0":3},"b":{"0":[2,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"20d448e97172cd28bc3631fa3503fda6c4db43a4"}
,"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/story.jsx": {"path":"/Users/jamesmorris/Code/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/story.jsx","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":18,"column":1}},"1":{"start":{"line":9,"column":4},"end":{"line":11,"column":20}},"2":{"start":{"line":14,"column":4},"end":{"line":16,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":49},"end":{"line":8,"column":50}},"loc":{"start":{"line":9,"column":4},"end":{"line":11,"column":20}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":58},"end":{"line":13,"column":59}},"loc":{"start":{"line":14,"column":4},"end":{"line":16,"column":20}},"line":14}},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{"0":1,"1":1},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"afdd49fd70e5c34302a8365211dc36ad7ca7367e"}
{"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/index.js": {"path":"/home/fwd/Projects/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":"52b7257185ea6a5b61910bac9483e9dff8478133"}
,"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/middleware.js": {"path":"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/middleware.js","statementMap":{"0":{"start":{"line":3,"column":33},"end":{"line":14,"column":1}},"1":{"start":{"line":3,"column":41},"end":{"line":14,"column":1}},"2":{"start":{"line":4,"column":2},"end":{"line":12,"column":3}},"3":{"start":{"line":6,"column":6},"end":{"line":8,"column":10}},"4":{"start":{"line":9,"column":6},"end":{"line":9,"column":12}},"5":{"start":{"line":11,"column":6},"end":{"line":11,"column":12}},"6":{"start":{"line":13,"column":2},"end":{"line":13,"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":14,"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":14,"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":14,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":12,"column":3}},"type":"switch","locations":[{"start":{"line":5,"column":4},"end":{"line":9,"column":12}},{"start":{"line":10,"column":4},"end":{"line":11,"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":"e154449708d68505651804e80d2136cdcbc30b80"}
,"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/reducer.js": {"path":"/home/fwd/Projects/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":7,"column":1}},"2":{"start":{"line":10,"column":2},"end":{"line":21,"column":3}},"3":{"start":{"line":12,"column":6},"end":{"line":14,"column":8}},"4":{"start":{"line":16,"column":6},"end":{"line":18,"column":8}},"5":{"start":{"line":20,"column":6},"end":{"line":20,"column":19}},"6":{"start":{"line":24,"column":23},"end":{"line":24,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":15},"end":{"line":9,"column":16}},"loc":{"start":{"line":9,"column":49},"end":{"line":22,"column":1}},"line":9}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":16},"end":{"line":9,"column":36}},"type":"default-arg","locations":[{"start":{"line":9,"column":24},"end":{"line":9,"column":36}}],"line":9},"1":{"loc":{"start":{"line":10,"column":2},"end":{"line":21,"column":3}},"type":"switch","locations":[{"start":{"line":11,"column":4},"end":{"line":14,"column":8}},{"start":{"line":15,"column":4},"end":{"line":18,"column":8}},{"start":{"line":19,"column":4},"end":{"line":20,"column":19}}],"line":10}},"s":{"0":2,"1":2,"2":4,"3":1,"4":2,"5":1,"6":2},"f":{"0":4},"b":{"0":[3],"1":[1,2,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"89b9767c3d2c909107417d00a37d76c95783239b"}
,"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx": {"path":"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/index.jsx","statementMap":{"0":{"start":{"line":5,"column":25},"end":{"line":12,"column":1}},"1":{"start":{"line":14,"column":32},"end":{"line":18,"column":1}},"2":{"start":{"line":20,"column":22},"end":{"line":25,"column":1}},"3":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"4":{"start":{"line":22,"column":4},"end":{"line":22,"column":84}},"5":{"start":{"line":24,"column":2},"end":{"line":24,"column":58}},"6":{"start":{"line":27,"column":0},"end":{"line":29,"column":2}},"7":{"start":{"line":31,"column":0},"end":{"line":34,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":22},"end":{"line":20,"column":23}},"loc":{"start":{"line":20,"column":49},"end":{"line":25,"column":1}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},{"start":{"line":21,"column":2},"end":{"line":23,"column":3}}],"line":21}},"s":{"0":2,"1":2,"2":2,"3":3,"4":2,"5":1,"6":2,"7":2},"f":{"0":3},"b":{"0":[2,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"85175c4693bc81df506a151f3d983a807c31dbe1"}
,"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/story.jsx": {"path":"/home/fwd/Projects/Buffer/buffer-dev/buffer-analyze/packages/profile-loader/components/ProfileLoader/story.jsx","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":18,"column":1}},"1":{"start":{"line":9,"column":4},"end":{"line":11,"column":20}},"2":{"start":{"line":14,"column":4},"end":{"line":16,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":49},"end":{"line":8,"column":50}},"loc":{"start":{"line":9,"column":4},"end":{"line":11,"column":20}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":58},"end":{"line":13,"column":59}},"loc":{"start":{"line":14,"column":4},"end":{"line":16,"column":20}},"line":14}},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{"0":1,"1":1},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"0cff776e8d4bae9d66ab031a577672b67b65d200"}
}

@@ -1,8 +0,11 @@

import { actions as asyncDataFetchActions } from '@bufferapp/async-data-fetch';
import { actions, actionTypes } from '@bufferapp/async-data-fetch';
export default ({ dispatch }) => next => (action) => {
switch (action.type) {
case 'APP_INIT':
dispatch(asyncDataFetchActions.fetch({
case `user_${actionTypes.FETCH_SUCCESS}`:
dispatch(actions.fetch({
name: 'profiles',
args: {
id: action.result.id,
},
}));

@@ -9,0 +12,0 @@ break;

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

import { actions } from '@bufferapp/async-data-fetch';
import { actions, actionTypes } from '@bufferapp/async-data-fetch';
import middleware from './middleware';

@@ -23,3 +23,6 @@

const action = {
type: 'APP_INIT',
type: `user_${actionTypes.FETCH_SUCCESS}`,
result: {
id: 'user_id-1234',
},
};

@@ -29,2 +32,5 @@ middleware(store)(next)(action);

name: 'profiles',
args: {
id: 'user_id-1234',
},
}));

@@ -31,0 +37,0 @@ expect(next).toHaveBeenCalledWith(action);

{
"name": "@bufferapp/profile-loader",
"version": "0.22.0",
"version": "0.43.5",
"description": "Profile Loader wrapper, renders children once the profiles have loaded",

@@ -10,3 +10,4 @@ "main": "index.js",

"test": "yarn run lint && sh ../../package_test.sh",
"test-update": "jest -u"
"test-update": "jest -u",
"test-watch": "jest --watch"
},

@@ -13,0 +14,0 @@ "jest": {

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