🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

pear-ref

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pear-ref - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+8
-0
index.js

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

refs = 0 // read-only
constructor () {
if (!global.Pear) throw new Error('pear-ref is designed for use with Pear')
const REF = global.Pear?.[global.Pear?.constructor.REF]
if (REF) return REF // all apps use the same ref counter
super()
}
ref () {

@@ -8,0 +16,0 @@ this.refs++

+1
-1
{
"name": "pear-ref",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -5,3 +5,3 @@ # pear-ref

# Usage
## Usage

@@ -20,4 +20,4 @@ ```js

# License
## License
Apache-2.0