diff --git a/.travis.yml b/.travis.yml index 3ee5f19..8523cdb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,7 @@ env: global: - GH_USER_EMAIL="travis@example.org" - GH_USER_NAME="cozy-bot" - - DEPLOY_REPOSITORY="git@github.com:konnectors/cozy-konnector-template.git" - # Token to access Cozy Registry, you should replace it with a token specific to this konnector - - secure: CQ44ZVjPAIVRvGgMcduSAX4VmaOrzF3nrJXPFUsNQ2tMVVdaAlI1zTNkdfntqigZgz6Mpk9x+2FcA8qrkNzQ4cW0lPP9f5dBtSH1xetfpXDFKprW4bqzmhgXSXJFTOYxkChOBPmCYJr+Vv4XqDkv/dBEPdfRSgvVyd5YxHSd5HBU91rKyR+Hox7LTnhmlXleLIs11EQgp7RK+L28MBCtCqAa2niFlKKRlqupm2FSpZzxCh9qeY0wKCQzPE+QZUm4waJ1SUGKQwbzAfyOxu2O6rwzaTSknfdJoSX6AMxjRTWBC9c3VfUGM3wjVJIqMhiUj2FQhVIjiDyX/W60/q3UMC5WYzSvEDDfhnKCPwiUKSU7HvSxx9q2YP34evxKo7KPahz9zLlQZvW+GBMyI9hbMDBTALuQVVzhftsvqfrogyYhkEPviiYiVADWNxhacsbUjRA5svXnZvtmCPo7fLFwel/krgC5Z8AwAY0YxWjSHNVScUkieSDCrlxrC09vTtG60unt9gtXbD5ruUkDLWSUwHBv2p0WY1TdP+2Vlf3yYfBvEVbqi59AxG+T17bq7Xv3QZnkrwC+UOCNCeg+gHPv+fRpUaYWzCO4uaoY/nlJa7RulQFhGca3A//6xRo/KgWw9JJnOXJelNjE9oHCUu9xShotUZKOF+O93V/BRqs9ITo= + - DEPLOY_REPOSITORY="git@github.com:konnectors/net-entreprise-micro.git" cache: yarn: true directories: @@ -32,9 +30,8 @@ deploy: on: tags: true before_install: -# run the yarn travisDeployKey command to genrate this -# - openssl aes-256-cbc -K $encrypted_0b21ecdcf920_key -iv $encrypted_0b21ecdcf920_iv -# -in github_deploy_key.enc -out /tmp/github_deploy_key -d +- openssl aes-256-cbc -K $encrypted_fb9d73f038c1_key -iv $encrypted_fb9d73f038c1_iv + -in github_deploy_key.enc -out /tmp/github_deploy_key -d - eval "$(ssh-agent -s)" - chmod 600 /tmp/github_deploy_key - ssh-add /tmp/github_deploy_key diff --git a/CODEOWNERS b/CODEOWNERS index 856c925..03d2130 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,2 +1,2 @@ # General code owners -* @konnectors/maintainers +* @konnectors/maintainers @Schoumi diff --git a/bin/generate_travis_deploy_key b/bin/generate_travis_deploy_key index 8ed8814..8265e84 100755 --- a/bin/generate_travis_deploy_key +++ b/bin/generate_travis_deploy_key @@ -41,7 +41,7 @@ curl https://api.github.com/repos/konnectors/$reponame/keys -H "Authorization: t EOF # use travis to encrypt the private key as github_deploy_key.enc and remove the private key -travis encrypt-file github_deploy_key --add --no-interactive -w /tmp/github_deploy_key -f +travis encrypt-file github_deploy_key --add --no-interactive -w /tmp/github_deploy_key -f --pro git add github_deploy_key.enc # cleaning diff --git a/github_deploy_key.enc b/github_deploy_key.enc index 77d5c89..fba9aa1 100644 Binary files a/github_deploy_key.enc and b/github_deploy_key.enc differ diff --git a/manifest.konnector b/manifest.konnector index c7ab08a..71700db 100644 --- a/manifest.konnector +++ b/manifest.konnector @@ -5,7 +5,7 @@ "language": "node", "icon": "icon.png", "slug": "net-entreprise-micro", - "source": "git://github.com/Schoumi/Net-Entreprise-AE.git", + "source": "git://github.com/konnectors/net-entreprise-micro.git", "editor": "Mob-Dev", "vendor_link": "https://www.net-entreprises.fr/", "categories": ["other"], diff --git a/package.json b/package.json index 5d962f7..03246b4 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "cozy-konnector-template", + "name": "cozy-konnector-net-entreprise-micro", "version": "1.0.0", "description": "", "repository": { "type": "git", - "url": "git+https://github.com/konnectors/cozy-konnector-template.git" + "url": "git+https://github.com/konnectors/net-entreprise-micro.git" }, "keywords": [], - "author": "Cozy Cloud", + "author": "Schoumi", "license": "AGPL-3.0", "main": "./src/index.js", "eslintConfig": { @@ -29,13 +29,13 @@ "build": "webpack", "precommit": "yarn lint", "lint": "eslint --fix .", - "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://$GITHUB_TOKEN@github.com/konnectors/cozy-konnector-template.git}", + "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://$GITHUB_TOKEN@github.com/konnectors/net-entreprise-micro.git}", "cozyPublish": "cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})", "travisDeployKey": "./bin/generate_travis_deploy_key" }, "dependencies": { "cozy-konnector-libs": "4.11.2", - "moment": "^2.22.2" + "moment": "2.22.2" }, "devDependencies": { "copy-webpack-plugin": "4.5.2", diff --git a/src/index.js b/src/index.js index f4bded2..e37554b 100644 --- a/src/index.js +++ b/src/index.js @@ -224,7 +224,9 @@ async function getDeclaration(params, periode) { day = day < 10 ? '0' + day.toString() : day.toString() bill.date = moment( '' + subData[2] + '-' + subData[1] + '-' + day + 'T00:00:00.000Z' - ).add(1, 'days').toDate() + ) + .add(1, 'days') + .toDate() bill.vendor = 'urssaf' let month = periode % 100 if (month % 10 == 0) { diff --git a/yarn.lock b/yarn.lock index 5216fb4..4851526 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4425,7 +4425,7 @@ mkdirp@0.5.1, mkdirp@0.x.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdi dependencies: minimist "0.0.8" -moment@2.22.2, moment@^2.22.2: +moment@2.22.2: version "2.22.2" resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66" integrity sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=