Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1 to 0.0.2

dunno.js

6

package.json
{
"name": "dunno",
"version": "0.0.1",
"description": "dunno? here you go.",
"main": "index.js",
"version": "0.0.2",
"description": "track last N user actions at any point of time",
"main": "dunno.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

@@ -7,22 +7,24 @@ Got weird user complaint but can't find the problem?

==
- dunno what actions user did, where clicked, on which page?
- dunno what user did, where clicked, on which pages?
- dunno where he was 5 sec ago? maybe JS errors 10 sec ago?
- dunno the root cause?
Dunno helps you to reproduce and fix reported user problems.
Dunno gives you a clear steps to reproduce.
Usage
Do know!
==
```<script src="dunno.js"></script>```
or ```npm install dunno``` for browserify.
Add script ```<script src="dunno.js"></script>```
or require for browserify
```
npm install dunno;
var dunno = require('dunno')
```
Start tracking asap
```js
dunno.start({
limit: 10, // number of last user actions to track
urlcheck: 100 // interval to spot url changes in ms
});
dunno.start(); // opts {limit: 10, urlcheck: 100}
window.onerror = function() {
var reproSteps = dunno.tell();
console.log(reproSteps);
console.log(dunno.tell());
};

@@ -34,14 +36,14 @@ ```

```
url: /logout
error: Uncaught ReferenceError: invoiceState is not defined
url: /sets/55b941e794a73c03008db78c ~
click: <a cl="set-tab ">ZZ</a> ~
click: <a cl="set-tab hidden"></a> ~
click: <a cl="set-tab ">Coco</a> ~
url: /games ~
click: <a cl="app-logo icn-app-logo">Create</a> ~
click: <body>Ooops, something bad</body> ~
click: <div id="set-header">Create</a> ~
url: /sets/55b941e794a73c03008db78c/55bbd7c2461ab603007d1648a ~
error: Uncaught TypeError: saveInvoice is not a function
away ~
url: /all?cachereset=100023402
```
Here you go.
Just post ```dunno.tell()``` to LogEntries or whatever you use. Now you know!

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