@sensebox/sketch-templater
Advanced tools
Comparing version 1.10.5 to 1.11.0
@@ -5,2 +5,8 @@ # node-sketch-templater Changelog | ||
## v1.11.0 | ||
- 🧹 Housekeeping (`dependebot`, `dependencies`) | ||
- 🐻 BearSSL library | ||
- ℹ️ Add senseBox metadata and version number to sketches | ||
- ⚙️ DPS310 library | ||
## v1.10.5 | ||
@@ -13,3 +19,3 @@ - Fix LTR | ||
## v1.10.2 | ||
- Power UART in setup | ||
- Power UART in setup | ||
@@ -16,0 +22,0 @@ ## v1.10.1 |
{ | ||
"name": "@sensebox/sketch-templater", | ||
"version": "1.10.5", | ||
"version": "1.11.0", | ||
"description": "nodejs library to create senseBox Arduino Sketches", | ||
@@ -8,2 +8,6 @@ "main": "src/index.js", | ||
"author": "Gerald Pape <ubergesundheit@googlemail.com>", | ||
"engines": { | ||
"node": ">=16", | ||
"npm": ">=8" | ||
}, | ||
"contributors": [ | ||
@@ -22,7 +26,7 @@ "Jan Wirwahn", | ||
"chai": "^4.1.0", | ||
"eslint": "^4.3.0", | ||
"eslint": "^8.10.0", | ||
"eslint-config-prettier": "^2.3.0", | ||
"eslint-plugin-prettier": "^2.1.2", | ||
"mocha": "^5.2.0", | ||
"prettier": "^1.5.3" | ||
"prettier": "^2.5.1" | ||
}, | ||
@@ -29,0 +33,0 @@ "dependencies": { |
# senseBox sketch-templater | ||
Arduino sketch templates used by the openSenseMap-api | ||
[![Build Status](https://travis-ci.org/sensebox/node-sketch-templater.svg?branch=master)](https://travis-ci.org/sensebox/node-sketch-templater) | ||
[![NPM Version](https://img.shields.io/npm/v/@sensebox/sketch-templater.svg)](https://www.npmjs.com/package/@sensebox/sketch-templater) | ||
## Versioning | ||
The version of templates should always match the corresponding Version of the [Board Support Package](https://github.com/sensebox/senseBoxMCU-core) | ||
## Changelog | ||
@@ -12,3 +15,2 @@ | ||
#### Releasing a new version | ||
On each commit, [Travis CI](https://travis-ci.org/sensebox/node-sketch-templater) builds and tests the package with this [`.travis.yml`](.travis.yml). If the commit has a Git tag, a new version of the package will be published to npm through travis. | ||
@@ -19,3 +21,3 @@ To create a new version, use `npm version`. | ||
1. Type in the new version (to create a `beta` release include the word `beta` in the new version) | ||
1. `git push --tags origin master` | ||
1. `git push --tags origin main` | ||
@@ -106,2 +108,2 @@ ## Usage | ||
[MIT 2017 Matthias Pfeil, Jan Wirwahn, Gerald Pape](LICENSE) | ||
[MIT 2022 Matthias Pfeil, Jan Wirwahn, Gerald Pape](LICENSE) |
@@ -48,8 +48,9 @@ 'use strict'; | ||
box.sensors = box.sensors.map(s => { | ||
if(s.title === "CO₂") { | ||
s.title = "CO2" | ||
if (s.title === 'CO₂') { | ||
s.title = 'CO2'; | ||
} | ||
return s | ||
}) | ||
return s; | ||
}); | ||
if (encoding && encoding === 'base64') { | ||
@@ -67,2 +68,3 @@ return Buffer.from(this._executeTemplate(box)).toString('base64'); | ||
_id, | ||
name, | ||
sensors, | ||
@@ -85,2 +87,3 @@ serialPort, | ||
SENSEBOX_ID: _id, | ||
SENSEBOX_NAME: name, | ||
SENSOR_IDS: sensors, | ||
@@ -87,0 +90,0 @@ INGRESS_DOMAIN: config.get('sketch-templater.ingress_domain'), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147386
107
265