Use correct require method for node-persist (blegh)
This commit is contained in:
parent
ef807ea69c
commit
6ae25134a2
|
@ -1,15 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
|
||||||
if (mod && mod.__esModule) return mod;
|
|
||||||
var result = {};
|
|
||||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
||||||
result["default"] = mod;
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const db = require('../db');
|
const db = require('../db');
|
||||||
const log = require('../log')('intval');
|
const log = require('../log')('intval');
|
||||||
const storage = __importStar(require("node-persist"));
|
const storage = require("node-persist");
|
||||||
const fs_extra_1 = require("fs-extra");
|
const fs_extra_1 = require("fs-extra");
|
||||||
const delay_1 = require("../delay");
|
const delay_1 = require("../delay");
|
||||||
let Gpio;
|
let Gpio;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,10 +1,10 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const db = require('../db');
|
const db = require('../db')
|
||||||
const log = require('../log')('intval');
|
const log = require('../log')('intval')
|
||||||
import * as storage from 'node-persist';
|
import storage = require('node-persist')
|
||||||
import { pathExists, mkdir } from 'fs-extra';
|
import { pathExists, mkdir } from 'fs-extra'
|
||||||
import { delay } from '../delay';
|
import { delay } from '../delay'
|
||||||
|
|
||||||
let Gpio : any
|
let Gpio : any
|
||||||
try {
|
try {
|
||||||
|
@ -53,7 +53,7 @@ interface Entry {
|
||||||
/** class representing the intval3 features */
|
/** class representing the intval3 features */
|
||||||
export default class Intval {
|
export default class Intval {
|
||||||
|
|
||||||
private STATE_DIR : string = '~/state';
|
private STATE_DIR : string = '~/state'
|
||||||
|
|
||||||
private _frame : any = {
|
private _frame : any = {
|
||||||
open : 250, //delay before pausing frame in open state
|
open : 250, //delay before pausing frame in open state
|
||||||
|
@ -76,6 +76,7 @@ export default class Intval {
|
||||||
|
|
||||||
private _pin : any = {};
|
private _pin : any = {};
|
||||||
private _state : any = {};
|
private _state : any = {};
|
||||||
|
private storage : any;
|
||||||
|
|
||||||
public sequence : any;
|
public sequence : any;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue