Committed by cron-git from Yimian-PC

master
iotcat 5 years ago
parent d00cc65d26
commit 3724411cef
  1. BIN
      doc/assessment/~WRL0002.tmp
  2. 4
      node_modules/cron-git/index.js
  3. 10
      node_modules/cron-git/package.json
  4. 2
      node_modules/cron-git/test.js
  5. 6
      package-lock.json

Binary file not shown.

4
node_modules/cron-git/index.js generated vendored

@ -8,7 +8,7 @@ module.exports = function(o_params){
/* factory mode */ /* factory mode */
var o = { var o = {
dir: __dirname, dir: process.cwd(),
debug: false, debug: false,
allowNotice: true, allowNotice: true,
pull: (params, callback, err_callback) => pull(params, callback, err_callback), pull: (params, callback, err_callback) => pull(params, callback, err_callback),
@ -21,6 +21,8 @@ module.exports = function(o_params){
/* merge params */ /* merge params */
Object.assign(o, o_params); Object.assign(o, o_params);
/* log dir */
console.log(new Date() + ' - cron-git: At dir::' + o.dir);
/* modules import */ /* modules import */
const cron = require('node-schedule'); const cron = require('node-schedule');

@ -1,8 +1,8 @@
{ {
"_from": "cron-git", "_from": "cron-git",
"_id": "cron-git@1.0.2", "_id": "cron-git@1.0.5",
"_inBundle": false, "_inBundle": false,
"_integrity": "sha512-0seVUbGkI+qH6F2cbgoYLVKG9bYnlsjqIaWqFQaBob6zvHbSFWLkV9GSOhkjCOSINWJAjKdQ3jVQRqjLMNFlnw==", "_integrity": "sha512-JQMQREUgtz38mG3kuSkV5XKKVGVUdCBgRjZa+CHrzv0ndydMNeUEMdg5WVt2Y7B14how44ptIpN2K5rXtQOJUA==",
"_location": "/cron-git", "_location": "/cron-git",
"_phantomChildren": {}, "_phantomChildren": {},
"_requested": { "_requested": {
@ -19,8 +19,8 @@
"#USER", "#USER",
"/" "/"
], ],
"_resolved": "https://registry.npmjs.org/cron-git/-/cron-git-1.0.2.tgz", "_resolved": "https://registry.npmjs.org/cron-git/-/cron-git-1.0.5.tgz",
"_shasum": "00a15bce5368321ef5f7a018d9f306f7098d4414", "_shasum": "2cfdeeaee5d6ef2bd9515f1eeab75f90fbc91431",
"_spec": "cron-git", "_spec": "cron-git",
"_where": "e:\\cloud\\OneDrive\\git\\fdc", "_where": "e:\\cloud\\OneDrive\\git\\fdc",
"author": { "author": {
@ -52,5 +52,5 @@
"scripts": { "scripts": {
"test": "node test.js" "test": "node test.js"
}, },
"version": "1.0.2" "version": "1.0.5"
} }

2
node_modules/cron-git/test.js generated vendored

@ -1,4 +1,4 @@
const crongit = require('./index.js')(); const crongit = require('./index.js')();
//crongit.pull({}, ()=>{console.log('good')}, ()=>{console.log('bed')}); //crongit.pull({}, ()=>{console.log('good')}, ()=>{console.log('bed')});
crongit.schedule("10 * * * * *", ()=>console.log('test ok!!!\nuse Ctrl+C to exit!!'), ()=>console.log('pull err err err err!!!!')); crongit.schedule("*/10 * * * * *", ()=>console.log('test ok!!!\nuse Ctrl+C to exit!!'), ()=>console.log('pull err err err err!!!!'));

6
package-lock.json generated

@ -3,9 +3,9 @@
"lockfileVersion": 1, "lockfileVersion": 1,
"dependencies": { "dependencies": {
"cron-git": { "cron-git": {
"version": "1.0.0", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/cron-git/-/cron-git-1.0.0.tgz", "resolved": "https://registry.npmjs.org/cron-git/-/cron-git-1.0.5.tgz",
"integrity": "sha512-DMfZWhvaDtuxxWXew+A+kgED0tRzKw5qEQsN4NSoV1fEf5Gn3+JJZ7LS1NKzX3tsgUvrmyr/KZs198u3/CtIVw==", "integrity": "sha512-JQMQREUgtz38mG3kuSkV5XKKVGVUdCBgRjZa+CHrzv0ndydMNeUEMdg5WVt2Y7B14how44ptIpN2K5rXtQOJUA==",
"requires": { "requires": {
"node-schedule": "^1.3.2", "node-schedule": "^1.3.2",
"os": "^0.1.1", "os": "^0.1.1",

Loading…
Cancel
Save