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

graphql-model

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-model - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

21

lib/index.js

@@ -158,2 +158,9 @@ 'use strict';

_createClass(Model, [{
key: 'destroy',
value: function destroy() {
delete this._raw;
delete this._parent;
delete this._cached;
}
}, {
key: 'getRawData',

@@ -174,2 +181,7 @@ value: function getRawData() {

}, {
key: 'removeParent',
value: function removeParent() {
this._parent = null;
}
}, {
key: 'getParentOfType',

@@ -189,2 +201,11 @@ value: function getParentOfType(Type) {

}, {
key: 'clearCache',
value: function clearCache(key) {
if (key) {
delete this._cached[key];
} else {
this._cached = {};
}
}
}, {
key: 'implements',

@@ -191,0 +212,0 @@ value: function _implements(Type) {

2

package.json
{
"name": "graphql-model",
"version": "0.0.3",
"version": "0.0.4",
"description": "A data model class for wrapping a data object for easier resolving fields in GraphQL",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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