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

magento

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magento - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

src/test/index.js

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Magento SOAP API wrapper for Node.js",
"version": "0.0.3",
"version": "0.0.4",
"main": "./src/magento",

@@ -8,0 +8,0 @@ "contributors": [

@@ -31,2 +31,8 @@ # Magento SOAP API Wrapper

If need be, you can manually change the session id.
```js
magento.changeSession(newSessionId);
```
All of the API methods take an object of params as the first argument, and a callback as the second.

@@ -33,0 +39,0 @@

@@ -56,10 +56,4 @@ # Sales Order

magento.salesOrder.list({
filters: [ val, val, val ]
filters: { key: 'val' }
}, callback);
// or a single filter
magento.salesOrder.list({
filters: val
}, callback);
```

@@ -66,0 +60,0 @@

@@ -77,3 +77,3 @@ // external dependencies

}
this.config = magentoConfig;

@@ -104,2 +104,3 @@ this.client = xmlrpc.createClient(this.config);

this.sessionId = null;
this.prevSessionId = null;

@@ -179,3 +180,3 @@ return this;

}
self.sessionId = sessId;

@@ -188,2 +189,9 @@ callback(null, sessId);

Magento.prototype.changeSession = function(sessId) {
this.prevSessId = this.sessionId;
this.sessionId = sessId;
return this;
};
module.exports = Magento;

@@ -53,14 +53,3 @@ // external dependencies

list: {
optional: 'filters',
modifiers: {
// to do: cleanup filters, and check them all
/* filters: function(filters) {
// if filters is not an array, wrap it in an array
if (!Array.isArray(filters)) {
return [ filters ];
}
return filters;
} */
}
optional: 'filters'
},

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