Socket
Socket
Sign inDemoInstall

amatino

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.0.9

tests/alpha/transaction.js

4

index.js

@@ -9,4 +9,4 @@ /*

module.exports = {
AmatinoAlpha: require('source/amatino_alpha.js'),
Session: require('source/session.js')
AmatinoAlpha: require('./source/amatino_alpha.js'),
Session: require('./source/session.js')
}
{
"name": "amatino",
"version": "0.0.8",
"version": "0.0.9",
"description": "Javascript Node.js bindings library for the Amatino API - Double entry accounting as a service",

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

@@ -8,14 +8,16 @@ /*

const NO_SESSION_PATHS = ['sessions'];
const VALID_METHODS = ['GET', 'PUT', 'PATCH', 'DELETE', 'POST'];
const HTTPS = require('http');
const API_HOSTNAME = "api.amatino.io"
const USER_AGENT = 'Amatino Node.js Library';
const HEADER_SIGNATURE_KEY = 'X-Signature';
const HEADER_SESSION_KEY = 'X-Session-ID';
const TIMEOUT_MILLISECONDS = 1000;
const QUOTE_EXPRESSION = new RegExp(/(?<!")(\b\d+\b)(?!")/g);
class _ApiRequest {
const NO_SESSION_PATHS = ['sessions'];
const VALID_METHODS = ['GET', 'PUT', 'PATCH', 'DELETE', 'POST'];
const HTTPS = require('http');
const API_HOSTNAME = 'api.amatino.io'
const USER_AGENT = 'Amatino Node.js Library';
const HEADER_SIGNATURE_KEY = 'X-Signature';
const HEADER_SESSION_KEY = 'X-Session-ID';
const TIMEOUT_MILLISECONDS = 1000;
const QUOTE_EXPRESSION = new RegExp(
/(?<!")(?<!-)(?<!:)(?<!\.)(\b\d+\b)(?!")(?!:)(?!-)/g
); // https://regex101.com/r/qVQYA7/2
class _ApiRequest {
constructor(

@@ -110,3 +112,3 @@ session,

}
_buildHeaders(session, bodyData, path) {

@@ -133,4 +135,4 @@

}
module.exports = _ApiRequest
}
module.exports = _ApiRequest

@@ -8,9 +8,2 @@ /*

/*
* Amatino JS
* entity.js
*
* author: hugh@blinkybeach.com
*/
const Test = require('../test.js');

@@ -17,0 +10,0 @@ const AmatinoAlpha = require('../../source/amatino_alpha.js');

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

const TestAlphaCreateAccount = require('./alpha/account.js');
const TestAlphaCreateTransaction = require('./alpha/transaction.js');

@@ -16,3 +17,4 @@ const testSequence = [

new TestAlphaCreateEntity(),
new TestAlphaCreateAccount()
new TestAlphaCreateAccount(),
new TestAlphaCreateTransaction()
]

@@ -19,0 +21,0 @@

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