Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
variety
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
variety
Commits
52e45c91
Commit
52e45c91
authored
Jan 31, 2015
by
James Cropcho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using strict mode (and it even caught something!)
parent
4707a789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
variety.js
variety.js
+3
-1
No files found.
variety.js
View file @
52e45c91
...
@@ -9,6 +9,8 @@ Please see https://github.com/variety/variety for details.
...
@@ -9,6 +9,8 @@ Please see https://github.com/variety/variety for details.
Released by Maypop Inc, © 2012-2015, under the MIT License. */
Released by Maypop Inc, © 2012-2015, under the MIT License. */
'use strict'
;
var
log
=
function
(
message
)
{
var
log
=
function
(
message
)
{
if
(
!
__quiet
)
{
// mongo shell param, coming from https://github.com/mongodb/mongo/blob/5fc306543cd3ba2637e5cb0662cc375f36868b28/src/mongo/shell/dbshell.cpp#L624
if
(
!
__quiet
)
{
// mongo shell param, coming from https://github.com/mongodb/mongo/blob/5fc306543cd3ba2637e5cb0662cc375f36868b28/src/mongo/shell/dbshell.cpp#L624
print
(
message
);
print
(
message
);
...
@@ -154,7 +156,7 @@ var interimResults = {}; //hold results here until converted to final format
...
@@ -154,7 +156,7 @@ var interimResults = {}; //hold results here until converted to final format
var
numDocuments
=
0
;
var
numDocuments
=
0
;
db
[
collection
].
find
(
query
).
sort
(
sort
).
limit
(
limit
).
forEach
(
function
(
obj
)
{
db
[
collection
].
find
(
query
).
sort
(
sort
).
limit
(
limit
).
forEach
(
function
(
obj
)
{
//printjson(obj)
//printjson(obj)
flattened
=
serializeDoc
(
obj
,
maxDepth
);
var
flattened
=
serializeDoc
(
obj
,
maxDepth
);
//printjson(flattened)
//printjson(flattened)
for
(
var
key
in
flattened
){
for
(
var
key
in
flattened
){
var
value
=
flattened
[
key
];
var
value
=
flattened
[
key
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment