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

datatype-expansion

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatype-expansion - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

node/D716D2B.js

2

node/cljs_deps.js

@@ -18,3 +18,3 @@ goog.addDependency("base.js", ['goog'], []);

goog.addDependency("../instaparse/core.js", ['instaparse.core'], ['instaparse.combinators_source', 'instaparse.line_col', 'instaparse.print', 'instaparse.reduction', 'cljs.core', 'instaparse.transform', 'instaparse.cfg', 'instaparse.abnf', 'instaparse.failure', 'instaparse.gll', 'instaparse.repeat']);
goog.addDependency("../5D5BB60.js", ['cljs.nodejs'], ['cljs.core']);
goog.addDependency("../D716D2B.js", ['cljs.nodejs'], ['cljs.core']);
goog.addDependency("../datatype_expansion/utils.js", ['datatype_expansion.utils'], ['cljs.core', 'cljs.nodejs']);

@@ -21,0 +21,0 @@ goog.addDependency("../clojure/walk.js", ['clojure.walk'], ['cljs.core']);

@@ -10,278 +10,54 @@ // Compiled by ClojureScript 1.9.14 {:target :nodejs}

datatype_expansion.js.expandedForm = (function datatype_expansion$js$expandedForm(type_form,typing_context,cb){
var c__16876__auto___16989 = cljs.core.async.chan.call(null,(1));
cljs.core.async.impl.dispatch.run.call(null,((function (c__16876__auto___16989){
return (function (){
var f__16877__auto__ = (function (){var switch__16855__auto__ = ((function (c__16876__auto___16989){
return (function (state_16976){
var state_val_16977 = (state_16976[(1)]);
if((state_val_16977 === (1))){
var state_16976__$1 = state_16976;
var statearr_16978_16990 = state_16976__$1;
(statearr_16978_16990[(2)] = null);
(statearr_16978_16990[(1)] = (4));
return new cljs.core.Keyword(null,"recur","recur",-437573268);
} else {
if((state_val_16977 === (2))){
var inst_16974 = (state_16976[(2)]);
var state_16976__$1 = state_16976;
return cljs.core.async.impl.ioc_helpers.return_chan.call(null,state_16976__$1,inst_16974);
} else {
if((state_val_16977 === (3))){
var inst_16955 = (state_16976[(2)]);
var inst_16956 = cb.call(null,inst_16955,null);
var state_16976__$1 = state_16976;
var statearr_16979_16991 = state_16976__$1;
(statearr_16979_16991[(2)] = inst_16956);
cljs.core.async.impl.ioc_helpers.process_exception.call(null,state_16976__$1);
return new cljs.core.Keyword(null,"recur","recur",-437573268);
} else {
if((state_val_16977 === (4))){
var _ = cljs.core.async.impl.ioc_helpers.add_exception_frame.call(null,state_16976,(3),Error,null,(2));
var inst_16960 = cljs.core.js__GT_clj.call(null,type_form);
var inst_16961 = clojure.walk.keywordize_keys.call(null,inst_16960);
var inst_16962 = cljs.core.PersistentHashMap.EMPTY;
var inst_16964 = (function (){var type_form__$1 = inst_16961;
return ((function (type_form__$1,_,inst_16960,inst_16961,inst_16962,state_val_16977,c__16876__auto___16989){
return (function (p__16963){
var vec__16980 = p__16963;
var k = cljs.core.nth.call(null,vec__16980,(0),null);
var v = cljs.core.nth.call(null,vec__16980,(1),null);
try{var type_form__$1 = clojure.walk.keywordize_keys.call(null,cljs.core.js__GT_clj.call(null,type_form));
var typing_context__$1 = cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,((function (type_form__$1){
return (function (p__8688){
var vec__8689 = p__8688;
var k = cljs.core.nth.call(null,vec__8689,(0),null);
var v = cljs.core.nth.call(null,vec__8689,(1),null);
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [k,clojure.walk.keywordize_keys.call(null,v)], null);
});
;})(type_form__$1,_,inst_16960,inst_16961,inst_16962,state_val_16977,c__16876__auto___16989))
})();
var inst_16965 = cljs.core.js__GT_clj.call(null,typing_context);
var inst_16966 = cljs.core.map.call(null,inst_16964,inst_16965);
var inst_16967 = cljs.core.into.call(null,inst_16962,inst_16966);
var inst_16968 = cljs.core.js__GT_clj.call(null,inst_16961);
var inst_16969 = cljs.core.js__GT_clj.call(null,inst_16967);
var inst_16970 = datatype_expansion.expanded_form.expanded_form.call(null,inst_16968,inst_16969);
var inst_16971 = cljs.core.clj__GT_js.call(null,inst_16970);
var inst_16972 = cb.call(null,null,inst_16971);
var state_16976__$1 = state_16976;
var statearr_16981_16992 = state_16976__$1;
(statearr_16981_16992[(2)] = inst_16972);
cljs.core.async.impl.ioc_helpers.process_exception.call(null,state_16976__$1);
return new cljs.core.Keyword(null,"recur","recur",-437573268);
});})(type_form__$1))
,cljs.core.js__GT_clj.call(null,typing_context)));
var result = datatype_expansion.expanded_form.expanded_form.call(null,cljs.core.js__GT_clj.call(null,type_form__$1),cljs.core.js__GT_clj.call(null,typing_context__$1));
var result__$1 = cljs.core.clj__GT_js.call(null,result);
if(cljs.core.some_QMARK_.call(null,cb)){
cb.call(null,null,result__$1);
} else {
return null;
}
}
}
}
});})(c__16876__auto___16989))
;
return ((function (switch__16855__auto__,c__16876__auto___16989){
return (function() {
var datatype_expansion$js$expandedForm_$_state_machine__16856__auto__ = null;
var datatype_expansion$js$expandedForm_$_state_machine__16856__auto____0 = (function (){
var statearr_16985 = [null,null,null,null,null,null,null];
(statearr_16985[(0)] = datatype_expansion$js$expandedForm_$_state_machine__16856__auto__);
(statearr_16985[(1)] = (1));
return statearr_16985;
});
var datatype_expansion$js$expandedForm_$_state_machine__16856__auto____1 = (function (state_16976){
while(true){
var ret_value__16857__auto__ = (function (){try{while(true){
var result__16858__auto__ = switch__16855__auto__.call(null,state_16976);
if(cljs.core.keyword_identical_QMARK_.call(null,result__16858__auto__,new cljs.core.Keyword(null,"recur","recur",-437573268))){
continue;
return result__$1;
}catch (e8687){if((e8687 instanceof Error)){
var error = e8687;
if(cljs.core.some_QMARK_.call(null,cb)){
return cb.call(null,error,null);
} else {
return result__16858__auto__;
throw error;
}
break;
}
}catch (e16986){if((e16986 instanceof Object)){
var ex__16859__auto__ = e16986;
var statearr_16987_16993 = state_16976;
(statearr_16987_16993[(5)] = ex__16859__auto__);
cljs.core.async.impl.ioc_helpers.process_exception.call(null,state_16976);
return new cljs.core.Keyword(null,"recur","recur",-437573268);
} else {
throw e16986;
throw e8687;
}
}})();
if(cljs.core.keyword_identical_QMARK_.call(null,ret_value__16857__auto__,new cljs.core.Keyword(null,"recur","recur",-437573268))){
var G__16994 = state_16976;
state_16976 = G__16994;
continue;
} else {
return ret_value__16857__auto__;
}
break;
}
});
datatype_expansion$js$expandedForm_$_state_machine__16856__auto__ = function(state_16976){
switch(arguments.length){
case 0:
return datatype_expansion$js$expandedForm_$_state_machine__16856__auto____0.call(this);
case 1:
return datatype_expansion$js$expandedForm_$_state_machine__16856__auto____1.call(this,state_16976);
}
throw(new Error('Invalid arity: ' + arguments.length));
};
datatype_expansion$js$expandedForm_$_state_machine__16856__auto__.cljs$core$IFn$_invoke$arity$0 = datatype_expansion$js$expandedForm_$_state_machine__16856__auto____0;
datatype_expansion$js$expandedForm_$_state_machine__16856__auto__.cljs$core$IFn$_invoke$arity$1 = datatype_expansion$js$expandedForm_$_state_machine__16856__auto____1;
return datatype_expansion$js$expandedForm_$_state_machine__16856__auto__;
})()
;})(switch__16855__auto__,c__16876__auto___16989))
})();
var state__16878__auto__ = (function (){var statearr_16988 = f__16877__auto__.call(null);
(statearr_16988[cljs.core.async.impl.ioc_helpers.USER_START_IDX] = c__16876__auto___16989);
return statearr_16988;
})();
return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,state__16878__auto__);
});})(c__16876__auto___16989))
);
return null;
});
}});
goog.exportSymbol('datatype_expansion.js.expandedForm', datatype_expansion.js.expandedForm);
datatype_expansion.js.canonicalForm = (function datatype_expansion$js$canonicalForm(expanded_form,cb){
var c__16876__auto___17045 = cljs.core.async.chan.call(null,(1));
cljs.core.async.impl.dispatch.run.call(null,((function (c__16876__auto___17045){
return (function (){
var f__16877__auto__ = (function (){var switch__16855__auto__ = ((function (c__16876__auto___17045){
return (function (state_17033){
var state_val_17034 = (state_17033[(1)]);
if((state_val_17034 === (1))){
var state_17033__$1 = state_17033;
var statearr_17035_17046 = state_17033__$1;
(statearr_17035_17046[(2)] = null);
(statearr_17035_17046[(1)] = (4));
return new cljs.core.Keyword(null,"recur","recur",-437573268);
try{var expanded_form__$1 = clojure.walk.keywordize_keys.call(null,cljs.core.js__GT_clj.call(null,expanded_form));
var result = datatype_expansion.canonical_form.canonical_form.call(null,expanded_form__$1);
var result__$1 = cljs.core.clj__GT_js.call(null,result);
if(cljs.core.some_QMARK_.call(null,cb)){
cb.call(null,null,result__$1);
} else {
if((state_val_17034 === (2))){
var inst_17031 = (state_17033[(2)]);
var state_17033__$1 = state_17033;
return cljs.core.async.impl.ioc_helpers.return_chan.call(null,state_17033__$1,inst_17031);
} else {
if((state_val_17034 === (3))){
var inst_17020 = (state_17033[(2)]);
var inst_17021 = cb.call(null,inst_17020,null);
var state_17033__$1 = state_17033;
var statearr_17036_17047 = state_17033__$1;
(statearr_17036_17047[(2)] = inst_17021);
cljs.core.async.impl.ioc_helpers.process_exception.call(null,state_17033__$1);
return new cljs.core.Keyword(null,"recur","recur",-437573268);
} else {
if((state_val_17034 === (4))){
var _ = cljs.core.async.impl.ioc_helpers.add_exception_frame.call(null,state_17033,(3),Error,null,(2));
var inst_17025 = cljs.core.js__GT_clj.call(null,expanded_form);
var inst_17026 = clojure.walk.keywordize_keys.call(null,inst_17025);
var inst_17027 = datatype_expansion.canonical_form.canonical_form.call(null,inst_17026);
var inst_17028 = cljs.core.clj__GT_js.call(null,inst_17027);
var inst_17029 = cb.call(null,null,inst_17028);
var state_17033__$1 = state_17033;
var statearr_17037_17048 = state_17033__$1;
(statearr_17037_17048[(2)] = inst_17029);
cljs.core.async.impl.ioc_helpers.process_exception.call(null,state_17033__$1);
return new cljs.core.Keyword(null,"recur","recur",-437573268);
} else {
return null;
}
}
}
}
});})(c__16876__auto___17045))
;
return ((function (switch__16855__auto__,c__16876__auto___17045){
return (function() {
var datatype_expansion$js$canonicalForm_$_state_machine__16856__auto__ = null;
var datatype_expansion$js$canonicalForm_$_state_machine__16856__auto____0 = (function (){
var statearr_17041 = [null,null,null,null,null,null,null];
(statearr_17041[(0)] = datatype_expansion$js$canonicalForm_$_state_machine__16856__auto__);
(statearr_17041[(1)] = (1));
return statearr_17041;
});
var datatype_expansion$js$canonicalForm_$_state_machine__16856__auto____1 = (function (state_17033){
while(true){
var ret_value__16857__auto__ = (function (){try{while(true){
var result__16858__auto__ = switch__16855__auto__.call(null,state_17033);
if(cljs.core.keyword_identical_QMARK_.call(null,result__16858__auto__,new cljs.core.Keyword(null,"recur","recur",-437573268))){
continue;
return result__$1;
}catch (e8691){if((e8691 instanceof Error)){
var error = e8691;
if(cljs.core.some_QMARK_.call(null,cb)){
return cb.call(null,error,null);
} else {
return result__16858__auto__;
throw error;
}
break;
}
}catch (e17042){if((e17042 instanceof Object)){
var ex__16859__auto__ = e17042;
var statearr_17043_17049 = state_17033;
(statearr_17043_17049[(5)] = ex__16859__auto__);
cljs.core.async.impl.ioc_helpers.process_exception.call(null,state_17033);
return new cljs.core.Keyword(null,"recur","recur",-437573268);
} else {
throw e17042;
throw e8691;
}
}})();
if(cljs.core.keyword_identical_QMARK_.call(null,ret_value__16857__auto__,new cljs.core.Keyword(null,"recur","recur",-437573268))){
var G__17050 = state_17033;
state_17033 = G__17050;
continue;
} else {
return ret_value__16857__auto__;
}
break;
}
});
datatype_expansion$js$canonicalForm_$_state_machine__16856__auto__ = function(state_17033){
switch(arguments.length){
case 0:
return datatype_expansion$js$canonicalForm_$_state_machine__16856__auto____0.call(this);
case 1:
return datatype_expansion$js$canonicalForm_$_state_machine__16856__auto____1.call(this,state_17033);
}
throw(new Error('Invalid arity: ' + arguments.length));
};
datatype_expansion$js$canonicalForm_$_state_machine__16856__auto__.cljs$core$IFn$_invoke$arity$0 = datatype_expansion$js$canonicalForm_$_state_machine__16856__auto____0;
datatype_expansion$js$canonicalForm_$_state_machine__16856__auto__.cljs$core$IFn$_invoke$arity$1 = datatype_expansion$js$canonicalForm_$_state_machine__16856__auto____1;
return datatype_expansion$js$canonicalForm_$_state_machine__16856__auto__;
})()
;})(switch__16855__auto__,c__16876__auto___17045))
})();
var state__16878__auto__ = (function (){var statearr_17044 = f__16877__auto__.call(null);
(statearr_17044[cljs.core.async.impl.ioc_helpers.USER_START_IDX] = c__16876__auto___17045);
return statearr_17044;
})();
return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,state__16878__auto__);
});})(c__16876__auto___17045))
);
return null;
});
}});
goog.exportSymbol('datatype_expansion.js.canonicalForm', datatype_expansion.js.canonicalForm);

@@ -293,2 +69,2 @@ datatype_expansion.js._registerInterface = (function datatype_expansion$js$_registerInterface(){

//# sourceMappingURL=js.js.map?rel=1475853207862
//# sourceMappingURL=js.js.map?rel=1476099706080
{
"name":"datatype-expansion",
"version":"0.0.11",
"version":"0.0.12",
"main":"index",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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