apollo-fragment-vue
Advanced tools
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19988
214
0
Updatedapollo-fragment-utils@^0.2.1