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

dunno

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dunno - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

20

dunno.js

@@ -5,3 +5,3 @@ /* https://github.com/bubenshchykov/dunno */

var key = 'dunno#v0.0.0';
var key = 'dunno#v0.0.3';
var sep = ' ~\n';

@@ -12,2 +12,3 @@ var mask = '<:tag id=":id" cl=":class">:info</:tag>';

var started, href;
var storage = window.localStorage;

@@ -23,7 +24,7 @@ exports.start = function(opts) {

var push = function(entry) {
var rec = window.localStorage.getItem(key) || '';
var rec = storage.getItem(key) || '';
var entries = rec.split(sep);
entries = entries.slice(-opts.limit +1);
entries.push(entry);
window.localStorage.setItem(key, entries.join(sep));
storage.setItem(key, entries.join(sep));
};

@@ -37,2 +38,13 @@

var track = function() {
try {
storage.setItem(key + '-ping', 1);
storage.removeItem(key + '-ping');
} catch (e) {
storage = {
data: {},
setItem: function(key, val) {this.data[key] = val},
getItem: function(key) {return this.data[key]}
};
};

@@ -82,3 +94,3 @@ setInterval(function() {

exports.tell = function(opts){
var rec = window.localStorage.getItem(key) || '';
var rec = storage.getItem(key) || '';
return rec.split(sep).reverse().join(sep);

@@ -85,0 +97,0 @@ };

2

package.json
{
"name": "dunno",
"version": "0.0.2",
"version": "0.0.3",
"description": "track last N user actions at any point of time",

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

@@ -1,2 +0,2 @@

Got weird user complaint but can't find the problem?
Got weird user complaint but can't reproduce?

@@ -7,15 +7,12 @@ ![Dunno?](/dunno.jpeg?raw=true)

==
- dunno what user did, where clicked, on which pages?
- dunno what user did, where he clicked, on which pages?
- dunno where he was 5 sec ago? maybe JS errors 10 sec ago?
- dunno the root cause?
Dunno gives you a clear steps to reproduce.
Do know!
==
Add script ```<script src="dunno.js"></script>```
or require for browserify
Add dunno.js to the page, or require for browserify
```
npm install dunno;
var dunno = require('dunno')
npm install dunno
var dunno = require('dunno');
```

@@ -33,3 +30,3 @@

User jumps between pages, does weird stuff, gets an error - you get repro steps.
User jumps between pages, does weird stuff, gets an error. Dunno tells you steps to reproduce.

@@ -36,0 +33,0 @@ ```

Sorry, the diff of this file is not supported yet

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