Comparing version 0.4.0 to 0.4.1
@@ -48,3 +48,3 @@ type GetOptions = { | ||
data: Contact[]; | ||
meta?: ListMeta; | ||
meta: ListMeta; | ||
}>; | ||
@@ -163,3 +163,3 @@ get(id: string): Promise<Contact>; | ||
data: List[]; | ||
meta?: ListMeta; | ||
meta: ListMeta; | ||
}>; | ||
@@ -166,0 +166,0 @@ get(id: string): Promise<List>; |
@@ -63,3 +63,3 @@ "use strict"; | ||
// package.json | ||
var version = "0.4.0"; | ||
var version = "0.4.1"; | ||
@@ -73,6 +73,6 @@ // src/contacts/contacts.ts | ||
return __async(this, null, function* () { | ||
const data = yield this.doublezero.get("/contacts"); | ||
return { | ||
data | ||
}; | ||
const data = yield this.doublezero.get( | ||
"/contacts" | ||
); | ||
return data; | ||
}); | ||
@@ -82,4 +82,6 @@ } | ||
return __async(this, null, function* () { | ||
const data = yield this.doublezero.get(`/contacts/${id}`); | ||
return data; | ||
const data = yield this.doublezero.get( | ||
`/contacts/${id}` | ||
); | ||
return data.data; | ||
}); | ||
@@ -93,3 +95,3 @@ } | ||
); | ||
return data; | ||
return data.data; | ||
}); | ||
@@ -111,4 +113,7 @@ } | ||
return __async(this, null, function* () { | ||
const data = yield this.doublezero.post("/emails", params); | ||
return data; | ||
const data = yield this.doublezero.post( | ||
"/emails", | ||
params | ||
); | ||
return data.data; | ||
}); | ||
@@ -122,3 +127,3 @@ } | ||
); | ||
return data; | ||
return data.data; | ||
}); | ||
@@ -157,6 +162,6 @@ } | ||
return __async(this, null, function* () { | ||
const data = yield this.doublezero.get("/lists"); | ||
return { | ||
data | ||
}; | ||
const data = yield this.doublezero.get( | ||
"/lists" | ||
); | ||
return data; | ||
}); | ||
@@ -167,3 +172,3 @@ } | ||
const data = yield this.doublezero.get(`/lists/${id}`); | ||
return data; | ||
return data.data; | ||
}); | ||
@@ -173,4 +178,7 @@ } | ||
return __async(this, null, function* () { | ||
const data = yield this.doublezero.patch(`/lists/${id}`, params); | ||
return data; | ||
const data = yield this.doublezero.patch( | ||
`/lists/${id}`, | ||
params | ||
); | ||
return data.data; | ||
}); | ||
@@ -189,3 +197,3 @@ } | ||
); | ||
return data; | ||
return data.data; | ||
}); | ||
@@ -234,3 +242,3 @@ } | ||
} | ||
const data = (yield response.json()).data; | ||
const data = yield response.json(); | ||
if (data.error) { | ||
@@ -237,0 +245,0 @@ throw new DoubleZeroError(data.error); |
{ | ||
"name": "00-js", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Node.js library for interacting with the 00 API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27333
737