Socket
Socket
Sign inDemoInstall

appetizer

Package Overview
Dependencies
60
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 0.0.2
- [#2] Transform all values to actual strings when we are doing a multi-part
request to the servers.
## 0.0.1

@@ -2,0 +7,0 @@

12

index.js

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

if (this.type(obj[key]) !== 'object' || key === 'file') {
memo[key] = obj[key];
let value = obj[key];
if (typeof value !== 'object') value = value.toString();
memo[key] = value;
return memo;

@@ -50,3 +54,7 @@ }

Object.keys(obj[key]).forEach((name) => {
memo[key + '.' + name] = obj[key][name];
let value = obj[key][name];
if (typeof value !== 'object') value = value.toString();
memo[key + '.' + name] = value;
});

@@ -53,0 +61,0 @@

2

package.json
{
"name": "appetizer",
"version": "0.0.1",
"version": "0.0.2",
"description": "API client for appetize.io",

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

@@ -13,2 +13,15 @@ # Appetizer

## Part of the Appetizer suite
This module is part of a larger suite of components that work excellent with each
other. If you liked this module we highly suggest checking out:
- [appetizer][api] A Node.js component for interacting with the Appetize.io API.
- [appetizer-bundle][bundle] Prepares and packs your React-Native application for uploading to Appetize.io.
- [appetizer-component][component] A React Component to embed your uploaded application.
[api]: https://github.com/godaddy/appetizer
[bundle]: https://github.com/godaddy/appetizer-bundle
[component]: https://github.com/godaddy/appetizer-component
## API

@@ -15,0 +28,0 @@

@@ -71,2 +71,11 @@ 'use strict';

it('transforms values to string', function () {
const flat = app.flatten({
foo: 100,
bar: true
});
assume(flat).deep.equals({ foo: '100', bar: 'true' });
});
it('changes deep stucture to dot notated keys', function () {

@@ -73,0 +82,0 @@ const flat = app.flatten({

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc