Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fullcontact
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
prospector
fullcontact
Commits
780efd9b
Commit
780efd9b
authored
May 14, 2013
by
3rd-Eden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[minor] Add the optional `includeZeroPopulation` query param to the requests
[minor] Renamed to argument to something `smaller` and casted it to a boolean
parent
17ac5d7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
location.js
endpoints/location.js
+2
-2
index.js
index.js
+1
-0
No files found.
endpoints/location.js
View file @
780efd9b
...
...
@@ -25,7 +25,7 @@ function Location(api) {
* @api public
*/
Location
.
prototype
.
normalize
=
function
normalize
()
{
var
args
=
this
.
api
.
args
(
arguments
,
'
includeZeroP
opulation'
,
'casing'
);
var
args
=
this
.
api
.
args
(
arguments
,
'
p
opulation'
,
'casing'
);
//
// Add a custom endpoint.
...
...
@@ -47,7 +47,7 @@ Location.prototype.normalize = function normalize() {
* @api public
*/
Location
.
prototype
.
enrich
=
function
enrichment
()
{
var
args
=
this
.
api
.
args
(
arguments
,
'
includeZeroP
opulation'
,
'casing'
);
var
args
=
this
.
api
.
args
(
arguments
,
'
p
opulation'
,
'casing'
);
//
// Add a custom endpoint.
...
...
index.js
View file @
780efd9b
...
...
@@ -42,6 +42,7 @@ FullContact.prototype.process = function req(api, query, args) {
//
if
(
args
.
queue
)
query
.
queue
=
args
.
queue
;
if
(
args
.
casing
)
query
.
casing
=
args
.
casing
;
if
(
args
.
population
)
query
.
includeZeroPopulation
=
!!
args
.
population
;
//
// The packet that is send to the server or queued when we are in queuing
...
...
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