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

node-iterable-api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-iterable-api - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

lib/resources/subscriptions.js

6

CHANGELOG.md
# Iterable API Change Log
## v1.1.0
- Updated dependencies
- Add /subscriptions endpoint
- Add /users/bulkUpdateSubscriptions endpoint
## v1.0.4

@@ -3,0 +9,0 @@ - Update axios for security fix

@@ -76,2 +76,6 @@

{
name: 'bulkUpdateSubscriptions',
method: 'post'
},
{
name: 'getFields',

@@ -198,3 +202,14 @@ method: 'get'

]
},
{
resource: 'subscriptions',
methods: ['put'],
subResources: [
{
resource: 'user',
urlPrefix: '/subscriptions/{subscriptionGroup}/{subscriptionGroupId}',
methods: ['patch', 'delete']
}
]
}
]

1

lib/iterable.js

@@ -56,2 +56,3 @@

sms: require('./resources/sms')(request),
subscriptions: require('./resources/subscriptions')(request),
users: require('./resources/users')(request),

@@ -58,0 +59,0 @@ webPush: require('./resources/webPush')(request),

@@ -10,2 +10,3 @@ /**

POST - /users/updateSubscriptions
POST - /users/bulkUpdateSubscriptions
POST - /users/registerBrowserToken

@@ -96,2 +97,6 @@ GET - /users/byUserId

bulkUpdateSubscriptions (data) {
return request.post(`${BASE}/bulkUpdateSubscriptions`, data)
},
registerBrowserToken ({ browserToken, email, userId }) {

@@ -98,0 +103,0 @@ return request.post(`${BASE}/registerBrowserToken`, { browserToken, email, userId })

11

package.json
{
"name": "node-iterable-api",
"version": "1.0.4",
"version": "1.1.0",
"description": "Wrapper for Iterable API",
"main": "index.js",
"scripts": {
"test": "standard && ITERABLE_API_KEY=fake-key jest --coverage test/",
"tdd": "ITERABLE_API_KEY=fake-key jest --watch test/",
"test": "standard && cross-env ITERABLE_API_KEY=fake-key jest --coverage test/",
"tdd": "cross-env ITERABLE_API_KEY=fake-key jest --watch test/",
"coveralls": "cat ./coverage/lcov.info | coveralls"

@@ -29,7 +29,8 @@ },

"dependencies": {
"axios": "^0.21.4"
"axios": "^0.21.4",
"debug": "^4.3.1"
},
"devDependencies": {
"coveralls": "^3.1.0",
"debug": "^4.3.1",
"cross-env": "^7.0.3",
"jest": "^27.1.1",

@@ -36,0 +37,0 @@ "standard": "^16.0.3"

# Node Iterable API
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Build Status](https://travis-ci.org/geoffdutton/iterable-api.svg?branch=master)](https://travis-ci.org/geoffdutton/iterable-api)
[![Node CI](https://github.com/geoffdutton/iterable-api/actions/workflows/nodejs.yml/badge.svg)](https://github.com/geoffdutton/iterable-api/actions/workflows/nodejs.yml)
[![Coverage Status](https://coveralls.io/repos/github/geoffdutton/iterable-api/badge.svg?branch=master)](https://coveralls.io/github/geoffdutton/iterable-api?branch=master)

@@ -91,2 +91,3 @@ [![npm version](https://badge.fury.io/js/node-iterable-api.svg)](https://badge.fury.io/js/node-iterable-api)

POST - /users/updateSubscriptions
POST - /users/bulkUpdateSubscriptions
GET - /users/getFields

@@ -130,2 +131,7 @@ GET - /users/getSentMessages

DELETE - /catalogs/{catalogName}/items
subscriptions
PUT - /subscriptions
subscriptions.user
PATCH - /subscriptions/{subscriptionGroup}/{subscriptionGroupId}/user
DELETE - /subscriptions/{subscriptionGroup}/{subscriptionGroupId}/user
```

@@ -152,1 +158,2 @@

- [julianmclain](https://github.com/julianmclain)
- [dpolivy](https://github.com/dpolivy)
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