Socket
Socket
Sign inDemoInstall

campaign

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

campaign - npm Package Compare versions

Comparing version 1.2.9 to 1.3.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.3.0 Touching Base
- Alternative way to provide image paths using `base64` values
# 1.2.8 Scoped Terminal

@@ -2,0 +6,0 @@

4

package.json

@@ -14,3 +14,3 @@ {

},
"version": "1.2.9",
"version": "1.3.0",
"licenses": "MIT",

@@ -37,4 +37,4 @@ "keywords": [

"mustache": "~0.8.0",
"ultramarked": "^1.0.2"
"ultramarked": "^1.3.1"
}
}

@@ -175,2 +175,10 @@ ![campaign.png][9] ![ga](https://ga-beacon.appspot.com/UA-35043128-6/campaign/readme?pixel)

Instead of a `file` you can provide a `data` value with the base64 encoded data, and avoid the overhead of creating a temporary file. If you choose this approach you must set the `mime` property as well.
```js
[
{ name: 'housing', mime: 'image/png', data: buff.toString('base64') }
]
```
### `social`

@@ -177,0 +185,0 @@

@@ -29,2 +29,5 @@ 'use strict';

function encoder (image, transformed) {
if (image.data && image.mime) {
transformed(null, image); return;
}
encode(image.file, function (err, encoded) {

@@ -31,0 +34,0 @@ if (err) { return transformed(err); }

@@ -101,2 +101,5 @@ 'use strict';

function reallyReallySend (apiModel, next) {
var cpy = JSON.parse(JSON.stringify(apiModel,null,2))
cpy.images = cpy.images.map(function (i){i.content=i.content.slice(0,30); return i;});
console.log(JSON.stringify(cpy,null,2));
client.messages.send(apiModel, function (response) {

@@ -103,0 +106,0 @@ next(null, response);

@@ -7,3 +7,3 @@ 'use strict';

});
var template = '<p>Your password reset key is: {{reset}}</p>';
var template = '<p>Your <i>password reset key</i> is: <b>{{reset}}</b></p>';
var model = {

@@ -10,0 +10,0 @@ to: 'someone@important.com',

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