New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

confetti

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confetti - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "confetti",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Node wrapper for the Confetti API.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -8,8 +8,2 @@ const dotenv = require('dotenv')

const request = {
get(path) {},
post(path) {},
delete(path) {}
}
class Confetti {

@@ -16,0 +10,0 @@ constructor(settings = {}) {

module.exports = {
id: 1,
name: 'My event',
type: 'event'
name: 'My first event',
startDate: '2020-09-19T16:00:00.000Z',
timeZone: 'Europe/Berlin',
slug: 'green-summer-18717b',
status: 'open',
featureLevel: 'business',
signupType: 'rsvp',
publishedAt: '2018-10-11T13:06:16.432Z',
website: 'http://jonny-action.confetti.test/my-first-event',
email: 'jonny.stromberg@gmail.com',
rsvpLimit: 100,
rsvpLeft: 85,
waitlisted: 0,
hasPassed: false,
createdAt: '2018-10-11T13:06:16.432Z',
updatedAt: '2020-03-09T20:19:40.956Z',
summary: 'Write a three sentence pitch for your event here.',
timeFormat: '24',
locale: 'en',
primaryColor: '#00DB7D',
colors: {},
waitlist: true,
location: { url: 'http://www.google.com/maps?q=undefined' },
id: '16500',
type: 'event',
images: null,
meta: { webhookType: 'event.updated' }
}
module.exports = {
data: {
id: 1,
id: '16500',
type: 'event',
attributes: {
name: 'My event'
name: 'My first event',
startDate: '2020-09-19T16:00:00.000Z',
timeZone: 'Europe/Berlin',
slug: 'green-summer-18717b',
status: 'open',
featureLevel: 'business',
signupType: 'rsvp',
publishedAt: '2018-10-11T13:06:16.432Z',
website: 'http://jonny-action.confetti.test/my-first-event',
email: 'jonny.stromberg@gmail.com',
rsvpLimit: 100,
rsvpLeft: 85,
waitlisted: 0,
hasPassed: false,
createdAt: '2018-10-11T13:06:16.432Z',
updatedAt: '2020-03-09T20:19:40.956Z',
summary: 'Write a three sentence pitch for your event here.',
timeFormat: '24',
locale: 'en',
primaryColor: '#00DB7D',
colors: {},
waitlist: true,
location: {
url: 'http://www.google.com/maps?q=undefined'
}
},
relationships: {
images: {
data: null
}
}
},
meta: {
webhookType: 'event.updated'
}
}

@@ -6,3 +6,9 @@ module.exports = function() {

const rawMultiple = { data: [raw.data, raw.data] }
const formattedMultiple = [formatted, formatted]
const formattedMultiple = [
JSON.parse(JSON.stringify(formatted)),
JSON.parse(JSON.stringify(formatted))
]
delete formattedMultiple[0].meta
delete formattedMultiple[1].meta
return {

@@ -9,0 +15,0 @@ single: {

module.exports = {
id: 1,
name: 'My event',
type: 'event'
name: 'Foo Bar',
email: 'foo@bar.com',
company: 'The Company',
amount: 13,
vat: 3,
vatPercentage: 30,
token: '2447b4acef764836169b53c4',
currency: 'SEK',
status: 'paid',
paidAt: '2020-03-09T20:05:10.000Z',
commission: '5.65',
commissionVat: '1.13',
customer: { other: 'Extra information' },
id: '288298',
type: 'payment',
meta: { webhookType: 'payment.paid' }
}
module.exports = {
data: {
id: 1,
type: 'event',
id: '288298',
type: 'payment',
attributes: {
name: 'My event'
name: 'Foo Bar',
email: 'foo@bar.com',
company: 'The Company',
amount: 13,
vat: 3,
vatPercentage: 30,
token: '2447b4acef764836169b53c4',
currency: 'SEK',
status: 'paid',
paidAt: '2020-03-09T20:05:10.000Z',
commission: '5.65',
commissionVat: '1.13',
customer: {
other: 'Extra information'
}
}
},
meta: {
webhookType: 'payment.paid'
}
}
module.exports = {
id: 1,
name: 'My event',
type: 'event'
persons: 1,
hashid: 'g265xg',
description: 'My cool batch',
price: 10,
currency: 'SEK',
name: 'Foo Bar',
email: 'foo@bar.com',
token: 'd92614282978451b7942fffda421df47740c',
status: 'attending',
emailStatus: 'subscribed',
checkinAt: null,
waitlistAt: null,
startDate: '2021-06-18T16:00:00.000Z',
endDate: null,
values: { 'field-one-field': 'Veg', 'field-what-do-you-think': ['Yes'] },
comment: null,
guests: 0,
termsAcceptedAt: '2020-03-09T19:53:30.304Z',
deletionRequestedAt: null,
createdAt: '2020-03-09T19:51:32.274Z',
updatedAt: '2020-03-09T19:53:30.354Z',
ticketBatchId: 16090,
paymentId: 288297,
eventId: 16969,
contactId: 112395,
id: '3344691',
type: 'ticket',
meta: { webhookType: 'ticket.attending' }
}
module.exports = {
data: {
id: 1,
type: 'event',
id: '3344691',
type: 'ticket',
attributes: {
name: 'My event'
persons: 1,
hashid: 'g265xg',
description: 'My cool batch',
price: 10,
currency: 'SEK',
name: 'Foo Bar',
email: 'foo@bar.com',
token: 'd92614282978451b7942fffda421df47740c',
status: 'attending',
emailStatus: 'subscribed',
checkinAt: null,
waitlistAt: null,
startDate: '2021-06-18T16:00:00.000Z',
endDate: null,
values: {
'field-one-field': 'Veg',
'field-what-do-you-think': ['Yes']
},
comment: null,
guests: 0,
termsAcceptedAt: '2020-03-09T19:53:30.304Z',
deletionRequestedAt: null,
createdAt: '2020-03-09T19:51:32.274Z',
updatedAt: '2020-03-09T19:53:30.354Z',
ticketBatchId: 16090,
paymentId: 288297,
eventId: 16969,
contactId: 112395
}
},
meta: {
webhookType: 'ticket.attending'
}
}
module.exports = {
id: 1,
name: 'My event',
type: 'event'
type: 'ticket.attending',
url: 'http://foo.com/bar',
provider: null,
status: 'active',
createdAt: '2020-02-29T15:12:12.435Z',
updatedAt: '2020-02-29T15:12:12.435Z',
id: '1'
}
module.exports = {
data: {
id: 1,
type: 'event',
id: '1',
type: 'webhook',
attributes: {
name: 'My event'
type: 'ticket.attending',
url: 'http://foo.com/bar',
provider: null,
status: 'active',
createdAt: '2020-02-29T15:12:12.435Z',
updatedAt: '2020-02-29T15:12:12.435Z'
}
}
}

@@ -14,3 +14,2 @@ const Confetti = require('../../src')

const confetti = new Confetti({ key: 'my-key', fetch })
const data = await confetti.events.find(1)

@@ -24,3 +23,2 @@ expect(data).to.deep.equal(Confetti.models.event.sample.single.formatted)

const confetti = new Confetti({ key: 'my-key', fetch })
const data = await confetti.events.findAll()

@@ -27,0 +25,0 @@ expect(data).to.deep.equal(

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc