New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apollo-link-lazy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-lazy - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

dist/index.modern.js

4

CHANGELOG.md

@@ -5,4 +5,8 @@ # Change Log

## [0.1.0] - 2020-08-15
### Added
- Updated for Apollo Client v3
## [0.0.1] - 2020-01-06
### Added
- Initial release

2

dist/index.umd.js

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

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("apollo-link")):"function"==typeof define&&define.amd?define(["exports","apollo-link"],o):o((e=e||self).apolloLinkLazy={},e.apolloLink)}(this,function(e,o){e.lazy=function(e){return new o.ApolloLink(function(n,t){return o.fromPromise(e().then(function(e){return o.toPromise((e instanceof o.ApolloLink?e:e.default).request(n,t)||o.Observable.of())}))})}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@apollo/client")):"function"==typeof define&&define.amd?define(["exports","@apollo/client"],n):n((e=e||self).apolloLinkLazy={},e.client)}(this,function(e,n){e.lazy=function(e){return new n.ApolloLink(function(o,t){return n.fromPromise(e().then(function(e){return n.toPromise((e instanceof n.ApolloLink?e:e.default).request(o,t)||n.Observable.of())}))})}});
//# sourceMappingURL=index.umd.js.map

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

import { ApolloLink } from 'apollo-link';
import { ApolloLink } from '@apollo/client';
declare type Lazy = (factory: () => Promise<ApolloLink | {

@@ -3,0 +3,0 @@ default: ApolloLink;

{
"name": "apollo-link-lazy",
"description": "Apollo Link for lazy loading",
"version": "0.0.2",
"version": "0.1.0",
"author": "Daishi Kato",

@@ -11,5 +11,4 @@ "repository": {

"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"browser": "./dist/index.umd.js",
"main": "./dist/index.umd.js",
"module": "./dist/index.modern.js",
"types": "./dist/src/index.d.ts",

@@ -22,8 +21,8 @@ "sideEffects": false,

"scripts": {
"compile": "microbundle build --format cjs,es,umd",
"test": "npm run eslint && npm run tsc-test && npm run jest",
"compile": "microbundle build -f modern,umd",
"test": "run-s eslint tsc-test jest",
"eslint": "eslint --ext .js,.ts,.tsx --ignore-pattern dist .",
"jest": "jest",
"jest": "jest --preset ts-jest/presets/js-with-ts",
"tsc-test": "tsc --project . --noEmit",
"apidoc": "documentation build --format md --markdown-toc false --parse-extension ts src/*.ts | add-text-to-markdown README.md --section API --write",
"apidoc": "documentation readme --section API --markdown-toc false --parse-extension ts src/*.ts",
"examples:01_minimal": "DIR=01_minimal EXT=js webpack-dev-server",

@@ -41,40 +40,36 @@ "examples:02_typescript": "DIR=02_typescript webpack-dev-server"

"license": "MIT",
"dependencies": {
"apollo-link": "^1.2.13"
"dependencies": {},
"devDependencies": {
"@apollo/client": "^3.1.3",
"@graphql-tools/mock": "^6.0.18",
"@graphql-tools/schema": "^6.0.18",
"@types/jest": "^26.0.10",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^3.9.0",
"@typescript-eslint/parser": "^3.9.0",
"documentation": "^13.0.2",
"eslint": "^7.7.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.0.8",
"graphql": "^14.7.0",
"html-webpack-plugin": "^4.3.0",
"jest": "^26.4.0",
"microbundle": "^0.12.3",
"npm-run-all": "^4.1.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"ts-jest": "^26.2.0",
"ts-loader": "^8.0.2",
"typescript": "^3.9.7",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
},
"devDependencies": {
"@apollo/react-hooks": "^3.1.3",
"@types/jest": "^24.0.25",
"@types/react": "^16.9.17",
"@types/react-dom": "^16.9.4",
"@typescript-eslint/eslint-plugin": "^2.14.0",
"@typescript-eslint/parser": "^2.14.0",
"add-text-to-markdown": "^2.0.0",
"apollo-cache-inmemory": "^1.6.5",
"apollo-client": "^2.6.8",
"apollo-link-schema": "^1.2.4",
"babel-loader": "^8.0.6",
"core-js": "^3.6.1",
"documentation": "^12.1.4",
"eslint": "^6.1.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^1.7.0",
"graphql": "^14.5.8",
"graphql-tag": "^2.10.1",
"graphql-tools": "^4.0.6",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.9.0",
"microbundle": "^0.12.0-next.7",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"ts-jest": "^24.2.0",
"ts-loader": "^6.2.1",
"typescript": "^3.7.4",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1"
"peerDependencies": {
"@apollo/client": "^3.0.0"
}
}
# apollo-link-lazy
[![Build Status](https://travis-ci.com/dai-shi/apollo-link-lazy.svg?branch=master)](https://travis-ci.com/dai-shi/apollo-link-lazy)
[![npm version](https://badge.fury.io/js/apollo-link-lazy.svg)](https://badge.fury.io/js/apollo-link-lazy)
[![bundle size](https://badgen.net/bundlephobia/minzip/apollo-link-lazy)](https://bundlephobia.com/result?p=apollo-link-lazy)
[![CI](https://img.shields.io/github/workflow/status/dai-shi/apollo-link-lazy/CI)](https://github.com/dai-shi/apollo-link-lazy/actions?query=workflow%3ACI)
[![npm](https://img.shields.io/npm/v/apollo-link-lazy)](https://www.npmjs.com/package/apollo-link-lazy)
[![size](https://img.shields.io/bundlephobia/minzip/apollo-link-lazy)](https://bundlephobia.com/result?p=apollo-link-lazy)

@@ -45,3 +45,3 @@ Apollo Link for lazy loading

- `factory`
- `factory`

@@ -48,0 +48,0 @@ #### Examples

@@ -6,3 +6,3 @@ import {

Observable,
} from 'apollo-link';
} from '@apollo/client';

@@ -9,0 +9,0 @@ type Lazy = (factory: () => Promise<ApolloLink | { default: ApolloLink }>) => ApolloLink;

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