Code Monkey home page Code Monkey logo

scrybl's Introduction

scrybl Known Vulnerabilities

Browser console override implementing Beacon API to push logging to a known endpoint.

Installing

npm install --save scrybl

Upgrading to v2

This is really the first time I've touched this repo in 4 years.

Breaking Changes

There are a couple breaking changes made to this repo in v2 from "v0."

  1. I've updated the repo and code with inclusive language.
    1. Primary branch has been renamed from master to main.
    2. The instantiation parameter whitelist has been renamed to allowList
  2. The original class name was a typo, and has been renamed from Scryb to Scrybl to match the repo.

Nonbreaking Changes

New Instantiation Parameter -- disabled

Release cycles between clients and endpoints don't always jive, and sometimes you need to release code in a client ahead of the backend. Alternatively, there may be a staged rollout of a new production feature, enabling a feature for X number of users based on certain criteria.

Set disabled to true to effectively NOOP this library, and the console object will remain untouched.

Safely Call Beacon API

Before, this library optimistically called the Beacon API. This would obviously throw an error in the event that navigator isn't a global, or sendBeacon isn't a method on the navigator global. Instantiation now bails if the Beacon API doesn't exist, as though the library were called with disabled set to true.

silentMode Respected by NOOP

Previously, silent mode wasn't respected when a NOOP'd function was called. This has been fixed.

log Always Available

console.log will now always be made available in its underscore form regardless of allowlist.

scrybl's People

Contributors

dependabot[bot] avatar storskegg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zendesk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.