Socket
Socket
Sign inDemoInstall

@celo/base

Package Overview
Dependencies
Maintainers
21
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@celo/base - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

lib/result.test.d.ts

2

lib/result.d.ts

@@ -28,1 +28,3 @@ export interface OkResult<TResult> {

export declare function parseJsonAsResult(data: string): OkResult<any> | ErrorResult<JSONParseError>;
export declare function isOk<TResult, TError extends Error>(result: Result<TResult, TError>): result is OkResult<TResult>;
export declare function isErr<TResult, TError extends Error>(result: Result<TResult, TError>): result is ErrorResult<TError>;

@@ -137,2 +137,10 @@ "use strict";

exports.parseJsonAsResult = parseJsonAsResult;
function isOk(result) {
return result.ok;
}
exports.isOk = isOk;
function isErr(result) {
return !result.ok;
}
exports.isErr = isErr;
//# sourceMappingURL=result.js.map

2

package.json
{
"name": "@celo/base",
"version": "1.3.1",
"version": "1.3.2",
"description": "Celo base common utils, no dependencies",

@@ -5,0 +5,0 @@ "author": "Celo",

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