@proem/some
Advanced tools
Comparing version
@@ -0,0 +0,0 @@ export declare const map: { |
@@ -0,10 +1,12 @@ | ||
"use strict"; | ||
/* | ||
Package for handling possibly null values. | ||
*/ | ||
export var map = function (value, mapper) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.map = function (value, mapper) { | ||
return value === null ? null : mapper(value); | ||
}; | ||
map.partial = function (mapper) { return function (value) { | ||
return map(value, mapper); | ||
exports.map.partial = function (mapper) { return function (value) { | ||
return exports.map(value, mapper); | ||
}; }; | ||
//# sourceMappingURL=some.js.map |
{ | ||
"name": "@proem/some", | ||
"version": "0.0.6", | ||
"version": "0.0.12", | ||
"description": "Proem package for handling possibly null values", | ||
@@ -17,2 +17,4 @@ "keywords": [ | ||
"main": "lib/some.js", | ||
"module": "esm/some.js", | ||
"types": "lib/some.d.ts", | ||
"directories": { | ||
@@ -22,3 +24,4 @@ "lib": "lib" | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"esm" | ||
], | ||
@@ -33,3 +36,5 @@ "publishConfig": { | ||
"scripts": { | ||
"prepublishOnly": "tsc -b .", | ||
"build:commonjs": "tsc -b .", | ||
"build:esm": "tsc -b ./tsconfig.esm.json", | ||
"prepublishOnly": "npm run build:commonjs && npm run build:esm", | ||
"test": "echo \"Error: run tests from root\" && exit 1" | ||
@@ -40,6 +45,6 @@ }, | ||
}, | ||
"gitHead": "1abeefc25766642e465890a49d71c97ce7b914c6", | ||
"dependencies": { | ||
"gitHead": "ed14680e3bb2277def8b798b17ce1e4d201ace6a", | ||
"devDependencies": { | ||
"typescript": "^3.1.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
4409
0.78%0
-100%28
12%1
Infinity%- Removed
- Removed