normalize-ts
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -8,6 +8,15 @@ "use strict"; | ||
var monocle_ts_1 = require("monocle-ts"); | ||
var higher_kinded_type_1 = require("./higher-kinded-type"); | ||
var util_1 = require("./util"); | ||
var through = function (f) { | ||
if (f === void 0) { f = function (a) { return a; }; } | ||
return function (a) { | ||
console.dir(f(a)); | ||
return a; | ||
}; | ||
}; | ||
var enforceArray = function (a) { return (Array.isArray(a) ? a : [a]); }; | ||
var schemaToSchematics = function (schema) { | ||
return pipeable_1.pipe(schema, fp_ts_1.record.foldMapWithIndex(fp_ts_1.array.getMonoid())(function (plural, entity) { | ||
return pipeable_1.pipe(entity.resolvers(), fp_ts_1.record.toArray, fp_ts_1.array.map(function (_a) { | ||
return pipeable_1.pipe(entity.resolvers(), fp_ts_1.record.toArray, fp_ts_1.array.map(fp_ts_1.tuple.mapLeft(higher_kinded_type_1.tuplet.enforceNotTuplet)), fp_ts_1.array.map(function (_a) { | ||
var from = _a[0], et = _a[1]; | ||
@@ -51,2 +60,3 @@ return pipeable_1.pipe(schema, util_1.recordFindIndexUniq(function (a) { return a === et; }), fp_ts_1.option.map(function (to) { return ({ to: to, from: from, plural: plural }); })); | ||
var to = _a.to; | ||
console.dir({ to: to }); | ||
return pipeable_1.pipe( | ||
@@ -53,0 +63,0 @@ // enforce as array for folding. |
{ | ||
"name": "normalize-ts", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
429489
459
0