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

@urql/exchange-populate

Package Overview
Dependencies
Maintainers
19
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@urql/exchange-populate - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0-canary-019b1bb0

7

CHANGELOG.md
# @urql/exchange-populate
## 1.2.0-canary-019b1bb0
### Minor Changes
- Mark `@urql/core` as a peer dependency as well as a regular dependency
Submitted by [@kitten](https://github.com/kitten) (See [#3579](https://github.com/urql-graphql/urql/pull/3579))
## 1.1.2

@@ -4,0 +11,0 @@

2

dist/urql-exchange-populate.d.ts

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

/*!@ts-ignore*/
/*@ts-ignore*/
import { IntrospectionQuery } from 'graphql';

@@ -3,0 +3,0 @@ import { Exchange } from '@urql/core';

@@ -1,4 +0,3 @@

Object.defineProperty(exports, '__esModule', {
value: true
});
Object.defineProperty(exports, '__esModule', { value: true });
var graphql = require('graphql');

@@ -16,2 +15,3 @@ var wonka = require('wonka');

};
function traverse(node, enter, exit) {

@@ -54,2 +54,4 @@ if (enter) {

/** Input parameters for the {@link populateExchange}. */
var makeDict = () => Object.create(null);

@@ -59,2 +61,6 @@

/** stores all known fields per each type key */
/** Describes information about a given field, i.e. type (owner), arguments, how many operations use this field */
var SKIP_COUNT_TYPE = /^PageInfo|(Connection|Edge)$/;

@@ -371,3 +377,4 @@

};
exports.populateExchange = populateExchange;
//# sourceMappingURL=urql-exchange-populate.js.map
{
"name": "@urql/exchange-populate",
"version": "1.1.2",
"version": "1.2.0-canary-019b1bb0",
"description": "An exchange that automaticcally populates the mutation selection body",

@@ -9,2 +9,3 @@ "sideEffects": false,

"license": "MIT",
"author": "urql GraphQL Contributors",
"repository": {

@@ -26,5 +27,5 @@ "type": "git",

".": {
"types": "./dist/urql-exchange-populate.d.ts",
"import": "./dist/urql-exchange-populate.mjs",
"require": "./dist/urql-exchange-populate.js",
"types": "./dist/urql-exchange-populate.d.ts",
"source": "./src/index.ts"

@@ -42,11 +43,12 @@ },

"dependencies": {
"@urql/core": ">=4.0.0",
"@urql/core": "^5.0.0",
"wonka": "^6.3.2"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
"@urql/core": "^5.0.0",
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"devDependencies": {
"graphql": "^16.0.0",
"@urql/core": "4.0.7"
"@urql/core": "5.0.3"
},

@@ -53,0 +55,0 @@ "publishConfig": {

@@ -20,3 +20,3 @@ # @urql/exchange-populate

```js
import { createClient, dedupExchange, cacheExchange, fetchExchange } from 'urql';
import { createClient, cacheExchange, fetchExchange } from 'urql';
import { populateExchange } from '@urql/exchange-populate';

@@ -26,3 +26,3 @@

url: 'http://localhost:1234/graphql',
exchanges: [dedupExchange, populateExchange({ schema }), cacheExchange, fetchExchange],
exchanges: [populateExchange({ schema }), cacheExchange, fetchExchange],
});

@@ -29,0 +29,0 @@ ```

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