You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

cra-template-fullstack-apollo

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-fullstack-apollo - npm Package Compare versions

Comparing version

to
1.0.4

template/src/graphql.tsx

2

package.json
{
"name": "cra-template-fullstack-apollo",
"main": "template.json",
"version": "1.0.3",
"version": "1.0.4",
"keywords": [

@@ -6,0 +6,0 @@ "react",

@@ -23,46 +23,41 @@ {

"package": {
"name": "cra-template-fullstack-apollo",
"version": "0.1.0",
"private": true,
"dependencies": {
"@apollo/client": "^3.0.0-beta.16",
"apollo-cache-inmemory": "^1.5.1",
"apollo-client": "^2.6.8",
"apollo-link-http": "^1.5.14",
"react": "^16.12.6",
"react-apollo": "^s3.1.2",
"react-dom": "^16.8.6"
},
"scripts": {
"start": "react-scripts start",
"generate": "graphql-codegen --config codegen.yml",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"@graphql-codegen/cli": "^1.13.2",
"@graphql-codegen/typescript": "1.13.2",
"@graphql-codegen/typescript-operations": "^1.13.2",
"@graphql-codegen/typescript-react-apollo": "1.13.2",
"@types/graphql": "^14.2.0",
"@types/jest": "24.0.11",
"@types/lodash.update": "^4.10.6",
"@types/node": "11.13.6",
"@types/react": "16.9.29",
"@types/react-dom": "*",
"apollo": "^2.9.0",
"react-scripts": "3.4.1",
"typescript": "3.8.3"
}
"name": "cra-template-fullstack-apollo",
"version": "0.1.0",
"private": true,
"dependencies": {
"@apollo/client": "^3.2.3",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"scripts": {
"start": "react-scripts start",
"generate": "graphql-codegen --config codegen.yml",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"@graphql-codegen/cli": "^1.17.10",
"@graphql-codegen/typescript": "^1.17.8",
"@graphql-codegen/typescript-operations": "^1.17.8",
"@graphql-codegen/typescript-react-apollo": "^2.0.7",
"@types/graphql": "^14.2.0",
"@types/jest": "24.0.11",
"@types/node": "11.13.6",
"@types/react": "16.9.29",
"@types/react-dom": "*",
"graphql": "^15.3.0",
"react-scripts": "3.4.1",
"typescript": "^4.0.3"
}
}
}

@@ -6,9 +6,5 @@ {

"dependencies": {
"@apollo/client": "^3.0.0-beta.16",
"apollo-cache-inmemory": "^1.5.1",
"apollo-client": "^2.6.8",
"apollo-link-http": "^1.5.14",
"react": "^16.12.6",
"react-apollo": "^s3.1.2",
"react-dom": "^16.8.6"
"@apollo/client": "^3.2.3",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},

@@ -32,16 +28,15 @@ "scripts": {

"devDependencies": {
"@graphql-codegen/cli": "^1.13.2",
"@graphql-codegen/typescript": "1.13.2",
"@graphql-codegen/typescript-operations": "^1.13.2",
"@graphql-codegen/typescript-react-apollo": "1.13.2",
"@graphql-codegen/cli": "^1.17.10",
"@graphql-codegen/typescript": "^1.17.8",
"@graphql-codegen/typescript-operations": "^1.17.8",
"@graphql-codegen/typescript-react-apollo": "^2.0.7",
"@types/graphql": "^14.2.0",
"@types/jest": "24.0.11",
"@types/lodash.update": "^4.10.6",
"@types/node": "11.13.6",
"@types/react": "16.9.29",
"@types/react-dom": "*",
"apollo": "^2.9.0",
"graphql": "^15.3.0",
"react-scripts": "3.4.1",
"typescript": "3.8.3"
"typescript": "^4.0.3"
}
}
}

@@ -14,5 +14,5 @@ // This optional code is used to register a service worker.

const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
window.location.hostname === "localhost" ||
// [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' ||
window.location.hostname === "[::1]" ||
// 127.0.0.1/8 is considered localhost for IPv4.

@@ -30,3 +30,3 @@ window.location.hostname.match(

export function register(config?: Config) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) {
// The URL constructor is available in all browsers that support SW.

@@ -44,3 +44,3 @@ const publicUrl = new URL(

window.addEventListener('load', () => {
window.addEventListener("load", () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;

@@ -56,4 +56,4 @@

console.log(
'This web app is being served cache-first by a service ' +
'worker. To learn more, visit https://bit.ly/CRA-PWA'
"This web app is being served cache-first by a service " +
"worker. To learn more, visit https://bit.ly/CRA-PWA"
);

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

.register(swUrl)
.then(registration => {
.then((registration) => {
registration.onupdatefound = () => {

@@ -80,3 +80,3 @@ const installingWorker = registration.installing;

installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') {
if (installingWorker.state === "installed") {
if (navigator.serviceWorker.controller) {

@@ -87,4 +87,4 @@ // At this point, the updated precached content has been fetched,

console.log(
'New content is available and will be used when all ' +
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
"New content is available and will be used when all " +
"tabs for this page are closed. See https://bit.ly/CRA-PWA."
);

@@ -100,3 +100,3 @@

// "Content is cached for offline use." message.
console.log('Content is cached for offline use.');
console.log("Content is cached for offline use.");

@@ -112,4 +112,4 @@ // Execute callback

})
.catch(error => {
console.error('Error during service worker registration:', error);
.catch((error) => {
console.error("Error during service worker registration:", error);
});

@@ -121,11 +121,11 @@ }

fetch(swUrl)
.then(response => {
.then((response) => {
// Ensure service worker exists, and that we really are getting a JS file.
const contentType = response.headers.get('content-type');
const contentType = response.headers.get("content-type");
if (
response.status === 404 ||
(contentType != null && contentType.indexOf('javascript') === -1)
(contentType != null && contentType.indexOf("javascript") === -1)
) {
// No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then(registration => {
navigator.serviceWorker.ready.then((registration) => {
registration.unregister().then(() => {

@@ -142,3 +142,3 @@ window.location.reload();

console.log(
'No internet connection found. App is running in offline mode.'
"No internet connection found. App is running in offline mode."
);

@@ -149,4 +149,4 @@ });

export function unregister() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.ready.then(registration => {
if ("serviceWorker" in navigator) {
navigator.serviceWorker.ready.then((registration) => {
registration.unregister();

@@ -153,0 +153,0 @@ });

{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,

@@ -22,5 +18,3 @@ "skipLibCheck": true,

},
"include": [
"src"
]
"include": ["src"]
}

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