Skip to content

Commit

Permalink
fix: change ramda imports to wildcard style (#350)
Browse files Browse the repository at this point in the history
Fixes #349
  • Loading branch information
chrispcampbell authored Sep 5, 2023
1 parent 60c7650 commit f132c8d
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/sde-compare.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { existsSync } from 'fs'

import { pr } from 'bufx'
import R from 'ramda'
import * as R from 'ramda'

import { readDat } from '@sdeverywhere/compile'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/sde-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'

import B from 'bufx'
import byline from 'byline'
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName } from '@sdeverywhere/compile'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'
import { fileURLToPath } from 'url'

import B from 'bufx'
import R from 'ramda'
import * as R from 'ramda'
import sh from 'shelljs'

import { canonicalName } from '@sdeverywhere/compile'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/_shared/helpers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import util from 'util'
import B from 'bufx'
import { parse as parseCsv } from 'csv-parse/sync'
import R from 'ramda'
import * as R from 'ramda'
import split from 'split-string'
import XLSX from 'xlsx'

Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/_shared/read-dat.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs'
import B from 'bufx'
import byline from 'byline'
import R from 'ramda'
import * as R from 'ramda'

import { canonicalVensimName } from './helpers.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/_shared/subscript.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import util from 'util'
import B from 'bufx'
import yaml from 'js-yaml'
import R from 'ramda'
import * as R from 'ramda'
import { canonicalName, asort, vlog } from './helpers.js'

// A subscript is a dimension or an index.
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/generate/code-gen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import R from 'ramda'
import * as R from 'ramda'

import { asort, lines, strlist, abend, mapIndexed } from '../_shared/helpers.js'
import { sub, allDimensions, allMappings, subscriptFamilies } from '../_shared/subscript.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/generate/equation-gen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import { ModelLexer, ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'
import XLSX from 'xlsx'

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/generate/model-lhs-reader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName } from '../_shared/helpers.js'
import { sub, isDimension } from '../_shared/subscript.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/equation-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'

import {
canonicalName,
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import B from 'bufx'
import yaml from 'js-yaml'
import R from 'ramda'
import * as R from 'ramda'

import { decanonicalize, isIterable, listConcat, strlist, vlog, vsort } from '../_shared/helpers.js'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/subscript-range-reader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import { ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'
import XLSX from 'xlsx'

import { cFunctionName, matchRegex, readCsv } from '../_shared/helpers.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/var-name-reader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName } from '../_shared/helpers.js'
import { sub, isIndex, normalizeSubscripts } from '../_shared/subscript.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/variable-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName, vlog, strlist, cartesianProductOf } from '../_shared/helpers.js'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/preprocess/preprocessor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import B from 'bufx'
import R from 'ramda'
import * as R from 'ramda'
import { splitEquations, replaceDelimitedStrings } from '../_shared/helpers.js'

export let preprocessModel = (mdlFilename, spec, profile = 'genc', writeFiles = false, outDecls = []) => {
Expand Down

0 comments on commit f132c8d

Please sign in to comment.