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

vue-store

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-store - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json

@@ -19,3 +19,3 @@ {

},
"version": "0.2.0"
"version": "0.3.0"
}

@@ -6,2 +6,3 @@ module.exports = (function () {

return {
__ctx: null,
data: {}

@@ -27,8 +28,12 @@ };

run(key, data, cb) {
return this.$get('data.' + key).call(this, data, cb);
run(key) {
var args = Array.prototype.slice.call(arguments, 1);
return this.$get('data.' + key).apply(this.__ctx, args);
},
watch(key, cb) {
this.$watch('data.' + key, cb);
this.$watch('data.' + key, function (newVal, oldVal) {
cb.call(this.__ctx, newVal, oldVal);
});
}

@@ -45,3 +50,7 @@ }

$store: {
get () { return store; }
get () {
store.__ctx = this;
return store;
}
}

@@ -48,0 +57,0 @@ });

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