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

apollo-fragment-vue

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-fragment-vue - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

@@ -1,8 +0,11 @@

var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -14,3 +17,3 @@ import { ApolloQuery } from 'vue-apollo';

}
var CApolloFragment = __assign({}, ApolloQuery, { name: 'ApolloFragment', props: {
var CApolloFragment = __assign(__assign({}, ApolloQuery), { name: 'ApolloFragment', props: {
fragment: {

@@ -32,3 +35,3 @@ type: String,

var query = buildFragmentQuery({ fragment: fragment, fragmentName: fragmentName });
return __assign({}, ApolloQuery.data(), { query: query, variables: {
return __assign(__assign({}, ApolloQuery.data()), { query: query, variables: {
id: id,

@@ -42,3 +45,3 @@ __typename: fragmentTypeName,

query: function () {
return __assign({}, ApolloQuery.apollo.query(), { query: function () {
return __assign(__assign({}, ApolloQuery.apollo.query()), { query: function () {
return this.$data.query;

@@ -45,0 +48,0 @@ },

@@ -7,9 +7,12 @@ (function (global, factory) {

var __assign = (undefined && undefined.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (undefined && undefined.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -19,3 +22,3 @@ function isDataFilled(data) {

}
var CApolloFragment = __assign({}, vueApollo.ApolloQuery, { name: 'ApolloFragment', props: {
var CApolloFragment = __assign(__assign({}, vueApollo.ApolloQuery), { name: 'ApolloFragment', props: {
fragment: {

@@ -37,3 +40,3 @@ type: String,

var query = apolloFragmentUtils.buildFragmentQuery({ fragment: fragment, fragmentName: fragmentName });
return __assign({}, vueApollo.ApolloQuery.data(), { query: query, variables: {
return __assign(__assign({}, vueApollo.ApolloQuery.data()), { query: query, variables: {
id: id,

@@ -47,3 +50,3 @@ __typename: fragmentTypeName,

query: function () {
return __assign({}, vueApollo.ApolloQuery.apollo.query(), { query: function () {
return __assign(__assign({}, vueApollo.ApolloQuery.apollo.query()), { query: function () {
return this.$data.query;

@@ -50,0 +53,0 @@ },

{
"name": "apollo-fragment-vue",
"version": "0.1.4",
"version": "0.1.5",
"description": "A Query component to connect Vue components to GraphQL fragments",

@@ -69,3 +69,3 @@ "author": "Abhi Aiyer <abhiaiyer91@gmail.com>",

"tslint": "5.8.0",
"typescript": "^2.9.2",
"typescript": "^4.1.2",
"uglify-js": "3.1.5",

@@ -76,3 +76,3 @@ "vue": "^2.5.16",

"dependencies": {
"apollo-fragment-utils": "^0.2.0",
"apollo-fragment-utils": "^0.2.1",
"apollo-utilities": "^1.0.12"

@@ -79,0 +79,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