First development of the deploy action (#6)
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled

Deploy js code to an instance of screeps.
Some debugging tools are implemented.

Reviewed-on: #6
Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
2023-11-26 18:31:49 +01:00
committed by Philipp Horstenkamp
parent 0858cc69be
commit 6f5729c12a
1039 changed files with 228399 additions and 0 deletions

9
node_modules/to-buffer/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,9 @@
sudo: false
language: node_js
node_js:
- "5"
- "4"
- "0.12"
- "0.10"

21
node_modules/to-buffer/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Mathias Buus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

23
node_modules/to-buffer/README.md generated vendored Normal file
View File

@ -0,0 +1,23 @@
# to-buffer
Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back.
```
npm install to-buffer
```
[![build status](https://travis-ci.org/mafintosh/to-buffer.svg?branch=master)](https://travis-ci.org/mafintosh/to-buffer)
## Usage
``` js
var toBuffer = require('to-buffer')
console.log(toBuffer('hi')) // <Buffer 68 69>
console.log(toBuffer(Buffer('hi'))) // <Buffer 68 69>
console.log(toBuffer('6869', 'hex')) // <Buffer 68 69>
console.log(toBuffer(43)) // throws
```
## License
MIT

14
node_modules/to-buffer/index.js generated vendored Normal file
View File

@ -0,0 +1,14 @@
module.exports = toBuffer
var makeBuffer = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from : bufferFrom
function bufferFrom (buf, enc) {
return new Buffer(buf, enc)
}
function toBuffer (buf, enc) {
if (Buffer.isBuffer(buf)) return buf
if (typeof buf === 'string') return makeBuffer(buf, enc)
if (Array.isArray(buf)) return makeBuffer(buf)
throw new Error('Input should be a buffer or a string')
}

24
node_modules/to-buffer/package.json generated vendored Normal file
View File

@ -0,0 +1,24 @@
{
"name": "to-buffer",
"version": "1.1.1",
"description": "Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"standard": "^6.0.5",
"tape": "^4.4.0"
},
"scripts": {
"test": "standard && tape test.js"
},
"repository": {
"type": "git",
"url": "https://github.com/mafintosh/to-buffer.git"
},
"author": "Mathias Buus (@mafintosh)",
"license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/to-buffer/issues"
},
"homepage": "https://github.com/mafintosh/to-buffer"
}

26
node_modules/to-buffer/test.js generated vendored Normal file
View File

@ -0,0 +1,26 @@
var tape = require('tape')
var toBuffer = require('./')
tape('buffer returns buffer', function (t) {
t.same(toBuffer(Buffer('hi')), Buffer('hi'))
t.end()
})
tape('string returns buffer', function (t) {
t.same(toBuffer('hi'), Buffer('hi'))
t.end()
})
tape('string + enc returns buffer', function (t) {
t.same(toBuffer('6869', 'hex'), Buffer('hi'))
t.end()
})
tape('other input throws', function (t) {
try {
toBuffer(42)
} catch (err) {
t.same(err.message, 'Input should be a buffer or a string')
t.end()
}
})