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

react-apollo

Package Overview
Dependencies
Maintainers
2
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-apollo - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

preprocessor.js

6

Changelog.md

@@ -7,2 +7,8 @@ # Change log

### v0.5.6
- Bug: Passing immutable to ApolloProvider breaks ssr. `renderToStringWithData` fails to reference the right store.
[#222](https://github.com/apollostack/react-apollo/pull/222)
- Bug: Fixed issue with context in SSR [#218](https://github.com/apollostack/react-apollo/issues/218)
### v0.5.5

@@ -9,0 +15,0 @@

4

global.d.ts

@@ -40,1 +40,5 @@ /*

}
declare module 'react-test-renderer' {
function create(elements: any): any;
}

32

package.json
{
"name": "react-apollo",
"version": "0.5.5",
"version": "0.5.6",
"description": "React data container for Apollo Client",
"main": "index.js",
"scripts": {
"pretest": "npm run compile",
"test": "mocha --require ./test/fixtures/setup.js --reporter spec --full-trace --recursive ./lib/test && jest",
"test": "jest",
"posttest": "npm run lint",

@@ -15,5 +14,3 @@ "filesize": "npm run compile:browser && ./scripts/filesize.js --file=./dist/index.min.js --maxGzip=15",

"watch": "tsc -w",
"lint": "tslint 'src/*.ts*' && tslint 'test/*.ts*'",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- --require ./test/fixtures/setup.js --reporter spec --full-trace --recursive ./lib/test",
"postcoverage": "remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info"
"lint": "tslint 'src/*.ts*' && tslint 'test/*.ts*'"
},

@@ -41,8 +38,12 @@ "repository": {

"preset": "jest-react-native",
"unmockedModulePathPatterns": [
"./node_modules/react/",
"./node_modules/react-dom/",
"./node_modules/react-test-renderer/",
"./node_modules/react-addons-test-utils/"
]
"testEnvironment": "jsdom",
"scriptPreprocessor": "preprocessor.js",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"testRegex": "<rootDir>/test/.*.test.(ts|tsx|js)$",
"collectCoverage": true
},

@@ -71,5 +72,4 @@ "license": "MIT",

"isomorphic-fetch": "^2.2.1",
"istanbul": "^0.4.2",
"jest": "^14.1.0",
"jest-react-native": "^14.1.2",
"jest": "^15.1.1",
"jest-react-native": "^15.0.0",
"jsdom": "^8.3.1",

@@ -79,3 +79,2 @@ "minimist": "^1.2.0",

"mobx-react": "^3.5.4",
"mocha": "^2.3.3",
"pretty-bytes": "^3.0.1",

@@ -92,3 +91,2 @@ "react": "^15.0.0",

"redux-loop": "^2.2.2",
"remap-istanbul": "^0.5.1",
"source-map-support": "^0.4.0",

@@ -95,0 +93,0 @@ "swapi-graphql": "0.0.4",

@@ -36,2 +36,3 @@ "use strict";

Component_1.props = ownProps;
Component_1.context = context;
Component_1.setState = function (newState) {

@@ -86,5 +87,5 @@ Component_1.state = assign({}, Component_1.state, newState);

.then(function (_a) {
var store = _a.store, client = _a.client;
var client = _a.client;
var markup = ReactDOM.renderToString(component);
var initialState = store.getState();
var initialState = client.store.getState();
var key = client.reduxRootKey;

@@ -91,0 +92,0 @@ for (var queryId in initialState[key].queries) {

@@ -5,3 +5,3 @@ /// <reference path="globals/enzyme/index.d.ts" />

/// <reference path="globals/isomorphic-fetch/index.d.ts" />
/// <reference path="globals/mocha/index.d.ts" />
/// <reference path="globals/jest/index.d.ts" />
/// <reference path="globals/node/index.d.ts" />

@@ -8,0 +8,0 @@ /// <reference path="globals/react-addons-test-utils/index.d.ts" />

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