Skip to content

Commit

Permalink
chore: updates deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Apr 7, 2022
1 parent d98863f commit c6cd022
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@oclif/plugin-help": "^3.2.0",
"chokidar": "^3.4.3",
"js-yaml": "^4.0.0",
"strict-callbag-basics": "^0.25.1",
"strict-callbag-basics": "^0.27.1",
"ts-node": "^10.4.0",
"tslib": "^2.0.3",
"typescript": "^4.2.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"ini": "^2.0.0",
"js-yaml": "^4.0.0",
"ramda": "^0.27.1",
"strict-callbag-basics": "^0.27.1"
"strict-callbag-basics": "^0.27.2"
},
"gitHead": "a5aa6a6e10b62a957de11c4bc55ac4d3ee9a2ece"
}
12 changes: 6 additions & 6 deletions packages/core/src/internal/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function configs(
): CB.Source<IConfig> {
return CB.pipe(
filesSource(dir, ignore),
CB.groupBy((file) => [".js", ".ts"].includes(path.extname(file))),
CB.chainPar(([source, isScript]) =>
CB.groupBy((file) => [".js", ".ts"].includes(path.extname(file)), 0),
CB.chainParP(([source, isScript]) =>
isScript
? CB.pipe(
source,
Expand Down Expand Up @@ -76,7 +76,7 @@ export const resolveConfigFromExports =
),

// Map functions / promises to the actual configuration
CB.chainPar(({ relativePath, exports }) =>
CB.chainParP(({ relativePath, exports }) =>
CB.pipe(
CB.fromPromise_(
() => resolveContents(context, exports),
Expand Down Expand Up @@ -111,8 +111,7 @@ export const resolveConfigFromExports =
),
),

// Map functions / promises for file contents, then encode it to the correct
// format.
// encode it to the correct format.
CB.map(({ file, format, contents }) => ({
file,
contents: encodeContents(formats, format, contents),
Expand All @@ -127,8 +126,9 @@ export const resolveConfigFromContents =
(inputSource: CB.Source<string>): CB.Source<IConfig> =>
CB.pipe(
inputSource,

// Load contents from file
CB.chainPar((file) =>
CB.chainParP((file) =>
CB.pipe(
CB.fromCallback<Buffer>((cb) => Fs.readFile(file, cb)),
CB.map((contents) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/internal/fileTrees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function executePatch(contents: IInputContents, outDir: string) {
source,
CB.batchUntil(([op]) => op === "mkdir" || op === "rmdir", true),
CB.chain((ops) =>
CB.chainPar_(
CB.chainParP_(
CB.fromIter(ops),
([op, file, _entry]): CB.Source<void, ExecutePatchError> => {
const path = `${outDir}/${file}`;
Expand Down
31 changes: 4 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4845,33 +4845,10 @@ ssri@^8.0.0, ssri@^8.0.1:
dependencies:
minipass "^3.1.1"

strict-callbag-basics@^0.25.1:
version "0.25.2"
resolved "https://registry.yarnpkg.com/strict-callbag-basics/-/strict-callbag-basics-0.25.2.tgz#152d502f413d00c6bd6cb016a3020834e6ee12bf"
integrity sha512-fyWPzIJSJGK/WUcilDtUoRsmtSWBnH9fLd9pdJNzQC7HKiFzHwPht7OecHHxG/M8DfAStzQmQZsZ9cUKbSX+9g==
dependencies:
callbag-buffer "^1.0.0"
callbag-buffer-time "^1.0.0"
callbag-concat "^1.2.1"
callbag-filter "^1.1.0"
callbag-flatten "^1.7.0"
callbag-from-iter "^1.3.0"
callbag-from-obs "^1.2.0"
callbag-interval "^1.2.0"
callbag-map "^1.1.0"
callbag-scan "^1.1.0"
callbag-share "^1.3.0"
callbag-start-with "^3.1.0"
callbag-take "^1.5.0"
callbag-take-while "^2.0.0"
callbag-to-async-iterable "^1.0.0"
strict-callbag "^0.9.0"
symbol-observable "^4.0.0"

strict-callbag-basics@^0.27.1:
version "0.27.1"
resolved "https://registry.yarnpkg.com/strict-callbag-basics/-/strict-callbag-basics-0.27.1.tgz#7b5d6dea20e9f428eeefe7a37fd3844beb85b144"
integrity sha512-zxOoQQP1nd44iLCFimbVfd7cHPshst76zxR7hGpqOHJFWq2o8kgH3xTY8iFhx66CFIs2yaBMQQ33UUBktA68yA==
strict-callbag-basics@^0.27.1, strict-callbag-basics@^0.27.2:
version "0.27.2"
resolved "https://registry.yarnpkg.com/strict-callbag-basics/-/strict-callbag-basics-0.27.2.tgz#d558cac3a02bd6a0303cb5db7e872d2d0e9c6551"
integrity sha512-gOMDdCe9Ig6cHySO5QqNvsHVZsqsusNyoTD7MAEfNgBppnGVykI9p/77UXRiVjXGdd0bginOuJ8amF9bnq7EaA==
dependencies:
callbag-buffer "^1.0.0"
callbag-buffer-time "^1.0.0"
Expand Down

0 comments on commit c6cd022

Please sign in to comment.