Skip to content

Commit f66addf

Browse files
committed
dump dependencies
1 parent 060518f commit f66addf

File tree

4 files changed

+32
-31
lines changed

4 files changed

+32
-31
lines changed

.eslintignore

-3
This file was deleted.

.npmignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
src
21
.babelrc
3-
.eslintrc
4-
.eslintignore
2+
.editorconfig
3+
.eslintrc.json
4+
.gitignore
5+
.npmignore
56
webpack.config.js
6-
tsconfig.json
7-
ts
87
.vscode

package.json

+23-21
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "Calendar and events for NodeBB",
55
"main": "library.js",
66
"scripts": {
7+
"lint": "eslint ./src/",
78
"test": "npm run lint && babel-node ./src/lib/tests",
89
"babel": "babel src/lib --out-dir build/lib --source-maps",
910
"build": "npm run babel && webpack --progress --mode=development && node ../nodebb/nodebb build -d",
1011
"build-production": "npm run babel && webpack --progress --mode=production",
11-
"release": "npm run test && npm run build-production && npm version prerelease && npm publish",
12-
"lint": "eslint ./src/"
12+
"prepublishOnly": "rm -r ./build && npm run build-production && npm test"
1313
},
1414
"repository": {
1515
"type": "git",
@@ -29,31 +29,33 @@
2929
},
3030
"homepage": "https://github.com/pitaj/nodebb-plugin-calendar#readme",
3131
"devDependencies": {
32-
"@babel/cli": "^7.5.5",
33-
"@babel/core": "^7.5.5",
34-
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
35-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
36-
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
37-
"babel-eslint": "^10.0.3",
38-
"babel-loader": "^8.0.6",
39-
"chalk": "^2.4.2",
32+
"@babel/cli": "^7.8.4",
33+
"@babel/core": "^7.9.6",
34+
"@babel/node": "^7.8.7",
35+
"@babel/parser": "^7.7.5",
36+
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
37+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
38+
"@babel/plugin-transform-modules-commonjs": "^7.9.6",
39+
"babel-eslint": "^10.1.0",
40+
"babel-loader": "^8.1.0",
41+
"chalk": "^4.0.0",
4042
"del": "^5.1.0",
41-
"eslint": "^6.3.0",
42-
"eslint-config-airbnb-base": "^14.0.0",
43+
"eslint": "^7.1.0",
44+
"eslint-config-airbnb-base": "^14.1.0",
4345
"eslint-plugin-babel": "^5.3.0",
44-
"eslint-plugin-import": "^2.18.2",
45-
"terser-webpack-plugin": "^1.4.1",
46-
"webpack": "^4.39.3",
47-
"webpack-cli": "^3.3.7"
46+
"eslint-plugin-import": "^2.20.2",
47+
"terser-webpack-plugin": "^3.0.1",
48+
"webpack": "^4.43.0",
49+
"webpack-cli": "^3.3.11"
4850
},
4951
"dependencies": {
5052
"eonasdan-bootstrap-datetimepicker": "^4.17.47",
51-
"fullcalendar": "^3.10.1",
52-
"moment": "^2.24.0",
53-
"source-map-support": "^0.5.13",
54-
"validator": "^11.1.0"
53+
"fullcalendar": "^3.10.2",
54+
"moment": "^2.26.0",
55+
"source-map-support": "^0.5.19",
56+
"validator": "^13.0.0"
5557
},
5658
"nbbpm": {
57-
"compatibility": "^1.13.0"
59+
"compatibility": "~1.13.0"
5860
}
5961
}

src/lib/tests/repetition.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import getOccurencesOfRepetition from '../repetition';
1818
1478576134000 + 5000,
1919
1478576134000 + (36 * 60 * 60 * 1000)
2020
);
21-
assert.deepEqual(occurences, [
21+
const expected = [
2222
{
2323
startDate: 1478576134000 + (1 * 24 * 60 * 60 * 1000),
2424
endDate: 1478576134000 + (1 * 24 * 60 * 60 * 1000) + (2 * 60 * 60 * 1000),
@@ -29,6 +29,9 @@ import getOccurencesOfRepetition from '../repetition';
2929
},
3030
endDate: 1478576134000 + (3 * 24 * 60 * 60 * 1000),
3131
},
32+
day: '2016-11-09',
3233
},
33-
]);
34+
];
35+
36+
assert.deepEqual(occurences, expected);
3437
})();

0 commit comments

Comments
 (0)