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

@hazae41/box

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazae41/box - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

dist/types/mods/box/box.d.ts

@@ -16,4 +16,4 @@ import { Result } from '@hazae41/result';

declare class Box<T extends Disposable> {
#private;
readonly inner: T;
moved: boolean;
/**

@@ -24,3 +24,2 @@ * Object that uniquely owns a type T and can dispose it

[Symbol.dispose](): void;
get moved(): boolean;
/**

@@ -60,2 +59,9 @@ * Just get the inner value

/**
* Move if not already moved
* Useful if you want to take ownership only if available
* @example using box2 = box.moveIfNotMoved()
* @returns Box<T>
*/
moveIfNotMoved(): Box<T>;
/**
* Create a new Box that's already moved, and keep this one as is

@@ -62,0 +68,0 @@ * @returns Box<T>

2

package.json
{
"type": "module",
"name": "@hazae41/box",
"version": "1.0.1",
"version": "1.0.2",
"description": "Rust-like Box for TypeScript",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/hazae41/box",

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