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

vtex-commons

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vtex-commons - npm Package Compare versions

Comparing version 0.2.9 to 0.3.9

public-helpers/index.js

2

package.json
{
"name": "vtex-commons",
"version": "0.2.9",
"version": "0.3.9",
"description": "Handy VTEX library for NodeJs",

@@ -5,0 +5,0 @@ "main": "vtex.js",

@@ -27,2 +27,4 @@ # vtex-commons

* Create Giftcard
* Utils
* uuid

@@ -303,2 +305,27 @@

Utils
------------
This module is intended for any sort of tools (third party or not) that might be hepful when using vtex-tools.
### uuid
This a very simple implementation of the well known npm module https://www.npmjs.com/package/uuid
Good for using as unique ids in master data's entities, cache and session identifying.
```javascript
vtex = new VTEX({
store : 'dummystore'
})
//default V4
vtex.Utils().uuid()
//'1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
//using V1
vtex.Utils().uuid(1)
//'2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d'
```
Defaults

@@ -305,0 +332,0 @@ ------------

@@ -1,7 +0,10 @@

const helper = require('./helper')
const MasterData = require('./vtex-modules/MasterData')
const OMS = require('./vtex-modules/OMS')
const Catalog = require('./vtex-modules/Catalog')
const Checkout = require('./vtex-modules/Checkout')
const Giftcard = require('./vtex-modules/Giftcard')
const helper = require('./helper')
//////////////////////////////////////////////////////////
const MasterData = require('./vtex-modules/MasterData')
const OMS = require('./vtex-modules/OMS')
const Catalog = require('./vtex-modules/Catalog')
const Checkout = require('./vtex-modules/Checkout')
const Giftcard = require('./vtex-modules/Giftcard')
//////////////////////////////////////////////////////////
const publicHelpers = require('./public-helpers')

@@ -82,2 +85,10 @@ function Vtex(userDefaults = undefined) {

Vtex.prototype.Utils = function(){
return {
uuid : function(v){
return publicHelpers.uuid(v)
}
}
}
module.exports = Vtex
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