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

arida

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arida - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

24

lib/api.js

@@ -10,4 +10,24 @@ 'use strict';

module.exports = {
subcribe: function subcribe(sourceName, callback) {},
dispatct: function dispatct(sourceName, data) {}
subcribe: function subcribe(sourceName, callback) {
_core2.default.listen(sourceName, callback);
},
dispatch: function dispatch(sourceName, data) {
if (this.source[sourceName] === data) {
return;
} else {
for (var key in data) {
if (Object.prototype.hasOwnProperty.call(data, key)) {
if (this.source[key] == data[key]) {
return;
} else {
console.log(this.source[key], data[key]);
_core2.default.trigger(sourceName, data);
}
}
}
}
},
init: function init(source) {
this.source = source;
}
};

4

lib/index.js

@@ -7,2 +7,4 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports.api = _api2.default;
{
"name": "arida",
"version": "0.0.2",
"version": "0.0.3",
"description": "一个用于数据订阅的工具库,尤其适用于扩展react,以允许子组件可以订阅父组件的数据,当父组件的数据更新时,及时更新子组件数据。",

@@ -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