diff --git a/.pnp.cjs b/.pnp.cjs index e4f26b9..421e3b5 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -38,8 +38,8 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/jest", "npm:27.4.1"], ["@types/node", "npm:16.11.26"], ["@types/plist", "npm:3.0.2"], - ["bplist-creator", "npm:0.1.0"], - ["bplist-parser", "npm:0.3.1"], + ["bplist-creator", "npm:0.1.1"], + ["bplist-parser", "npm:0.3.2"], ["husky", "npm:7.0.4"], ["jest", "virtual:020fc7d94c59e3a3a9c7c102561baf39436220930bc71ae4b32b5080fe8189c54e6fb420af79d5d61c73eef83c6f1a6f5302cc6f1ef959b964e8f0dd7c434720#npm:27.5.1"], ["lint-staged", "npm:11.2.6"], @@ -1950,20 +1950,20 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["bplist-creator", [ - ["npm:0.1.0", { - "packageLocation": "./.yarn/cache/bplist-creator-npm-0.1.0-f194332b98-d4ccd88ea1.zip/node_modules/bplist-creator/", + ["npm:0.1.1", { + "packageLocation": "./.yarn/cache/bplist-creator-npm-0.1.1-46ec2e397c-b0d40d1d16.zip/node_modules/bplist-creator/", "packageDependencies": [ - ["bplist-creator", "npm:0.1.0"], + ["bplist-creator", "npm:0.1.1"], ["stream-buffers", "npm:2.2.0"] ], "linkType": "HARD", }] ]], ["bplist-parser", [ - ["npm:0.3.1", { - "packageLocation": "./.yarn/cache/bplist-parser-npm-0.3.1-2ca33ea639-7cabc5bead.zip/node_modules/bplist-parser/", + ["npm:0.3.2", { + "packageLocation": "./.yarn/cache/bplist-parser-npm-0.3.2-94c89d7427-fad0f6eb15.zip/node_modules/bplist-parser/", "packageDependencies": [ - ["bplist-parser", "npm:0.3.1"], + ["bplist-parser", "npm:0.3.2"], ["big-integer", "npm:1.6.50"] ], "linkType": "HARD", @@ -5477,8 +5477,8 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/jest", "npm:27.4.1"], ["@types/node", "npm:16.11.26"], ["@types/plist", "npm:3.0.2"], - ["bplist-creator", "npm:0.1.0"], - ["bplist-parser", "npm:0.3.1"], + ["bplist-creator", "npm:0.1.1"], + ["bplist-parser", "npm:0.3.2"], ["husky", "npm:7.0.4"], ["jest", "virtual:020fc7d94c59e3a3a9c7c102561baf39436220930bc71ae4b32b5080fe8189c54e6fb420af79d5d61c73eef83c6f1a6f5302cc6f1ef959b964e8f0dd7c434720#npm:27.5.1"], ["lint-staged", "npm:11.2.6"], diff --git a/.yarn/cache/bplist-creator-npm-0.1.0-f194332b98-d4ccd88ea1.zip b/.yarn/cache/bplist-creator-npm-0.1.1-46ec2e397c-b0d40d1d16.zip similarity index 91% rename from .yarn/cache/bplist-creator-npm-0.1.0-f194332b98-d4ccd88ea1.zip rename to .yarn/cache/bplist-creator-npm-0.1.1-46ec2e397c-b0d40d1d16.zip index 442890d..629c00c 100644 Binary files a/.yarn/cache/bplist-creator-npm-0.1.0-f194332b98-d4ccd88ea1.zip and b/.yarn/cache/bplist-creator-npm-0.1.1-46ec2e397c-b0d40d1d16.zip differ diff --git a/.yarn/cache/bplist-parser-npm-0.3.1-2ca33ea639-7cabc5bead.zip b/.yarn/cache/bplist-parser-npm-0.3.1-2ca33ea639-7cabc5bead.zip deleted file mode 100644 index 495113f..0000000 Binary files a/.yarn/cache/bplist-parser-npm-0.3.1-2ca33ea639-7cabc5bead.zip and /dev/null differ diff --git a/.yarn/cache/bplist-parser-npm-0.3.2-94c89d7427-fad0f6eb15.zip b/.yarn/cache/bplist-parser-npm-0.3.2-94c89d7427-fad0f6eb15.zip new file mode 100644 index 0000000..d7747c8 Binary files /dev/null and b/.yarn/cache/bplist-parser-npm-0.3.2-94c89d7427-fad0f6eb15.zip differ diff --git a/package.json b/package.json index c6953ff..d995423 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "test": "jest --coverage --verbose" }, "dependencies": { - "bplist-creator": "0.1.0", - "bplist-parser": "0.3.1", + "bplist-creator": "0.1.1", + "bplist-parser": "0.3.2", "plist": "^3.0.5" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index 74bc4e7..1892f27 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ import bplistCreator from "bplist-creator"; -import bplistParser from "bplist-parser"; +import * as bplistParser from "bplist-parser"; import { parse } from "./parse"; import { readFile } from "./readFile"; import { readFileSync } from "./readFileSync"; diff --git a/src/parse.ts b/src/parse.ts index 4d4d411..4a46515 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,4 +1,4 @@ -import bplistParser from "bplist-parser"; +import * as bplistParser from "bplist-parser"; import { PathOrFileDescriptor } from "fs"; import plist from "plist"; import { PlistJsObj, StringOrBuffer } from "./types"; diff --git a/types/bplist-creator/index.d.ts b/types/bplist-creator/index.d.ts deleted file mode 100644 index 1e1668b..0000000 --- a/types/bplist-creator/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare module "bplist-creator" { - type PlistJsObj = any[] | Record; - - type BPlistCreator = (object: PlistJsObj) => Buffer; - - const BPlistCreator: BPlistCreator; - export = BPlistCreator; -} diff --git a/types/bplist-parser/index.d.ts b/types/bplist-parser/index.d.ts deleted file mode 100644 index 5fbf856..0000000 --- a/types/bplist-parser/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -declare module "bplist-parser" { - type PlistJsObj = any[] | Record; - - interface BPlistParser { - parseBuffer: (val: string | Buffer) => [PlistJsObj]; - } - - const BPlistParser: BPlistParser; - export = BPlistParser; -} diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index ea2dbb9..0000000 --- a/types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/yarn.lock b/yarn.lock index 634f7cb..e693b3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1387,21 +1387,21 @@ __metadata: languageName: node linkType: hard -"bplist-creator@npm:0.1.0": - version: 0.1.0 - resolution: "bplist-creator@npm:0.1.0" +"bplist-creator@npm:0.1.1": + version: 0.1.1 + resolution: "bplist-creator@npm:0.1.1" dependencies: stream-buffers: 2.2.x - checksum: d4ccd88ea16c9d50c2e99f484a5f5bed34d172f6f704463585c0c9c993fd01ddb5b30d6ef486dd9393ffba3c686727f6296e8adf826ce01705bd3741477ce955 + checksum: b0d40d1d1623f1afdbb575cfc8075d742d2c4f0eb458574be809e3857752d1042a39553b3943d2d7f505dde92bcd43e1d7bdac61c9cd44475d696deb79f897ce languageName: node linkType: hard -"bplist-parser@npm:0.3.1": - version: 0.3.1 - resolution: "bplist-parser@npm:0.3.1" +"bplist-parser@npm:0.3.2": + version: 0.3.2 + resolution: "bplist-parser@npm:0.3.2" dependencies: big-integer: 1.6.x - checksum: 7cabc5beadb7530f100cfdcce2b2f1d5d1674309b20f281b9b376022b2de55e86904598f1fd67254ec7f6ac1b74d67dc92c3445eb4cef5dec21c36c58d4a1106 + checksum: fad0f6eb155a9b636b4096a1725ce972a0386490d7d38df7be11a3a5645372446b7c44aacbc6626d24d2c17d8b837765361520ebf2960aeffcaf56765811620e languageName: node linkType: hard @@ -4490,8 +4490,8 @@ fsevents@^2.3.2: "@types/jest": ^27.4.1 "@types/node": ^16.11.26 "@types/plist": ^3.0.2 - bplist-creator: 0.1.0 - bplist-parser: 0.3.1 + bplist-creator: 0.1.1 + bplist-parser: 0.3.2 husky: ^7.0.4 jest: ^27.5.1 lint-staged: ^11.2.6