Socket
Socket
Sign inDemoInstall

@furystack/utils

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/utils - npm Package Compare versions

Comparing version 7.0.1 to 7.0.2

38

CHANGELOG.md

@@ -10,7 +10,2 @@ # Change Log

### [2.0.2](https://github.com/furystack/furystack/compare/@furystack/utils@2.0.0...@furystack/utils@2.0.2) (2022-01-10)

@@ -20,7 +15,2 @@

### [2.0.1](https://github.com/furystack/furystack/compare/@furystack/utils@2.0.0...@furystack/utils@2.0.1) (2022-01-10)

@@ -30,21 +20,12 @@

## [2.0.0](https://github.com/furystack/furystack/compare/@furystack/utils@1.2.46...@furystack/utils@2.0.0) (2021-12-08)
### ⚠ BREAKING CHANGES
* **@furystack/shades:** Disposable resources on Shade Components (#165)
- **@furystack/shades:** Disposable resources on Shade Components (#165)
### 🚀 What's new
* **@furystack/shades:** Disposable resources on Shade Components ([#165](https://github.com/furystack/furystack/issues/165)) ([8567e7e](https://github.com/furystack/furystack/commit/8567e7e2e01cec232a5f4448dfc0833c1f183229))
- **@furystack/shades:** Disposable resources on Shade Components ([#165](https://github.com/furystack/furystack/issues/165)) ([8567e7e](https://github.com/furystack/furystack/commit/8567e7e2e01cec232a5f4448dfc0833c1f183229))
### [1.2.46](https://github.com/furystack/furystack/compare/@furystack/utils@1.2.45...@furystack/utils@1.2.46) (2021-11-19)

@@ -54,7 +35,2 @@

### [1.2.45](https://github.com/furystack/furystack/compare/@furystack/utils@1.2.44...@furystack/utils@1.2.45) (2021-10-05)

@@ -64,7 +40,2 @@

### [1.2.44](https://github.com/furystack/furystack/compare/@furystack/utils@1.2.14...@furystack/utils@1.2.44) (2021-08-19)

@@ -74,9 +45,4 @@

### [1.2.43](https://github.com/furystack/furystack/compare/@furystack/utils@1.2.14...@furystack/utils@1.2.43) (2021-07-30)
**Note:** Version bump only for package @furystack/utils

2

package.json
{
"name": "@furystack/utils",
"version": "7.0.1",
"version": "7.0.2",
"description": "General utilities",

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

@@ -17,7 +17,7 @@ # @furystack/utils

using(new Resource(), resource => {
using(new Resource(), (resource) => {
// do something with the resource
})
usingAsync(new Resource(), async resource => {
usingAsync(new Resource(), async (resource) => {
// do something with the resource, allows awaiting promises

@@ -35,3 +35,3 @@ })

const observableValue = new ObservableValue<number>(0)
const observer = observableValue.subscribe(newValue => {
const observer = observableValue.subscribe((newValue) => {
console.log('Value changed:', newValue)

@@ -82,9 +82,9 @@ })

isAsync: true, // if you set to async, method finished will be *await*-ed
onCalled: traceData => {
onCalled: (traceData) => {
console.log('Method called:', traceData)
},
onFinished: traceData => {
onFinished: (traceData) => {
console.log('Method call finished:', traceData)
},
onError: traceData => {
onError: (traceData) => {
console.log('Method throwed an error:', traceData)

@@ -91,0 +91,0 @@ },

@@ -15,11 +15,11 @@ import { describe, it, expect, vi } from 'vitest'

public static addStatic(...args: number[]) {
public static addStatic(this: void, ...args: number[]) {
return args.reduce((a, b) => a + b, 0)
}
public addInstance(...args: number[]) {
public addInstance(this: void, ...args: number[]) {
return args.reduce((a, b) => a + b, 0)
}
public async addInstanceAsync(...args: number[]): Promise<number> {
public async addInstanceAsync(this: void, ...args: number[]): Promise<number> {
return args.reduce((a, b) => a + b, 0)

@@ -26,0 +26,0 @@ }

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