diff --git a/lib/newstruct/manager.js b/lib/newstruct/manager.js index f0c5b54..f65a20e 100755 --- a/lib/newstruct/manager.js +++ b/lib/newstruct/manager.js @@ -132,6 +132,9 @@ class Manager extends index_1.TypedEmitter { // should be inside of node_modules const authPath = (0, path_1.join)(__dirname, "./credentials.json"); let authData = {}; + if (!(0, fs_1.existsSync)(authPath)) { + (0, fs_1.writeFileSync)(authPath, "{}"); + } if ((0, fs_1.existsSync)(authPath)) { const fileContent = (0, fs_1.readFileSync)(authPath, "utf8"); authData = JSON.parse(fileContent); diff --git a/lib/newstruct/manager.js.map b/lib/newstruct/manager.js.map index 18a0b5e..09e6d82 100755 --- a/lib/newstruct/manager.js.map +++ b/lib/newstruct/manager.js.map @@ -1 +1 @@ -{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/newstruct/manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAgD;AAChD,gFAAiD;AACjD,4CAK0B;AAE1B,wDAA4D;AAC5D,6CAAsE;AAQtE,+CAA4C;AAC5C,kFAAyC;AAEzC,mCAA+B;AAC/B,4CAA4D;AAG5D,iCAA8B;AAC9B,2CAAgC;AAChC,2BAA6D;AAC7D,+BAA4B;AAE5B,MAAa,OAAQ,SAAQ,oBAA2B;IAUtD,YAAY,MAA8B;QACxC,KAAK,EAAE,CAAC;;QAPV,YAAO,GAAwC,IAAI,GAAG,EAGnD,CAAC;QAKF,uBAAA,IAAI,mDAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QACzB,MAAM,SAAS,GAQX,EAAE,CAAC;QACP,IAAI,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,CAAC;YACxC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC;QACzD,CAAC;QACD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cAAc,CAAC,oBAAoB,GAAG,CAAC,CAAC,CAAC,EAClD,CAAC;QACD,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;SAAM,IACL,MAAM,CAAC,UAAU,EAAE,KAAK;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,KAAK,SAAS,EAC5C,CAAC;QACD,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACpC,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/newstruct/manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAgD;AAChD,gFAAiD;AACjD,4CAK0B;AAE1B,wDAA4D;AAC5D,6CAAsE;AAQtE,+CAA4C;AAC5C,kFAAyC;AAEzC,mCAA+B;AAC/B,4CAA4D;AAG5D,iCAA8B;AAC9B,2CAAgC;AAChC,2BAA6D;AAC7D,+BAA4B;AAE5B,MAAa,OAAQ,SAAQ,oBAA2B;IAUtD,YAAY,MAA8B;QACxC,KAAK,EAAE,CAAC;;QAPV,YAAO,GAAwC,IAAI,GAAG,EAGnD,CAAC;QAKF,uBAAA,IAAI,mDAAgB,MAApB,IAAI,EAAiB,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QACzB,MAAM,SAAS,GAQX,EAAE,CAAC;QACP,IAAI,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,CAAC;YACxC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC;QACzD,CAAC;QACD,IAAI,MAAM,CAAC,aAAa,EAAE,SAAS,E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E,oBAAoB;QAC3C,CAAC,OAAO,MAAM,CAAC,cAAc,CAAC,oBAAoB,KAAK,QAAQ;YAC7D,MAAM,CAAC,cAAc,CAAC,oBAAoB,GAAG,CAAC,CAAC,CAAC,EAClD,CAAC;QACD,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;SAAM,IACL,MAAM,CAAC,UAAU,EAAE,KAAK;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,KAAK,SAAS,EAC5C,CAAC;QACD,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACpC,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 80de2f8..c055288 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aoijs/aoi.music", - "version": "1.2.0", + "version": "1.2.1", "description": "Addition of the Music properties and foundation for aoi.js", "author": { "name": "Leref" diff --git a/src/newstruct/manager.ts b/src/newstruct/manager.ts index f94a705..f534564 100755 --- a/src/newstruct/manager.ts +++ b/src/newstruct/manager.ts @@ -174,6 +174,10 @@ export class Manager extends TypedEmitter { const authPath = join(__dirname, "./credentials.json"); let authData = {}; + if (!existsSync(authPath)) { + writeFileSync(authPath, "{}"); + } + if (existsSync(authPath)) { const fileContent = readFileSync(authPath, "utf8"); authData = JSON.parse(fileContent);