Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
a.meta.fields;
b.name;
}
}): PapaParse$ParseResult);
var flat: Array = [{a: 1, b: 1, c: 1}];
(Papa.unparse(flat): string);
var nested: Array> = [[1, 2, 3], [4, 5, 6]];
(Papa.unparse(nested): string);
var explicit: PapaParse$UnparseObject = {
fields: ['One', 'Two'],
data: '1,2',
};
(Papa.unparse(explicit): string);
var explicitAnyData: PapaParse$UnparseObject = {
fields: ['One', 'Two'],
data: [1, 2]
};
(Papa.unparse(explicitAnyData): string);
// $ExpectError
var explicitInvalidData: PapaParse$UnparseObject = {
fields: ['One', 'Two'],
data: 1
};
(Papa.unparse(explicitInvalidData): string);
// $ExpectError
var explicitInvalidFields: PapaParse$UnparseObject = {
};
(Papa.unparse(explicitAnyData): string);
// $ExpectError
var explicitInvalidData: PapaParse$UnparseObject = {
fields: ['One', 'Two'],
data: 1
};
(Papa.unparse(explicitInvalidData): string);
// $ExpectError
var explicitInvalidFields: PapaParse$UnparseObject = {
fields: 'One,Two',
data: '1,2'
};
(Papa.unparse(explicitInvalidFields): string);
Papa.unparse({
fields: ["3"],
data: ["3"]
});
Papa.unparse({
fields: ["3"],
data: ["3"]
}, {
quotes: true
});
Papa.SCRIPT_PATH;
Papa.LocalChunkSize;
data: '1,2',
};
(Papa.unparse(explicit): string);
var explicitAnyData: PapaParse$UnparseObject = {
fields: ['One', 'Two'],
data: [1, 2]
};
(Papa.unparse(explicitAnyData): string);
// $ExpectError
var explicitInvalidData: PapaParse$UnparseObject = {
fields: ['One', 'Two'],
data: 1
};
(Papa.unparse(explicitInvalidData): string);
// $ExpectError
var explicitInvalidFields: PapaParse$UnparseObject = {
fields: 'One,Two',
data: '1,2'
};
(Papa.unparse(explicitInvalidFields): string);
Papa.unparse({
fields: ["3"],
data: ["3"]
});
Papa.unparse({
fields: ["3"],
data: ["3"]
// Move file because of UTF8 issues with Jekyll
var fileToMove = './dist/_data/users.json'
var filePath = './dist/js/data/users.json'
if (fs.existsSync(fileToMove)) {
fs.removeSync(filePath)
fs.moveSync(fileToMove, filePath)
}
var users = fs.readJsonSync(filePath)
// Shuffle the users
users = utils.shuffleArray(users)
// Save to CSV
fs.outputFileSync('./dist/_data/users.csv', Papa.unparse(users))
console.log('Finished processing ' + users.length + ' users.')
}
try {
const res = await r
.table("message")
.eqJoin("assignment_id", r.table("assignment"))
.zip()
.filter({ campaign_id: process.env.CAMPAIGN_ID });
const finalResults = res.map(row => ({
assignment_id: row.assignment_id,
campaign_id: row.campaign_id,
contact_number: row.contact_number,
user_number: row.user_number,
is_from_contact: row.is_from_contact,
send_status: row.send_status,
text: row.text
}));
const csvResults = Papa.unparse(finalResults);
console.log(csvResults);
} catch (ex) {
console.log(ex);
}
})();
key = data.rows.pop().owner;
data.rows.map(async function(v) {
let formatted = {
"name": v.owner,
};
accounts.push(formatted);
});
}
console.log("Have downloaded " + accounts.length + " accounts\r");
console.log("Making unique");
try {
let unique = [...new Set(accounts)];
console.log("Saving names");
var csv = Papa.unparse(unique,{header:false});
fs.appendFile(__dirname + '/' + names, '\n'+csv, (err) => {
if (err) throw err;
});
console.log("Have saved " + unique.length + " accounts\r");
} catch(e) {
console.log(e);
}
}
secondary
target="_blank"
style={{ margin: '5px' }}
label={strings.explorer_schema}
href="https://github.com/odota/core/blob/master/sql/create_tables.sql"
/>
<span style="{{">
{/*
*/}
field.name),
}))}`}
download="data.csv"
context={explorer}
/>
window.open(`${process.env.REACT_APP_API_HOST}/api/explorer?sql=${encodeURIComponent(getSqlString())}`, '_blank')}
context={explorer}</span>
for (let k = 0; k < metrics[j].bins.start.length; k++) {
output.push([
locations[i],
metrics[j].name,
'Bin',
metrics[j].unit,
metrics[j].bins.start[k],
metrics[j].bins.end[k],
data[metrics[j].offset[0] + k][locationOffsets[i] + metrics[j].offset[1]]
])
}
}
}
return Papa.unparse(output)
}
c.login.uris.forEach((u) => {
cipher.login_uri.push(u.uri);
});
}
break;
case CipherType.SecureNote:
cipher.type = 'note';
break;
default:
return;
}
exportCiphers.push(cipher);
});
const csv = papa.unparse(exportCiphers);
return csv;
}
row.ROF = stats.rof;
row.Reload = stats.reload;
row.Mag = stats.magazine;
row.Equip = stats.equipSpeed;
row['Charge Time'] = stats.chargetime;
if (item.isDestiny2()) {
row['Draw Time'] = stats.drawtime;
row.Accuracy = stats.accuracy;
}
row.Notes = getNotes(item, itemInfos);
addPerks(row, item, maxPerks);
return row;
});
downloadCsv('destinyWeapons', Papa.unparse(data));
}