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

fluent-type-results

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-type-results - npm Package Compare versions

Comparing version 1.0.0 to 1.0.3

4

lib/base/resultBase.js

@@ -23,9 +23,9 @@ "use strict";

// TODO This conversion from Reason to Error might need to be checked
return this._reasons.filter(x => typeof x === typeof Error).map(x => x);
return this._reasons.filter((x) => typeof x === typeof Error).map((x) => x);
}
get Successes() {
// TODO This conversion from Reason to Error might need to be checked
return this._reasons.filter(x => typeof x === typeof success_1.default).map(x => x);
return this._reasons.filter((x) => typeof x === typeof success_1.default).map((x) => x);
}
}
exports.default = ResultBase;

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

export declare const Greeter: (name: string) => string;
import Result from '@results/result';
import ResultTValue from '@results/resultTValue';
export default Result;
export { ResultTValue };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Greeter = void 0;
exports.Greeter = (name) => `Hello ${name}`;
exports.ResultTValue = void 0;
const result_1 = require("@results/result");
const resultTValue_1 = require("@results/resultTValue");
exports.ResultTValue = resultTValue_1.default;
exports.default = result_1.default;

@@ -9,3 +9,3 @@ "use strict";

*/
constructor(message = "", causedBy = null) {
constructor(message = '', causedBy = null) {
super();

@@ -12,0 +12,0 @@ // #region Properties (1)

@@ -6,3 +6,3 @@ "use strict";

// #region Constructors (1)
constructor(message = "") {
constructor(message = '') {
super();

@@ -9,0 +9,0 @@ this._message = message;

{
"name": "fluent-type-results",
"version": "1.0.0",
"version": "1.0.3",
"description": "FluentTypeResults is a lightweight Typescript library built to solve a common problem - returning an object to either indicate success or failure of an operation instead of using exceptions.",

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

"build": "tsc",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "tslint -p tsconfig.json",
"update-publish": "npm version patch && npm publish",
"prepare": "npm run build",

@@ -23,3 +24,6 @@ "prepublishOnly": "npm test && npm run lint",

},
"keywords": ["Typescript", "FluentResult"],
"keywords": [
"Typescript",
"FluentResult"
],
"author": "JasonLandbridge",

@@ -43,2 +47,2 @@ "license": "ISC",

]
}
}
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