Socket
Socket
Sign inDemoInstall

observ-location-hash

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

6

index.js

@@ -6,8 +6,10 @@ 'use strict'

module.exports = HashHistory()
module.exports = HashHistory
function HashHistory () {
function HashHistory (initialHash) {
observable.set = set
var listen = hashChangeEvent()
if (initialHash) set(initialHash)
return observable

@@ -14,0 +16,0 @@

{
"name": "observ-location-hash",
"main": "index.js",
"version": "0.0.2",
"version": "0.0.3",
"description": "Observable interface to the browser hash location",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -31,2 +31,6 @@ # observ-location-hash [![Build Status](https://travis-ci.org/ajoslin/observ-location-hash.svg?branch=master)](https://travis-ci.org/ajoslin/observ-location-hash)

#### `ObservHash([initialHash]) -> `observHash`
Returns an instance of an observHash observable. Optionally pass in an initial value to set the window hash to.
#### `observHash([listener])` -> `function`

@@ -33,0 +37,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc