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

normalize-ts

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

normalize-ts - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

12

dist/normalization.js

@@ -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.

2

package.json
{
"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

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