update to ES6
This commit is contained in:
parent
5ae04ce5c2
commit
5fd3a63822
168
dist/dockersock.classes.dockersock.js
vendored
168
dist/dockersock.classes.dockersock.js
vendored
File diff suppressed because one or more lines are too long
@ -28,14 +28,12 @@
|
||||
},
|
||||
"homepage": "https://gitlab.com/pushrocks/dockersock#README",
|
||||
"dependencies": {
|
||||
"@types/es6-promise": "*",
|
||||
"@types/q": "*",
|
||||
"beautylog": "^5.0.12",
|
||||
"es6-promise": "^3.2.1",
|
||||
"beautylog": "^5.0.14",
|
||||
"q": "^1.4.1",
|
||||
"request": "^2.72.0",
|
||||
"request": "^2.73.0",
|
||||
"rxjs": "^5.0.0-beta.10",
|
||||
"typings-global": "^1.0.3"
|
||||
"typings-global": "^1.0.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"npmts-g": "^5.2.6",
|
||||
|
12
test/test.js
12
test/test.js
@ -1,17 +1,17 @@
|
||||
"use strict";
|
||||
require("typings-test");
|
||||
require("should");
|
||||
var index_1 = require("../dist/index");
|
||||
const index_1 = require("../dist/index");
|
||||
describe("dockersock", function () {
|
||||
describe(".Dockersock()", function () {
|
||||
var testDockersock;
|
||||
let testDockersock;
|
||||
it("should create a new Dockersock instance", function () {
|
||||
testDockersock = new index_1.Dockersock();
|
||||
testDockersock.should.be.instanceof(index_1.Dockersock);
|
||||
});
|
||||
it("should list containers", function (done) {
|
||||
testDockersock.listContainers()
|
||||
.then(function (dataArg) {
|
||||
.then((dataArg) => {
|
||||
console.log(dataArg);
|
||||
done();
|
||||
});
|
||||
@ -19,7 +19,7 @@ describe("dockersock", function () {
|
||||
it("should list detailed containers", function (done) {
|
||||
this.timeout(5000);
|
||||
testDockersock.listContainersDetailed()
|
||||
.then(function (dataArg) {
|
||||
.then((dataArg) => {
|
||||
console.log(dataArg);
|
||||
done();
|
||||
});
|
||||
@ -27,10 +27,10 @@ describe("dockersock", function () {
|
||||
it("should pull an image from imagetag", function (done) {
|
||||
this.timeout(60000);
|
||||
testDockersock.pullImage("hosttoday%2Fht-docker-dbase")
|
||||
.then(function (dataArg) {
|
||||
.then((dataArg) => {
|
||||
done();
|
||||
}, done);
|
||||
});
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FBYyxDQUFDLENBQUE7QUFDdEIsUUFBTyxRQUFRLENBQUMsQ0FBQTtBQUVoQixzQkFBeUIsZUFFekIsQ0FBQyxDQUZ1QztBQUV4QyxRQUFRLENBQUMsWUFBWSxFQUFDO0lBQ2xCLFFBQVEsQ0FBQyxlQUFlLEVBQUM7UUFDckIsSUFBSSxjQUF5QixDQUFDO1FBQzlCLEVBQUUsQ0FBQyx5Q0FBeUMsRUFBQztZQUN6QyxjQUFjLEdBQUcsSUFBSSxrQkFBVSxFQUFFLENBQUM7WUFDbEMsY0FBYyxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsVUFBVSxDQUFDLGtCQUFVLENBQUMsQ0FBQztRQUNwRCxDQUFDLENBQUMsQ0FBQztRQUNILEVBQUUsQ0FBQyx3QkFBd0IsRUFBQyxVQUFTLElBQUk7WUFDckMsY0FBYyxDQUFDLGNBQWMsRUFBRTtpQkFDMUIsSUFBSSxDQUFDLFVBQUMsT0FBTztnQkFDVixPQUFPLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDO2dCQUNyQixJQUFJLEVBQUUsQ0FBQztZQUNYLENBQUMsQ0FBQyxDQUFDO1FBQ1gsQ0FBQyxDQUFDLENBQUM7UUFDSCxFQUFFLENBQUMsaUNBQWlDLEVBQUMsVUFBUyxJQUFJO1lBQzlDLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDbkIsY0FBYyxDQUFDLHNCQUFzQixFQUFFO2lCQ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