Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fathym-deno/common

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fathym-deno/common - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35-eac

9

esm/src/status.d.ts

@@ -0,1 +1,4 @@

/**
* The status is a common object for passing more details back than standard boolean.
*/
export declare class Status {

@@ -5,2 +8,8 @@ Code?: number;

}
/**
* Check to see if a status is successful (code 0).
*
* @param status The status to check for success.
* @returns If the status is successful.
*/
export declare function isStatusSuccess(status: Status): boolean;

@@ -0,1 +1,4 @@

/**
* The status is a common object for passing more details back than standard boolean.
*/
export class Status {

@@ -19,4 +22,10 @@ constructor() {

}
/**
* Check to see if a status is successful (code 0).
*
* @param status The status to check for success.
* @returns If the status is successful.
*/
export function isStatusSuccess(status) {
return status && status.Code === 0;
}

1

esm/src/utils/path.js
/**
* Determine if a path exists.
*
* @param path The path to check for existence.

@@ -4,0 +5,0 @@ * @returns If the path exists.

2

package.json

@@ -5,3 +5,3 @@ {

"name": "@fathym-deno/common",
"version": "0.0.34",
"version": "0.0.35-eac",
"description": "Fathym's ES6 based common library.",

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

@@ -0,1 +1,4 @@

/**
* The status is a common object for passing more details back than standard boolean.
*/
export declare class Status {

@@ -5,2 +8,8 @@ Code?: number;

}
/**
* Check to see if a status is successful (code 0).
*
* @param status The status to check for success.
* @returns If the status is successful.
*/
export declare function isStatusSuccess(status: Status): boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isStatusSuccess = exports.Status = void 0;
/**
* The status is a common object for passing more details back than standard boolean.
*/
class Status {

@@ -23,2 +26,8 @@ constructor() {

exports.Status = Status;
/**
* Check to see if a status is successful (code 0).
*
* @param status The status to check for success.
* @returns If the status is successful.
*/
function isStatusSuccess(status) {

@@ -25,0 +34,0 @@ return status && status.Code === 0;

@@ -29,2 +29,3 @@ "use strict";

* Determine if a path exists.
*
* @param path The path to check for existence.

@@ -31,0 +32,0 @@ * @returns If the path exists.

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