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

phosphor-signaling

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phosphor-signaling - npm Package Compare versions

Comparing version 0.9.7 to 1.0.0

6

lib/index.d.ts

@@ -6,8 +6,8 @@ /**

* User code will not create a signal object directly, instead one will
* be returned when accessing the property defined by the `defineSignal`
* be returned when accessing the property defined by the [[defineSignal]]
* decorator.
*
* When defining a signal from plain JS (where decorators may not be
* supported), the `signal` function can be invoked directly with the
* class prototype and signal name.
* supported), the [[defineSignal]] function can be invoked directly
* with the class prototype and signal name.
*

@@ -14,0 +14,0 @@ * #### Example

@@ -0,0 +0,0 @@ /*-----------------------------------------------------------------------------

@@ -7,8 +7,8 @@ declare module 'phosphor-signaling/index' {

* User code will not create a signal object directly, instead one will
* be returned when accessing the property defined by the `defineSignal`
* be returned when accessing the property defined by the [[defineSignal]]
* decorator.
*
* When defining a signal from plain JS (where decorators may not be
* supported), the `signal` function can be invoked directly with the
* class prototype and signal name.
* supported), the [[defineSignal]] function can be invoked directly
* with the class prototype and signal name.
*

@@ -15,0 +15,0 @@ * #### Example

{
"name": "phosphor-signaling",
"version": "0.9.7",
"version": "1.0.0",
"description": "A module for type-safe inter-object communication.",

@@ -19,10 +19,10 @@ "main": "lib/index.js",

"scripts": {
"clean": "rimraf docs && rimraf lib && rimraf test/*.js",
"clean": "rimraf lib && rimraf test/build",
"build:src": "tsc --project src",
"build:dts": "node scripts/dtsbundle.js",
"build:test": "tsc --project test",
"build:test": "tsc --project test/src",
"build": "npm run build:src && npm run build:dts && npm run build:test",
"docs": "rimraf docs && typedoc --options scripts/tdoptions.json",
"docs": "rimraf docs/api && typedoc --options scripts/tdoptions.json",
"prepublish": "npm run build",
"test": "mocha"
"test": "mocha test/build/index.js"
},

@@ -29,0 +29,0 @@ "repository": {

@@ -6,3 +6,3 @@ phosphor-signaling

[API Docs](http://phosphorjs.github.io/phosphor-signaling/)
[API Docs](http://phosphorjs.github.io/phosphor-signaling/api/)

@@ -85,3 +85,2 @@

```typescript
// Omit the `ISignal` import on Node/Babel/ES6/ES5
import { ISignal, defineSignal } from 'phosphor-signaling';

@@ -198,2 +197,3 @@

disconnectReceiver(logger);

@@ -207,3 +207,14 @@ ```

disconnectEmitter(m1);
```
**Clear all signal data associated with an object:**
```typescript
import { clearSignalData } from 'phosphor-signaling';
// disconnect everything - emitter *and* receiver
clearSignalData(m1);
```

@@ -0,0 +0,0 @@ require('dts-generator').generate({

@@ -6,3 +6,3 @@ {

"mode": "file",
"out": "docs",
"out": "docs/api",
"src": [

@@ -9,0 +9,0 @@ "typings/es6-collections/es6-collections.d.ts",

@@ -16,8 +16,8 @@ /*-----------------------------------------------------------------------------

* User code will not create a signal object directly, instead one will
* be returned when accessing the property defined by the `defineSignal`
* be returned when accessing the property defined by the [[defineSignal]]
* decorator.
*
* When defining a signal from plain JS (where decorators may not be
* supported), the `signal` function can be invoked directly with the
* class prototype and signal name.
* supported), the [[defineSignal]] function can be invoked directly
* with the class prototype and signal name.
*

@@ -24,0 +24,0 @@ * #### Example

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ // Type definitions for es6-collections v0.5.1

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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