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

@s-ui/analytics

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/analytics - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

umd/index.js

43

CHANGELOG.md

@@ -5,1 +5,44 @@ # Change Log

<a name="1.3.0"></a>
# 1.3.0 (2019-07-22)
### Bug Fixes
* fix docs ([cc53d8d](https://github.com/SUI-Components/sui/commit/cc53d8d))
* put back single quotes ([2eb0cf8](https://github.com/SUI-Components/sui/commit/2eb0cf8))
### Features
* export sui-analytics lib as an umd module ([3f982b0](https://github.com/SUI-Components/sui/commit/3f982b0))
<a name="1.2.0"></a>
# 1.2.0 (2019-06-28)
### Features
* add anonymousId trait into message context ([0833cb1](https://github.com/SUI-Components/sui/commit/0833cb1))
* add userId trait to context ([f30a2cf](https://github.com/SUI-Components/sui/commit/f30a2cf))
<a name="1.1.0"></a>
# 1.1.0 (2019-05-14)
### Bug Fixes
* pass props to segment event ([742aa5d](https://github.com/SUI-Components/sui/commit/742aa5d))
### Features
* first commit ([d44a95c](https://github.com/SUI-Components/sui/commit/d44a95c))
* simple wrapping ([d23a7d6](https://github.com/SUI-Components/sui/commit/d23a7d6))

8

package.json
{
"name": "@s-ui/analytics",
"version": "1.2.0",
"description": "",
"version": "1.3.0",
"description": "Abstraction layer on top of Segment library.",
"main": "lib/index.js",
"scripts": {
"lib": "npx rimraf ./lib && npx mkdirp ./lib && babel --presets sui ./src --out-dir ./lib",
"prepare": "npm run lib"
"umd": "sui-bundler lib src-umd/index.js -o umd/ -p --root",
"prepare": "npm run lib && npm run umd"
},

@@ -15,2 +16,3 @@ "keywords": [],

"@babel/cli": "7",
"@s-ui/bundler": "5",
"babel-preset-sui": "3",

@@ -17,0 +19,0 @@ "sinon": "7.3.2"

@@ -24,3 +24,3 @@ # sui-analytics

### In your javascript
### In your modern and beautiful JavaScript...

@@ -31,2 +31,16 @@ ```js

### In your monolithic JavaScript...
```js
// First load the UMD module.
<script src="https://unpkg.com/@s-ui/analytics/umd/index.js"></script>
<script>
// Then trigger all the events you need referencing the right namespaced
// object: `window.sui.analytics`. For more info see the "Events" section below.
window.sui.analytics.identify('your user id', {});
window.sui.analytics.track('your event', {});
window.sui.analytics.reset();
</script>
```
## Events

@@ -33,0 +47,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