@anysoftinc/anydb-sdk 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +7 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +36 -101
- package/dist/nextauth-adapter.js +1 -1
- package/package.json +4 -7
- package/dist/anydb.datascript.core.js +0 -336
- package/dist/anydb.datascript.rules.js +0 -29
- package/dist/anydb.datascript.schema.js +0 -35
- package/dist/cljs.core.js +0 -38752
- package/dist/cljs.reader.js +0 -450
- package/dist/cljs.tools.reader.edn.js +0 -945
- package/dist/cljs.tools.reader.impl.commons.js +0 -205
- package/dist/cljs.tools.reader.impl.errors.js +0 -429
- package/dist/cljs.tools.reader.impl.inspect.js +0 -170
- package/dist/cljs.tools.reader.impl.utils.js +0 -413
- package/dist/cljs.tools.reader.js +0 -1815
- package/dist/cljs.tools.reader.reader_types.js +0 -826
- package/dist/cljs_env.js +0 -7672
- package/dist/clojure.data.js +0 -307
- package/dist/clojure.edn.js +0 -107
- package/dist/clojure.set.js +0 -394
- package/dist/clojure.string.js +0 -490
- package/dist/clojure.walk.js +0 -144
- package/dist/datascript-backend.d.ts +0 -26
- package/dist/datascript-backend.d.ts.map +0 -1
- package/dist/datascript-backend.js +0 -113
- package/dist/datascript.built_ins.js +0 -680
- package/dist/datascript.conn.js +0 -814
- package/dist/datascript.core.js +0 -1285
- package/dist/datascript.db.js +0 -4058
- package/dist/datascript.impl.entity.js +0 -588
- package/dist/datascript.lru.js +0 -213
- package/dist/datascript.parser.js +0 -8598
- package/dist/datascript.pull_api.js +0 -2287
- package/dist/datascript.pull_parser.js +0 -865
- package/dist/datascript.query.js +0 -2785
- package/dist/datascript.serialize.js +0 -352
- package/dist/datascript.storage.js +0 -50
- package/dist/datascript.util.js +0 -82
- package/dist/extend_clj.core.js +0 -134
- package/dist/me.tonsky.persistent_sorted_set.arrays.js +0 -54
- package/dist/me.tonsky.persistent_sorted_set.js +0 -2485
package/dist/clojure.data.js
DELETED
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
var $CLJS = require("./cljs_env");
|
|
2
|
-
var $jscomp = $CLJS.$jscomp;
|
|
3
|
-
var COMPILED = false;
|
|
4
|
-
require("./cljs.core.js");
|
|
5
|
-
require("./clojure.set.js");
|
|
6
|
-
var anydb=$CLJS.anydb || ($CLJS.anydb = {});
|
|
7
|
-
var clojure=$CLJS.clojure || ($CLJS.clojure = {});
|
|
8
|
-
var cljs=$CLJS.cljs || ($CLJS.cljs = {});
|
|
9
|
-
var goog=$CLJS.goog || ($CLJS.goog = {});
|
|
10
|
-
var datascript=$CLJS.datascript || ($CLJS.datascript = {});
|
|
11
|
-
var me=$CLJS.me || ($CLJS.me = {});
|
|
12
|
-
var extend_clj=$CLJS.extend_clj || ($CLJS.extend_clj = {});
|
|
13
|
-
|
|
14
|
-
$CLJS.SHADOW_ENV.setLoaded("clojure.data.js");
|
|
15
|
-
|
|
16
|
-
goog.provide('clojure.data');
|
|
17
|
-
/**
|
|
18
|
-
* Internal helper for diff.
|
|
19
|
-
*/
|
|
20
|
-
clojure.data.atom_diff = (function clojure$data$atom_diff(a,b){
|
|
21
|
-
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(a,b)){
|
|
22
|
-
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [null,null,a], null);
|
|
23
|
-
} else {
|
|
24
|
-
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [a,b,null], null);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* Convert an associative-by-numeric-index collection into
|
|
29
|
-
* an equivalent vector, with nil for any missing keys
|
|
30
|
-
*/
|
|
31
|
-
clojure.data.vectorize = (function clojure$data$vectorize(m){
|
|
32
|
-
if(cljs.core.seq(m)){
|
|
33
|
-
return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3((function (result,p__7714){
|
|
34
|
-
var vec__7715 = p__7714;
|
|
35
|
-
var k = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__7715,(0),null);
|
|
36
|
-
var v = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__7715,(1),null);
|
|
37
|
-
return cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(result,k,v);
|
|
38
|
-
}),cljs.core.vec(cljs.core.repeat.cljs$core$IFn$_invoke$arity$2(cljs.core.apply.cljs$core$IFn$_invoke$arity$2(cljs.core.max,cljs.core.keys(m)),null)),m);
|
|
39
|
-
} else {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
/**
|
|
44
|
-
* Diff associative things a and b, comparing only the key k.
|
|
45
|
-
*/
|
|
46
|
-
clojure.data.diff_associative_key = (function clojure$data$diff_associative_key(a,b,k){
|
|
47
|
-
var va = cljs.core.get.cljs$core$IFn$_invoke$arity$2(a,k);
|
|
48
|
-
var vb = cljs.core.get.cljs$core$IFn$_invoke$arity$2(b,k);
|
|
49
|
-
var vec__7724 = clojure.data.diff(va,vb);
|
|
50
|
-
var a_STAR_ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__7724,(0),null);
|
|
51
|
-
var b_STAR_ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__7724,(1),null);
|
|
52
|
-
var ab = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__7724,(2),null);
|
|
53
|
-
var in_a = cljs.core.contains_QMARK_(a,k);
|
|
54
|
-
var in_b = cljs.core.contains_QMARK_(b,k);
|
|
55
|
-
var same = ((in_a) && (((in_b) && ((((!((ab == null)))) || ((((va == null)) && ((vb == null)))))))));
|
|
56
|
-
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [((((in_a) && ((((!((a_STAR_ == null)))) || ((!(same)))))))?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,a_STAR_]):null),((((in_b) && ((((!((b_STAR_ == null)))) || ((!(same)))))))?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,b_STAR_]):null),((same)?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,ab]):null)], null);
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* Diff associative things a and b, comparing only keys in ks (if supplied).
|
|
60
|
-
*/
|
|
61
|
-
clojure.data.diff_associative = (function clojure$data$diff_associative(var_args){
|
|
62
|
-
var G__7733 = arguments.length;
|
|
63
|
-
switch (G__7733) {
|
|
64
|
-
case 2:
|
|
65
|
-
return clojure.data.diff_associative.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
66
|
-
|
|
67
|
-
break;
|
|
68
|
-
case 3:
|
|
69
|
-
return clojure.data.diff_associative.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
|
|
70
|
-
|
|
71
|
-
break;
|
|
72
|
-
default:
|
|
73
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
(clojure.data.diff_associative.cljs$core$IFn$_invoke$arity$2 = (function (a,b){
|
|
79
|
-
return clojure.data.diff_associative.cljs$core$IFn$_invoke$arity$3(a,b,clojure.set.union.cljs$core$IFn$_invoke$arity$2(cljs.core.keys(a),cljs.core.keys(b)));
|
|
80
|
-
}));
|
|
81
|
-
|
|
82
|
-
(clojure.data.diff_associative.cljs$core$IFn$_invoke$arity$3 = (function (a,b,ks){
|
|
83
|
-
return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3((function (diff1,diff2){
|
|
84
|
-
return cljs.core.doall.cljs$core$IFn$_invoke$arity$1(cljs.core.map.cljs$core$IFn$_invoke$arity$3(cljs.core.merge,diff1,diff2));
|
|
85
|
-
}),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [null,null,null], null),cljs.core.map.cljs$core$IFn$_invoke$arity$2(cljs.core.partial.cljs$core$IFn$_invoke$arity$3(clojure.data.diff_associative_key,a,b),ks));
|
|
86
|
-
}));
|
|
87
|
-
|
|
88
|
-
(clojure.data.diff_associative.cljs$lang$maxFixedArity = 3);
|
|
89
|
-
|
|
90
|
-
clojure.data.diff_sequential = (function clojure$data$diff_sequential(a,b){
|
|
91
|
-
return cljs.core.vec(cljs.core.map.cljs$core$IFn$_invoke$arity$2(clojure.data.vectorize,clojure.data.diff_associative.cljs$core$IFn$_invoke$arity$3(((cljs.core.vector_QMARK_(a))?a:cljs.core.vec(a)),((cljs.core.vector_QMARK_(b))?b:cljs.core.vec(b)),cljs.core.range.cljs$core$IFn$_invoke$arity$1((function (){var x__5087__auto__ = cljs.core.count(a);
|
|
92
|
-
var y__5088__auto__ = cljs.core.count(b);
|
|
93
|
-
return ((x__5087__auto__ > y__5088__auto__) ? x__5087__auto__ : y__5088__auto__);
|
|
94
|
-
})()))));
|
|
95
|
-
});
|
|
96
|
-
clojure.data.diff_set = (function clojure$data$diff_set(a,b){
|
|
97
|
-
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.not_empty(clojure.set.difference.cljs$core$IFn$_invoke$arity$2(a,b)),cljs.core.not_empty(clojure.set.difference.cljs$core$IFn$_invoke$arity$2(b,a)),cljs.core.not_empty(clojure.set.intersection.cljs$core$IFn$_invoke$arity$2(a,b))], null);
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Implementation detail. Subject to change.
|
|
102
|
-
* @interface
|
|
103
|
-
*/
|
|
104
|
-
clojure.data.EqualityPartition = function(){};
|
|
105
|
-
|
|
106
|
-
var clojure$data$EqualityPartition$equality_partition$dyn_7804 = (function (x){
|
|
107
|
-
var x__5350__auto__ = (((x == null))?null:x);
|
|
108
|
-
var m__5351__auto__ = (clojure.data.equality_partition[goog.typeOf(x__5350__auto__)]);
|
|
109
|
-
if((!((m__5351__auto__ == null)))){
|
|
110
|
-
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(x) : m__5351__auto__.call(null,x));
|
|
111
|
-
} else {
|
|
112
|
-
var m__5349__auto__ = (clojure.data.equality_partition["_"]);
|
|
113
|
-
if((!((m__5349__auto__ == null)))){
|
|
114
|
-
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(x) : m__5349__auto__.call(null,x));
|
|
115
|
-
} else {
|
|
116
|
-
throw cljs.core.missing_protocol("EqualityPartition.equality-partition",x);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
/**
|
|
121
|
-
* Implementation detail. Subject to change.
|
|
122
|
-
*/
|
|
123
|
-
clojure.data.equality_partition = (function clojure$data$equality_partition(x){
|
|
124
|
-
if((((!((x == null)))) && ((!((x.clojure$data$EqualityPartition$equality_partition$arity$1 == null)))))){
|
|
125
|
-
return x.clojure$data$EqualityPartition$equality_partition$arity$1(x);
|
|
126
|
-
} else {
|
|
127
|
-
return clojure$data$EqualityPartition$equality_partition$dyn_7804(x);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Implementation detail. Subject to change.
|
|
134
|
-
* @interface
|
|
135
|
-
*/
|
|
136
|
-
clojure.data.Diff = function(){};
|
|
137
|
-
|
|
138
|
-
var clojure$data$Diff$diff_similar$dyn_7809 = (function (a,b){
|
|
139
|
-
var x__5350__auto__ = (((a == null))?null:a);
|
|
140
|
-
var m__5351__auto__ = (clojure.data.diff_similar[goog.typeOf(x__5350__auto__)]);
|
|
141
|
-
if((!((m__5351__auto__ == null)))){
|
|
142
|
-
return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(a,b) : m__5351__auto__.call(null,a,b));
|
|
143
|
-
} else {
|
|
144
|
-
var m__5349__auto__ = (clojure.data.diff_similar["_"]);
|
|
145
|
-
if((!((m__5349__auto__ == null)))){
|
|
146
|
-
return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(a,b) : m__5349__auto__.call(null,a,b));
|
|
147
|
-
} else {
|
|
148
|
-
throw cljs.core.missing_protocol("Diff.diff-similar",a);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
/**
|
|
153
|
-
* Implementation detail. Subject to change.
|
|
154
|
-
*/
|
|
155
|
-
clojure.data.diff_similar = (function clojure$data$diff_similar(a,b){
|
|
156
|
-
if((((!((a == null)))) && ((!((a.clojure$data$Diff$diff_similar$arity$2 == null)))))){
|
|
157
|
-
return a.clojure$data$Diff$diff_similar$arity$2(a,b);
|
|
158
|
-
} else {
|
|
159
|
-
return clojure$data$Diff$diff_similar$dyn_7809(a,b);
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
(clojure.data.EqualityPartition["null"] = true);
|
|
164
|
-
|
|
165
|
-
(clojure.data.equality_partition["null"] = (function (x){
|
|
166
|
-
return new cljs.core.Keyword(null,"atom","atom",-397043653);
|
|
167
|
-
}));
|
|
168
|
-
|
|
169
|
-
(clojure.data.EqualityPartition["string"] = true);
|
|
170
|
-
|
|
171
|
-
(clojure.data.equality_partition["string"] = (function (x){
|
|
172
|
-
return new cljs.core.Keyword(null,"atom","atom",-397043653);
|
|
173
|
-
}));
|
|
174
|
-
|
|
175
|
-
(clojure.data.EqualityPartition["number"] = true);
|
|
176
|
-
|
|
177
|
-
(clojure.data.equality_partition["number"] = (function (x){
|
|
178
|
-
return new cljs.core.Keyword(null,"atom","atom",-397043653);
|
|
179
|
-
}));
|
|
180
|
-
|
|
181
|
-
(clojure.data.EqualityPartition["array"] = true);
|
|
182
|
-
|
|
183
|
-
(clojure.data.equality_partition["array"] = (function (x){
|
|
184
|
-
return new cljs.core.Keyword(null,"sequential","sequential",-1082983960);
|
|
185
|
-
}));
|
|
186
|
-
|
|
187
|
-
(clojure.data.EqualityPartition["function"] = true);
|
|
188
|
-
|
|
189
|
-
(clojure.data.equality_partition["function"] = (function (x){
|
|
190
|
-
return new cljs.core.Keyword(null,"atom","atom",-397043653);
|
|
191
|
-
}));
|
|
192
|
-
|
|
193
|
-
(clojure.data.EqualityPartition["boolean"] = true);
|
|
194
|
-
|
|
195
|
-
(clojure.data.equality_partition["boolean"] = (function (x){
|
|
196
|
-
return new cljs.core.Keyword(null,"atom","atom",-397043653);
|
|
197
|
-
}));
|
|
198
|
-
|
|
199
|
-
(clojure.data.EqualityPartition["_"] = true);
|
|
200
|
-
|
|
201
|
-
(clojure.data.equality_partition["_"] = (function (x){
|
|
202
|
-
if((((!((x == null))))?(((((x.cljs$lang$protocol_mask$partition0$ & (1024))) || ((cljs.core.PROTOCOL_SENTINEL === x.cljs$core$IMap$))))?true:(((!x.cljs$lang$protocol_mask$partition0$))?cljs.core.native_satisfies_QMARK_(cljs.core.IMap,x):false)):cljs.core.native_satisfies_QMARK_(cljs.core.IMap,x))){
|
|
203
|
-
return new cljs.core.Keyword(null,"map","map",1371690461);
|
|
204
|
-
} else {
|
|
205
|
-
if((((!((x == null))))?(((((x.cljs$lang$protocol_mask$partition0$ & (4096))) || ((cljs.core.PROTOCOL_SENTINEL === x.cljs$core$ISet$))))?true:(((!x.cljs$lang$protocol_mask$partition0$))?cljs.core.native_satisfies_QMARK_(cljs.core.ISet,x):false)):cljs.core.native_satisfies_QMARK_(cljs.core.ISet,x))){
|
|
206
|
-
return new cljs.core.Keyword(null,"set","set",304602554);
|
|
207
|
-
} else {
|
|
208
|
-
if((((!((x == null))))?(((((x.cljs$lang$protocol_mask$partition0$ & (16777216))) || ((cljs.core.PROTOCOL_SENTINEL === x.cljs$core$ISequential$))))?true:(((!x.cljs$lang$protocol_mask$partition0$))?cljs.core.native_satisfies_QMARK_(cljs.core.ISequential,x):false)):cljs.core.native_satisfies_QMARK_(cljs.core.ISequential,x))){
|
|
209
|
-
return new cljs.core.Keyword(null,"sequential","sequential",-1082983960);
|
|
210
|
-
} else {
|
|
211
|
-
return new cljs.core.Keyword(null,"atom","atom",-397043653);
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}));
|
|
217
|
-
(clojure.data.Diff["null"] = true);
|
|
218
|
-
|
|
219
|
-
(clojure.data.diff_similar["null"] = (function (a,b){
|
|
220
|
-
return clojure.data.atom_diff(a,b);
|
|
221
|
-
}));
|
|
222
|
-
|
|
223
|
-
(clojure.data.Diff["string"] = true);
|
|
224
|
-
|
|
225
|
-
(clojure.data.diff_similar["string"] = (function (a,b){
|
|
226
|
-
return clojure.data.atom_diff(a,b);
|
|
227
|
-
}));
|
|
228
|
-
|
|
229
|
-
(clojure.data.Diff["number"] = true);
|
|
230
|
-
|
|
231
|
-
(clojure.data.diff_similar["number"] = (function (a,b){
|
|
232
|
-
return clojure.data.atom_diff(a,b);
|
|
233
|
-
}));
|
|
234
|
-
|
|
235
|
-
(clojure.data.Diff["array"] = true);
|
|
236
|
-
|
|
237
|
-
(clojure.data.diff_similar["array"] = (function (a,b){
|
|
238
|
-
return clojure.data.diff_sequential(a,b);
|
|
239
|
-
}));
|
|
240
|
-
|
|
241
|
-
(clojure.data.Diff["function"] = true);
|
|
242
|
-
|
|
243
|
-
(clojure.data.diff_similar["function"] = (function (a,b){
|
|
244
|
-
return clojure.data.atom_diff(a,b);
|
|
245
|
-
}));
|
|
246
|
-
|
|
247
|
-
(clojure.data.Diff["boolean"] = true);
|
|
248
|
-
|
|
249
|
-
(clojure.data.diff_similar["boolean"] = (function (a,b){
|
|
250
|
-
return clojure.data.atom_diff(a,b);
|
|
251
|
-
}));
|
|
252
|
-
|
|
253
|
-
(clojure.data.Diff["_"] = true);
|
|
254
|
-
|
|
255
|
-
(clojure.data.diff_similar["_"] = (function (a,b){
|
|
256
|
-
var fexpr__7780 = (function (){var G__7781 = clojure.data.equality_partition(a);
|
|
257
|
-
var G__7781__$1 = (((G__7781 instanceof cljs.core.Keyword))?G__7781.fqn:null);
|
|
258
|
-
switch (G__7781__$1) {
|
|
259
|
-
case "atom":
|
|
260
|
-
return clojure.data.atom_diff;
|
|
261
|
-
|
|
262
|
-
break;
|
|
263
|
-
case "set":
|
|
264
|
-
return clojure.data.diff_set;
|
|
265
|
-
|
|
266
|
-
break;
|
|
267
|
-
case "sequential":
|
|
268
|
-
return clojure.data.diff_sequential;
|
|
269
|
-
|
|
270
|
-
break;
|
|
271
|
-
case "map":
|
|
272
|
-
return clojure.data.diff_associative;
|
|
273
|
-
|
|
274
|
-
break;
|
|
275
|
-
default:
|
|
276
|
-
throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__7781__$1)].join('')));
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
})();
|
|
280
|
-
return (fexpr__7780.cljs$core$IFn$_invoke$arity$2 ? fexpr__7780.cljs$core$IFn$_invoke$arity$2(a,b) : fexpr__7780.call(null,a,b));
|
|
281
|
-
}));
|
|
282
|
-
/**
|
|
283
|
-
* Recursively compares a and b, returning a tuple of
|
|
284
|
-
* [things-only-in-a things-only-in-b things-in-both].
|
|
285
|
-
* Comparison rules:
|
|
286
|
-
*
|
|
287
|
-
* * For equal a and b, return [nil nil a].
|
|
288
|
-
* * Maps are subdiffed where keys match and values differ.
|
|
289
|
-
* * Sets are never subdiffed.
|
|
290
|
-
* * All sequential things are treated as associative collections
|
|
291
|
-
* by their indexes, with results returned as vectors.
|
|
292
|
-
* * Everything else (including strings!) is treated as
|
|
293
|
-
* an atom and compared for equality.
|
|
294
|
-
*/
|
|
295
|
-
clojure.data.diff = (function clojure$data$diff(a,b){
|
|
296
|
-
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(a,b)){
|
|
297
|
-
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [null,null,a], null);
|
|
298
|
-
} else {
|
|
299
|
-
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(clojure.data.equality_partition(a),clojure.data.equality_partition(b))){
|
|
300
|
-
return clojure.data.diff_similar(a,b);
|
|
301
|
-
} else {
|
|
302
|
-
return clojure.data.atom_diff(a,b);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
//# sourceMappingURL=clojure.data.js.map
|
package/dist/clojure.edn.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
var $CLJS = require("./cljs_env");
|
|
2
|
-
var $jscomp = $CLJS.$jscomp;
|
|
3
|
-
var COMPILED = false;
|
|
4
|
-
require("./cljs.core.js");
|
|
5
|
-
require("./cljs.reader.js");
|
|
6
|
-
var anydb=$CLJS.anydb || ($CLJS.anydb = {});
|
|
7
|
-
var clojure=$CLJS.clojure || ($CLJS.clojure = {});
|
|
8
|
-
var cljs=$CLJS.cljs || ($CLJS.cljs = {});
|
|
9
|
-
var goog=$CLJS.goog || ($CLJS.goog = {});
|
|
10
|
-
var datascript=$CLJS.datascript || ($CLJS.datascript = {});
|
|
11
|
-
var me=$CLJS.me || ($CLJS.me = {});
|
|
12
|
-
var extend_clj=$CLJS.extend_clj || ($CLJS.extend_clj = {});
|
|
13
|
-
|
|
14
|
-
$CLJS.SHADOW_ENV.setLoaded("clojure.edn.js");
|
|
15
|
-
|
|
16
|
-
goog.provide('clojure.edn');
|
|
17
|
-
/**
|
|
18
|
-
* Reads the first object from an cljs.tools.reader.reader-types/IPushbackReader.
|
|
19
|
-
* Returns the object read. If EOF, throws if eof-error? is true otherwise returns eof.
|
|
20
|
-
* If no reader is provided, *in* will be used.
|
|
21
|
-
*
|
|
22
|
-
* Reads data in the edn format (subset of Clojure data):
|
|
23
|
-
* http://edn-format.org
|
|
24
|
-
*
|
|
25
|
-
* cljs.tools.reader.edn/read doesn't depend on dynamic Vars, all configuration
|
|
26
|
-
* is done by passing an opt map.
|
|
27
|
-
*
|
|
28
|
-
* opts is a map that can include the following keys:
|
|
29
|
-
* :eof - value to return on end-of-file. When not supplied, eof throws an exception.
|
|
30
|
-
* :readers - a map of tag symbols to data-reader functions to be considered before default-data-readers.
|
|
31
|
-
* When not supplied, only the default-data-readers will be used.
|
|
32
|
-
* :default - A function of two args, that will, if present and no reader is found for a tag,
|
|
33
|
-
* be called with the tag and the value.
|
|
34
|
-
*/
|
|
35
|
-
clojure.edn.read = (function clojure$edn$read(var_args){
|
|
36
|
-
var G__11247 = arguments.length;
|
|
37
|
-
switch (G__11247) {
|
|
38
|
-
case 1:
|
|
39
|
-
return clojure.edn.read.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
40
|
-
|
|
41
|
-
break;
|
|
42
|
-
case 2:
|
|
43
|
-
return clojure.edn.read.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
44
|
-
|
|
45
|
-
break;
|
|
46
|
-
case 4:
|
|
47
|
-
return clojure.edn.read.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]));
|
|
48
|
-
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
(clojure.edn.read.cljs$core$IFn$_invoke$arity$1 = (function (reader){
|
|
57
|
-
return cljs.reader.read.cljs$core$IFn$_invoke$arity$1(reader);
|
|
58
|
-
}));
|
|
59
|
-
|
|
60
|
-
(clojure.edn.read.cljs$core$IFn$_invoke$arity$2 = (function (opts,reader){
|
|
61
|
-
return cljs.reader.read.cljs$core$IFn$_invoke$arity$2(opts,reader);
|
|
62
|
-
}));
|
|
63
|
-
|
|
64
|
-
(clojure.edn.read.cljs$core$IFn$_invoke$arity$4 = (function (reader,eof_error_QMARK_,eof,opts){
|
|
65
|
-
return cljs.reader.read.cljs$core$IFn$_invoke$arity$4(reader,eof_error_QMARK_,eof,opts);
|
|
66
|
-
}));
|
|
67
|
-
|
|
68
|
-
(clojure.edn.read.cljs$lang$maxFixedArity = 4);
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Reads one object from the string s.
|
|
72
|
-
* Returns nil when s is nil or empty.
|
|
73
|
-
*
|
|
74
|
-
* Reads data in the edn format (subset of Clojure data):
|
|
75
|
-
* http://edn-format.org
|
|
76
|
-
*
|
|
77
|
-
* opts is a map as per cljs.tools.reader.edn/read
|
|
78
|
-
*/
|
|
79
|
-
clojure.edn.read_string = (function clojure$edn$read_string(var_args){
|
|
80
|
-
var G__11256 = arguments.length;
|
|
81
|
-
switch (G__11256) {
|
|
82
|
-
case 1:
|
|
83
|
-
return clojure.edn.read_string.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
|
|
84
|
-
|
|
85
|
-
break;
|
|
86
|
-
case 2:
|
|
87
|
-
return clojure.edn.read_string.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
|
|
88
|
-
|
|
89
|
-
break;
|
|
90
|
-
default:
|
|
91
|
-
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
(clojure.edn.read_string.cljs$core$IFn$_invoke$arity$1 = (function (s){
|
|
97
|
-
return cljs.reader.read_string.cljs$core$IFn$_invoke$arity$1(s);
|
|
98
|
-
}));
|
|
99
|
-
|
|
100
|
-
(clojure.edn.read_string.cljs$core$IFn$_invoke$arity$2 = (function (opts,s){
|
|
101
|
-
return cljs.reader.read_string.cljs$core$IFn$_invoke$arity$2(opts,s);
|
|
102
|
-
}));
|
|
103
|
-
|
|
104
|
-
(clojure.edn.read_string.cljs$lang$maxFixedArity = 2);
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
//# sourceMappingURL=clojure.edn.js.map
|