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

@shopify/react-graphql

Package Overview
Dependencies
Maintainers
19
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-graphql - npm Package Compare versions

Comparing version 6.3.0 to 6.3.1-beta-2

2

build/cjs/ApolloProvider.js

@@ -12,3 +12,3 @@ "use strict";

var _ApolloContext = require("./ApolloContext");
var _ApolloContext = require("./ApolloContext.js");

@@ -15,0 +15,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -10,5 +10,5 @@ "use strict";

var _hooks = require("../hooks");
var _index = require("../hooks/index.js");
var _query = require("./query");
var _query = require("./query.js");

@@ -23,3 +23,3 @@ function createAsyncQueryComponent(options) {

function AsyncQuery(options) {
var result = (0, _hooks.useQuery)(asyncQuery, options);
var result = (0, _index.useQuery)(asyncQuery, options);
return options.children(result);

@@ -26,0 +26,0 @@ }

@@ -19,4 +19,4 @@ "use strict";

var _query = require("./query");
var _query = require("./query.js");
var _component = require("./component");
var _component = require("./component.js");

@@ -12,3 +12,3 @@ "use strict";

var _hooks = require("../hooks");
var _index = require("../hooks/index.js");

@@ -37,3 +37,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

var load = usePreload();
return (0, _hooks.useBackgroundQuery)(load, options);
return (0, _index.useBackgroundQuery)(load, options);
}

@@ -43,3 +43,3 @@

var load = usePreload();
return (0, _hooks.useBackgroundQuery)(load, _objectSpread({
return (0, _index.useBackgroundQuery)(load, _objectSpread({
pollInterval: 10000

@@ -46,0 +46,0 @@ }, options));

@@ -10,3 +10,3 @@ "use strict";

var _ApolloContext = require("../ApolloContext");
var _ApolloContext = require("../ApolloContext.js");

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -12,3 +12,3 @@ "use strict";

var _apolloClient = _interopRequireDefault(require("./apollo-client"));
var _apolloClient = _interopRequireDefault(require("./apollo-client.js"));

@@ -15,0 +15,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -37,11 +37,11 @@ "use strict";

var _apolloClient = _interopRequireDefault(require("./apollo-client"));
var _apolloClient = _interopRequireDefault(require("./apollo-client.js"));
var _query = _interopRequireDefault(require("./query"));
var _query = _interopRequireDefault(require("./query.js"));
var _backgroundQuery = require("./background-query");
var _backgroundQuery = require("./background-query.js");
var _mutation = _interopRequireDefault(require("./mutation"));
var _mutation = _interopRequireDefault(require("./mutation.js"));
var _types = require("./types");
var _types = require("./types.js");

@@ -48,0 +48,0 @@ Object.keys(_types).forEach(function (key) {

@@ -10,3 +10,3 @@ "use strict";

var _apolloClient = _interopRequireDefault(require("./apollo-client"));
var _apolloClient = _interopRequireDefault(require("./apollo-client.js"));

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -14,5 +14,5 @@ "use strict";

var _apolloClient2 = _interopRequireDefault(require("./apollo-client"));
var _apolloClient2 = _interopRequireDefault(require("./apollo-client.js"));
var _graphqlDocument = _interopRequireDefault(require("./graphql-document"));
var _graphqlDocument = _interopRequireDefault(require("./graphql-document.js"));

@@ -19,0 +19,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -37,3 +37,3 @@ "use strict";

get: function get() {
return _async2.createAsyncQueryComponent;
return _index.createAsyncQueryComponent;
}

@@ -44,3 +44,3 @@ });

get: function get() {
return _async2.createAsyncQuery;
return _index.createAsyncQuery;
}

@@ -69,15 +69,15 @@ });

var _Query = require("./Query");
var _Query = require("./Query.js");
var _Prefetch = require("./Prefetch");
var _Prefetch = require("./Prefetch.js");
var _async2 = require("./async");
var _index = require("./async/index.js");
var _ApolloProvider = require("./ApolloProvider");
var _ApolloProvider = require("./ApolloProvider.js");
var _links = require("./links");
var _links = require("./links.js");
var _hooks = require("./hooks");
var _index2 = require("./hooks/index.js");
Object.keys(_hooks).forEach(function (key) {
Object.keys(_index2).forEach(function (key) {
if (key === "default" || key === "__esModule") return;

@@ -88,5 +88,5 @@ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;

get: function get() {
return _hooks[key];
return _index2[key];
}
});
});

@@ -10,3 +10,3 @@ "use strict";

var _Query = require("./Query");
var _Query = require("./Query.js");

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -8,3 +8,3 @@ "use strict";

var _hooks = require("./hooks");
var _index = require("./hooks/index.js");

@@ -22,5 +22,5 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

var result = _hooks.useQuery.apply(void 0, [query].concat(opts));
var result = _index.useQuery.apply(void 0, [query].concat(opts));
return children(result);
}

@@ -12,3 +12,3 @@ "use strict";

var _ApolloContext = require("./ApolloContext");
var _ApolloContext = require("./ApolloContext.js");

@@ -15,0 +15,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -10,5 +10,5 @@ "use strict";

var _hooks = require("../hooks");
var _index = require("../hooks/index.js");
var _query = require("./query");
var _query = require("./query.js");

@@ -25,3 +25,3 @@ function createAsyncQueryComponent(options) {

function AsyncQuery(options) {
const result = (0, _hooks.useQuery)(asyncQuery, options);
const result = (0, _index.useQuery)(asyncQuery, options);
return options.children(result);

@@ -28,0 +28,0 @@ }

@@ -19,4 +19,4 @@ "use strict";

var _query = require("./query");
var _query = require("./query.js");
var _component = require("./component");
var _component = require("./component.js");

@@ -12,3 +12,3 @@ "use strict";

var _hooks = require("../hooks");
var _index = require("../hooks/index.js");

@@ -32,3 +32,3 @@ function createAsyncQuery({

const load = usePreload();
return (0, _hooks.useBackgroundQuery)(load, options);
return (0, _index.useBackgroundQuery)(load, options);
}

@@ -38,3 +38,3 @@

const load = usePreload();
return (0, _hooks.useBackgroundQuery)(load, {
return (0, _index.useBackgroundQuery)(load, {
pollInterval: 10000,

@@ -41,0 +41,0 @@ ...options

@@ -10,3 +10,3 @@ "use strict";

var _ApolloContext = require("../ApolloContext");
var _ApolloContext = require("../ApolloContext.js");

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -10,3 +10,3 @@ "use strict";

var _apolloClient = _interopRequireDefault(require("./apollo-client"));
var _apolloClient = _interopRequireDefault(require("./apollo-client.js"));

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -37,11 +37,11 @@ "use strict";

var _apolloClient = _interopRequireDefault(require("./apollo-client"));
var _apolloClient = _interopRequireDefault(require("./apollo-client.js"));
var _query = _interopRequireDefault(require("./query"));
var _query = _interopRequireDefault(require("./query.js"));
var _backgroundQuery = require("./background-query");
var _backgroundQuery = require("./background-query.js");
var _mutation = _interopRequireDefault(require("./mutation"));
var _mutation = _interopRequireDefault(require("./mutation.js"));
var _types = require("./types");
var _types = require("./types.js");

@@ -48,0 +48,0 @@ Object.keys(_types).forEach(function (key) {

@@ -10,3 +10,3 @@ "use strict";

var _apolloClient = _interopRequireDefault(require("./apollo-client"));
var _apolloClient = _interopRequireDefault(require("./apollo-client.js"));

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -14,5 +14,5 @@ "use strict";

var _apolloClient2 = _interopRequireDefault(require("./apollo-client"));
var _apolloClient2 = _interopRequireDefault(require("./apollo-client.js"));
var _graphqlDocument = _interopRequireDefault(require("./graphql-document"));
var _graphqlDocument = _interopRequireDefault(require("./graphql-document.js"));

@@ -19,0 +19,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -37,3 +37,3 @@ "use strict";

get: function () {
return _async2.createAsyncQueryComponent;
return _index.createAsyncQueryComponent;
}

@@ -44,3 +44,3 @@ });

get: function () {
return _async2.createAsyncQuery;
return _index.createAsyncQuery;
}

@@ -69,15 +69,15 @@ });

var _Query = require("./Query");
var _Query = require("./Query.js");
var _Prefetch = require("./Prefetch");
var _Prefetch = require("./Prefetch.js");
var _async2 = require("./async");
var _index = require("./async/index.js");
var _ApolloProvider = require("./ApolloProvider");
var _ApolloProvider = require("./ApolloProvider.js");
var _links = require("./links");
var _links = require("./links.js");
var _hooks = require("./hooks");
var _index2 = require("./hooks/index.js");
Object.keys(_hooks).forEach(function (key) {
Object.keys(_index2).forEach(function (key) {
if (key === "default" || key === "__esModule") return;

@@ -88,5 +88,5 @@ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;

get: function () {
return _hooks[key];
return _index2[key];
}
});
});

@@ -10,3 +10,3 @@ "use strict";

var _Query = require("./Query");
var _Query = require("./Query.js");

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -8,3 +8,3 @@ "use strict";

var _hooks = require("./hooks");
var _index = require("./hooks/index.js");

@@ -17,4 +17,4 @@ function Query({

const opts = [options];
const result = (0, _hooks.useQuery)(query, ...opts);
const result = (0, _index.useQuery)(query, ...opts);
return children(result);
}

@@ -8,2 +8,8 @@ # Changelog

## [6.3.1] - 2021-03-03
### Fixed
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers [#1759](https://github.com/Shopify/quilt/pull/1759)
## [6.2.0] - 2020-12-18

@@ -10,0 +16,0 @@

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

module.exports = require("./build/cjs/index");
module.exports = require("./build/cjs/index.js");
{
"name": "@shopify/react-graphql",
"version": "6.3.0",
"version": "6.3.1-beta-2",
"license": "MIT",

@@ -29,16 +29,16 @@ "description": "Tools for creating type-safe and asynchronous GraphQL components for React",

"@apollo/react-hooks": ">=3.0.0 <4.0.0",
"@shopify/async": "^2.2.1",
"@shopify/react-async": "^3.2.1",
"@shopify/react-effect": "^3.3.1",
"@shopify/react-hooks": "^1.12.1",
"@shopify/react-idle": "^1.1.1",
"@shopify/useful-types": "^2.3.1",
"@shopify/async": "^2.2.2",
"@shopify/react-async": "^3.2.2",
"@shopify/react-effect": "^3.3.2",
"@shopify/react-hooks": "^1.12.2",
"@shopify/react-idle": "^1.1.2",
"@shopify/useful-types": "^2.3.2",
"apollo-cache-inmemory": ">=1.0.0 <2.0.0",
"apollo-client": ">=2.0.0 <3.0.0",
"apollo-link": ">=1.0.0 <2.0.0",
"graphql-typed": "^0.6.0",
"graphql-typed": "^0.6.1-beta-2",
"tslib": "^1.14.1"
},
"devDependencies": {
"@shopify/react-testing": "^2.2.1"
"@shopify/react-testing": "^2.2.2"
},

@@ -45,0 +45,0 @@ "files": [

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

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

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

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