Skip to content

Commit

Permalink
Merge pull request #19 from ericcarraway/2021-09-26
Browse files Browse the repository at this point in the history
0.14.1
  • Loading branch information
ericcarraway authored Sep 27, 2021
2 parents 995e106 + ce43064 commit 0b34edd
Show file tree
Hide file tree
Showing 7 changed files with 2,733 additions and 4,224 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

**2021-09-27**

- Published `v0.14.1`
- See https://github.com/ericcarraway/soundslice-data-api/pull/19
- Bumped dependencies
- Removed Node.js 10 support
- Made minor refinements to TypeScript typings
- When running scripts in the examples directory:
- The path to `.env` is more clear
- When required credentials aren't found, log an error message

**2021-06-04**

- Published `v0.14.0`
Expand Down
22 changes: 21 additions & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
const path = require(`path`);

// load environment variables
require(`dotenv`).config({ path: `../.env` });
require(`dotenv`).config({
path: path.resolve(__dirname, `../.env`),
});

const { SOUNDSLICE_APPLICATION_ID, SOUNDSLICE_PASSWORD } = process.env;

if (!SOUNDSLICE_APPLICATION_ID) {
console.error(
`@percuss.io/soundslice-data-api ERROR: configure SOUNDSLICE_APPLICATION_ID`,
);

process.exit(1);
}

if (!SOUNDSLICE_PASSWORD) {
console.error(
`@percuss.io/soundslice-data-api ERROR: configure SOUNDSLICE_PASSWORD`,
);

process.exit(1);
}

// instantiate the client
const apiClient = require(`../dist/index.js`).default({
SOUNDSLICE_APPLICATION_ID,
Expand Down
Loading

0 comments on commit 0b34edd

Please sign in to comment.