@dbml/core 11.0.0 → 11.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/_rolldown/runtime.cjs +1 -1
- package/lib/_virtual/_rolldown/runtime.mjs +2 -3
- package/lib/export/DbmlExporter.cjs +1 -1
- package/lib/export/DbmlExporter.mjs +2 -3
- package/lib/export/JsonExporter.mjs +1 -2
- package/lib/export/ModelExporter.mjs +1 -2
- package/lib/export/MysqlExporter.mjs +1 -2
- package/lib/export/OracleExporter.mjs +1 -2
- package/lib/export/PostgresExporter.mjs +1 -2
- package/lib/export/SqlServerExporter.mjs +1 -2
- package/lib/export/index.mjs +1 -2
- package/lib/export/utils.mjs +1 -2
- package/lib/import/index.mjs +1 -2
- package/lib/index.cjs +1 -1
- package/lib/index.mjs +2 -2
- package/lib/model_structure/check.mjs +1 -2
- package/lib/model_structure/config.mjs +1 -2
- package/lib/model_structure/database.mjs +1 -2
- package/lib/model_structure/dbState.mjs +1 -2
- package/lib/model_structure/dep.mjs +1 -2
- package/lib/model_structure/depEdge.mjs +1 -2
- package/lib/model_structure/element.mjs +1 -2
- package/lib/model_structure/endpoint.mjs +1 -2
- package/lib/model_structure/enum.mjs +1 -2
- package/lib/model_structure/enumValue.mjs +1 -2
- package/lib/model_structure/field.mjs +1 -2
- package/lib/model_structure/indexColumn.mjs +1 -2
- package/lib/model_structure/indexes.mjs +1 -2
- package/lib/model_structure/ref.mjs +1 -2
- package/lib/model_structure/schema.mjs +1 -2
- package/lib/model_structure/stickyNote.mjs +1 -2
- package/lib/model_structure/table.mjs +1 -2
- package/lib/model_structure/tableGroup.mjs +1 -2
- package/lib/model_structure/tablePartial.mjs +1 -2
- package/lib/model_structure/utils.mjs +1 -2
- package/lib/node_modules/antlr4/dist/antlr4.web.mjs +1 -2
- package/lib/node_modules/lodash-es/_DataView.mjs +1 -2
- package/lib/node_modules/lodash-es/_Hash.mjs +1 -2
- package/lib/node_modules/lodash-es/_ListCache.mjs +1 -2
- package/lib/node_modules/lodash-es/_Map.mjs +1 -2
- package/lib/node_modules/lodash-es/_MapCache.mjs +1 -2
- package/lib/node_modules/lodash-es/_Promise.mjs +1 -2
- package/lib/node_modules/lodash-es/_Set.mjs +1 -2
- package/lib/node_modules/lodash-es/_SetCache.mjs +1 -2
- package/lib/node_modules/lodash-es/_Stack.mjs +1 -2
- package/lib/node_modules/lodash-es/_Symbol.mjs +1 -2
- package/lib/node_modules/lodash-es/_Uint8Array.mjs +1 -2
- package/lib/node_modules/lodash-es/_WeakMap.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayAggregator.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayEach.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayFilter.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayLikeKeys.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayMap.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayPush.mjs +1 -2
- package/lib/node_modules/lodash-es/_arrayReduce.mjs +1 -2
- package/lib/node_modules/lodash-es/_arraySome.mjs +1 -2
- package/lib/node_modules/lodash-es/_asciiToArray.mjs +1 -2
- package/lib/node_modules/lodash-es/_assocIndexOf.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseAggregator.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseAssignValue.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseEach.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseFlatten.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseFor.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseForOwn.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseGet.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseGetAllKeys.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseGetTag.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseHasIn.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIsArguments.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIsEqual.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIsEqualDeep.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIsMatch.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIsNative.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIsTypedArray.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseIteratee.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseKeys.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseMatches.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseMatchesProperty.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseNth.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseProperty.mjs +1 -2
- package/lib/node_modules/lodash-es/_basePropertyDeep.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseReduce.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseSlice.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseTimes.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseToString.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseTrim.mjs +1 -2
- package/lib/node_modules/lodash-es/_baseUnary.mjs +1 -2
- package/lib/node_modules/lodash-es/_cacheHas.mjs +1 -2
- package/lib/node_modules/lodash-es/_castFunction.mjs +1 -2
- package/lib/node_modules/lodash-es/_castPath.mjs +1 -2
- package/lib/node_modules/lodash-es/_castSlice.mjs +1 -2
- package/lib/node_modules/lodash-es/_copyArray.mjs +1 -2
- package/lib/node_modules/lodash-es/_coreJsData.mjs +1 -2
- package/lib/node_modules/lodash-es/_createAggregator.mjs +1 -2
- package/lib/node_modules/lodash-es/_createBaseEach.mjs +1 -2
- package/lib/node_modules/lodash-es/_createBaseFor.mjs +1 -2
- package/lib/node_modules/lodash-es/_createCaseFirst.mjs +1 -2
- package/lib/node_modules/lodash-es/_defineProperty.mjs +1 -2
- package/lib/node_modules/lodash-es/_equalArrays.mjs +1 -2
- package/lib/node_modules/lodash-es/_equalByTag.mjs +1 -2
- package/lib/node_modules/lodash-es/_equalObjects.mjs +1 -2
- package/lib/node_modules/lodash-es/_freeGlobal.mjs +1 -2
- package/lib/node_modules/lodash-es/_getAllKeys.mjs +1 -2
- package/lib/node_modules/lodash-es/_getMapData.mjs +1 -2
- package/lib/node_modules/lodash-es/_getMatchData.mjs +1 -2
- package/lib/node_modules/lodash-es/_getNative.mjs +1 -2
- package/lib/node_modules/lodash-es/_getRawTag.mjs +1 -2
- package/lib/node_modules/lodash-es/_getSymbols.mjs +1 -2
- package/lib/node_modules/lodash-es/_getTag.mjs +1 -2
- package/lib/node_modules/lodash-es/_getValue.mjs +1 -2
- package/lib/node_modules/lodash-es/_hasPath.mjs +1 -2
- package/lib/node_modules/lodash-es/_hasUnicode.mjs +1 -2
- package/lib/node_modules/lodash-es/_hashClear.mjs +1 -2
- package/lib/node_modules/lodash-es/_hashDelete.mjs +1 -2
- package/lib/node_modules/lodash-es/_hashGet.mjs +1 -2
- package/lib/node_modules/lodash-es/_hashHas.mjs +1 -2
- package/lib/node_modules/lodash-es/_hashSet.mjs +1 -2
- package/lib/node_modules/lodash-es/_isFlattenable.mjs +1 -2
- package/lib/node_modules/lodash-es/_isIndex.mjs +1 -2
- package/lib/node_modules/lodash-es/_isKey.mjs +1 -2
- package/lib/node_modules/lodash-es/_isKeyable.mjs +1 -2
- package/lib/node_modules/lodash-es/_isMasked.mjs +1 -2
- package/lib/node_modules/lodash-es/_isPrototype.mjs +1 -2
- package/lib/node_modules/lodash-es/_isStrictComparable.mjs +1 -2
- package/lib/node_modules/lodash-es/_listCacheClear.mjs +1 -2
- package/lib/node_modules/lodash-es/_listCacheDelete.mjs +1 -2
- package/lib/node_modules/lodash-es/_listCacheGet.mjs +1 -2
- package/lib/node_modules/lodash-es/_listCacheHas.mjs +1 -2
- package/lib/node_modules/lodash-es/_listCacheSet.mjs +1 -2
- package/lib/node_modules/lodash-es/_mapCacheClear.mjs +1 -2
- package/lib/node_modules/lodash-es/_mapCacheDelete.mjs +1 -2
- package/lib/node_modules/lodash-es/_mapCacheGet.mjs +1 -2
- package/lib/node_modules/lodash-es/_mapCacheHas.mjs +1 -2
- package/lib/node_modules/lodash-es/_mapCacheSet.mjs +1 -2
- package/lib/node_modules/lodash-es/_mapToArray.mjs +1 -2
- package/lib/node_modules/lodash-es/_matchesStrictComparable.mjs +1 -2
- package/lib/node_modules/lodash-es/_memoizeCapped.mjs +1 -2
- package/lib/node_modules/lodash-es/_nativeCreate.mjs +1 -2
- package/lib/node_modules/lodash-es/_nativeKeys.mjs +1 -2
- package/lib/node_modules/lodash-es/_nodeUtil.mjs +1 -2
- package/lib/node_modules/lodash-es/_objectToString.mjs +1 -2
- package/lib/node_modules/lodash-es/_overArg.mjs +1 -2
- package/lib/node_modules/lodash-es/_root.mjs +1 -2
- package/lib/node_modules/lodash-es/_setCacheAdd.mjs +1 -2
- package/lib/node_modules/lodash-es/_setCacheHas.mjs +1 -2
- package/lib/node_modules/lodash-es/_setToArray.mjs +1 -2
- package/lib/node_modules/lodash-es/_stackClear.mjs +1 -2
- package/lib/node_modules/lodash-es/_stackDelete.mjs +1 -2
- package/lib/node_modules/lodash-es/_stackGet.mjs +1 -2
- package/lib/node_modules/lodash-es/_stackHas.mjs +1 -2
- package/lib/node_modules/lodash-es/_stackSet.mjs +1 -2
- package/lib/node_modules/lodash-es/_stringToArray.mjs +1 -2
- package/lib/node_modules/lodash-es/_stringToPath.mjs +1 -2
- package/lib/node_modules/lodash-es/_toKey.mjs +1 -2
- package/lib/node_modules/lodash-es/_toSource.mjs +1 -2
- package/lib/node_modules/lodash-es/_trimmedEndIndex.mjs +1 -2
- package/lib/node_modules/lodash-es/_unicodeToArray.mjs +1 -2
- package/lib/node_modules/lodash-es/capitalize.mjs +1 -2
- package/lib/node_modules/lodash-es/concat.mjs +1 -2
- package/lib/node_modules/lodash-es/eq.mjs +1 -2
- package/lib/node_modules/lodash-es/first.mjs +1 -1
- package/lib/node_modules/lodash-es/flatten.mjs +1 -2
- package/lib/node_modules/lodash-es/flattenDeep.mjs +1 -2
- package/lib/node_modules/lodash-es/flattenDepth.mjs +1 -2
- package/lib/node_modules/lodash-es/forEach.mjs +1 -2
- package/lib/node_modules/lodash-es/get.mjs +1 -2
- package/lib/node_modules/lodash-es/groupBy.mjs +1 -2
- package/lib/node_modules/lodash-es/hasIn.mjs +1 -2
- package/lib/node_modules/lodash-es/head.mjs +1 -2
- package/lib/node_modules/lodash-es/identity.mjs +1 -2
- package/lib/node_modules/lodash-es/isArguments.mjs +1 -2
- package/lib/node_modules/lodash-es/isArray.mjs +1 -2
- package/lib/node_modules/lodash-es/isArrayLike.mjs +1 -2
- package/lib/node_modules/lodash-es/isBuffer.mjs +1 -2
- package/lib/node_modules/lodash-es/isEmpty.mjs +1 -2
- package/lib/node_modules/lodash-es/isFunction.mjs +1 -2
- package/lib/node_modules/lodash-es/isLength.mjs +1 -2
- package/lib/node_modules/lodash-es/isNil.mjs +1 -2
- package/lib/node_modules/lodash-es/isObject.mjs +1 -2
- package/lib/node_modules/lodash-es/isObjectLike.mjs +1 -2
- package/lib/node_modules/lodash-es/isSymbol.mjs +1 -2
- package/lib/node_modules/lodash-es/isTypedArray.mjs +1 -2
- package/lib/node_modules/lodash-es/keys.mjs +1 -2
- package/lib/node_modules/lodash-es/last.mjs +1 -2
- package/lib/node_modules/lodash-es/lodash.mjs +1 -1
- package/lib/node_modules/lodash-es/memoize.mjs +1 -2
- package/lib/node_modules/lodash-es/nth.mjs +1 -2
- package/lib/node_modules/lodash-es/property.mjs +1 -2
- package/lib/node_modules/lodash-es/reduce.mjs +1 -2
- package/lib/node_modules/lodash-es/stubArray.mjs +1 -2
- package/lib/node_modules/lodash-es/stubFalse.mjs +1 -2
- package/lib/node_modules/lodash-es/toFinite.mjs +1 -2
- package/lib/node_modules/lodash-es/toInteger.mjs +1 -2
- package/lib/node_modules/lodash-es/toNumber.mjs +1 -2
- package/lib/node_modules/lodash-es/toString.mjs +1 -2
- package/lib/node_modules/lodash-es/upperFirst.mjs +1 -2
- package/lib/node_modules/luxon/build/es6/luxon.mjs +1 -2
- package/lib/node_modules/parsimmon/build/parsimmon.umd.min.cjs +1 -1
- package/lib/node_modules/parsimmon/build/parsimmon.umd.min.mjs +3 -4
- package/lib/node_modules/pluralize/pluralize.cjs +1 -1
- package/lib/node_modules/pluralize/pluralize.mjs +3 -4
- package/lib/packages/dbml-core/node_modules/lodash/lodash.cjs +2 -2
- package/lib/packages/dbml-core/node_modules/lodash/lodash.mjs +3 -4
- package/lib/packages/dbml-core/package.json.cjs +1 -1
- package/lib/packages/dbml-core/package.json.mjs +2 -3
- package/lib/parse/ANTLR/ASTGeneration/AST.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/ParserErrorListener.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/SyntaxError.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/constants.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/helpers.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/index.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/mssql/MssqlASTGen.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/mysql/MySQLASTGen.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/oraclesql/OracleSQLASTGen.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/postgres/PostgresASTGen.mjs +1 -2
- package/lib/parse/ANTLR/ASTGeneration/snowflake/SnowflakeASTGen.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mssql/TSqlLexer.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mssql/TSqlParser.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mssql/TSqlParserVisitor.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mysql/MySqlLexer.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mysql/MySqlLexerBase.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mysql/MySqlParser.mjs +1 -2
- package/lib/parse/ANTLR/parsers/mysql/MySqlParserVisitor.mjs +1 -2
- package/lib/parse/ANTLR/parsers/oraclesql/OracleSqlLexer.mjs +1 -2
- package/lib/parse/ANTLR/parsers/oraclesql/OracleSqlLexerBase.mjs +1 -2
- package/lib/parse/ANTLR/parsers/oraclesql/OracleSqlParser.mjs +1 -2
- package/lib/parse/ANTLR/parsers/oraclesql/OracleSqlParserBase.mjs +1 -2
- package/lib/parse/ANTLR/parsers/oraclesql/OracleSqlParserVisitor.mjs +1 -2
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexer.mjs +1 -2
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexerBase.mjs +1 -2
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParser.mjs +1 -2
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParserBase.mjs +1 -2
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParserVisitor.mjs +1 -2
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeLexer.mjs +1 -2
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParser.mjs +1 -2
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParserVisitor.mjs +1 -2
- package/lib/parse/Parser.mjs +1 -2
- package/lib/parse/databaseGenerator.mjs +1 -2
- package/lib/parse/deprecated/dbmlParser.mjs +1 -2
- package/lib/parse/deprecated/mssql/base_parsers.mjs +1 -2
- package/lib/parse/deprecated/mssql/column_definition/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/column_definition/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/constraint_definition/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/constraint_definition/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/expression.mjs +1 -2
- package/lib/parse/deprecated/mssql/fk_definition/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/fk_definition/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/index_definition/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/index_definition/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/keyword_parsers.mjs +1 -2
- package/lib/parse/deprecated/mssql/keyword_utils.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/actions.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/comments/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/create_index/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/create_table/actions.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.mjs +1 -2
- package/lib/parse/deprecated/mssql/statements/statement_types/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/utils.mjs +1 -2
- package/lib/parse/deprecated/mssql/whitespaces.mjs +1 -2
- package/lib/parse/deprecated/mssqlParser.mjs +1 -2
- package/lib/parse/deprecated/mysqlParser.mjs +1 -2
- package/lib/parse/deprecated/postgresParser.mjs +1 -2
- package/lib/parse/deprecated/schemarbParser.mjs +1 -2
- package/lib/parse/error.mjs +1 -2
- package/lib/transform/index.mjs +1 -2
- package/lib/transform/relations.mjs +1 -2
- package/lib/utils/version.mjs +1 -2
- package/package.json +3 -3
- package/types/index.d.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);exports.__commonJSMin=s,exports.__esmMin=o,exports.__exportAll=c,exports.__toCommonJS=d,exports.__toESM=u;
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);exports.__commonJSMin=s,exports.__esmMin=o,exports.__exportAll=c,exports.__toCommonJS=d,exports.__toESM=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t, n) => () => {
|
|
3
3
|
if (n) throw n[0];
|
|
4
4
|
try {
|
|
@@ -6,7 +6,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
6
6
|
} catch (e) {
|
|
7
7
|
throw n = [e], e;
|
|
8
8
|
}
|
|
9
|
-
}, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
|
|
9
|
+
}, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), c = (e, n) => {
|
|
10
10
|
let r = {};
|
|
11
11
|
for (var i in e) t(r, i, {
|
|
12
12
|
get: e[i],
|
|
@@ -26,5 +26,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
26
26
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
27
27
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
28
28
|
});
|
|
29
|
-
//#endregion
|
|
30
29
|
export { s as __commonJSMin, o as __esmMin, c as __exportAll, f as __require, d as __toCommonJS, u as __toESM };
|
|
@@ -11,7 +11,7 @@ require("../_virtual/_rolldown/runtime.cjs");const e=require("../node_modules/lo
|
|
|
11
11
|
`,a&&(c+=` note: ${r.escapeNote(n.note)}\n`),o.forEach(([e,t])=>{c+=` ${e}: ${r.formatDepCustomValue(t)}\n`})),c+=`}
|
|
12
12
|
`,c});return n.length?n.join(`
|
|
13
13
|
`):``}static exportTableGroups(e,t){let n=e.map(e=>{let n=t.tableGroups[e],a=r.getTableGroupSettings(n),o=n.note?` Note: ${r.escapeNote(n.note)}\n`:``;return`TableGroup ${`"${n.name}"`}${a} {\n${n.tableIds.reduce((e,n)=>{let r=t.tables[n],a=t.schemas[r.schemaId];return`${e}${` ${i.shouldPrintSchema(a,t)?`"${a.name}".`:``}"${r.name}"`}\n`},``)}${o}}\n`});return n.length?n.join(`
|
|
14
|
-
`):``}static getStickyNoteSettings(e){let t=``;return e.color&&(t+=`color: ${e.color}`),t?` [${t}]`:``}static exportStickyNotes(e){return n.default(e.notes,(e,t)=>{let n=` ${r.escapeNote(t.content)}`,i=r.getStickyNoteSettings(t),a=`Note ${t.name}${i} {\n${n}\n}\n`;return e?`${e}\n${a}`:a},``)}static exportRecords(n){let{records:r}=n;if(!r||t.default(r))return``;let i=e.default(Object.values(r),e=>`${e.schemaName||``}.${e.tableName}`);return Object.values(i).map(e=>{let{schemaName:t,tableName:n}=e[0],r=t?(0,a.normalizeQualifiedName)(t,n):(0,a.addDoubleQuoteIfNeeded)(n),i=[...new Set(e.flatMap(e=>e.columns))],o=i.map(a.addDoubleQuoteIfNeeded).join(`, `),s=e.flatMap(e=>{let t=i.map(t=>e.columns.indexOf(t));return e.values.map(e=>t.map(t=>t===-1?{value:null,type:`expression`}:e[t]))}).map(e=>` ${e.map(a.
|
|
14
|
+
`):``}static getStickyNoteSettings(e){let t=``;return e.color&&(t+=`color: ${e.color}`),t?` [${t}]`:``}static exportStickyNotes(e){return n.default(e.notes,(e,t)=>{let n=` ${r.escapeNote(t.content)}`,i=r.getStickyNoteSettings(t),a=`Note ${t.name}${i} {\n${n}\n}\n`;return e?`${e}\n${a}`:a},``)}static exportRecords(n){let{records:r}=n;if(!r||t.default(r))return``;let i=e.default(Object.values(r),e=>`${e.schemaName||``}.${e.tableName}`);return Object.values(i).map(e=>{let{schemaName:t,tableName:n}=e[0],r=t?(0,a.normalizeQualifiedName)(t,n):(0,a.addDoubleQuoteIfNeeded)(n),i=[...new Set(e.flatMap(e=>e.columns))],o=i.map(a.addDoubleQuoteIfNeeded).join(`, `),s=e.flatMap(e=>{let t=i.map(t=>e.columns.indexOf(t));return e.values.map(e=>t.map(t=>t===-1?{value:null,type:`expression`}:e[t]))}).map(e=>` ${e.map(a.formatTypedValue).join(`, `)}`);return`Records ${r}(${o})${e.some(e=>e.example)?` [example]`:``} {\n${s.join(`
|
|
15
15
|
`)}\n}\n`}).join(`
|
|
16
16
|
`)}static formatMetadataValue(e){return e.type===`string`?r.escapeNote(String(e.value)):String(e.value)}static exportMetadata(e){let n=[],a=e.database[1],o=(e,t)=>`Metadata ${e} {\n${Object.entries(t).map(([e,t])=>` ${e}: ${r.formatMetadataValue(t)}`).join(`
|
|
17
17
|
`)}\n}\n`;return a.schemaIds.forEach(r=>{let{tableIds:a,tableGroupIds:s}=e.schemas[r];a.forEach(r=>{let a=e.tables[r],s=e.schemas[a.schemaId],c=i.shouldPrintSchema(s,e)?`"${s.name}".`:``;t.default(a.metadata)||n.push(o(`Table ${c}"${a.name}"`,a.metadata)),a.fieldIds.map(t=>e.fields[t]).filter(e=>!t.default(e.metadata)).forEach(e=>n.push(o(`Column ${c}"${a.name}"."${e.name}"`,e.metadata)))}),s.map(t=>e.tableGroups[t]).filter(e=>!t.default(e.metadata)).forEach(e=>n.push(o(`TableGroup "${e.name}"`,e.metadata)))}),Object.values(e.notes).filter(e=>!t.default(e.metadata)).forEach(e=>n.push(o(`Note ${e.name}`,e.metadata))),n.join(`
|
|
@@ -4,8 +4,8 @@ import n from "../node_modules/lodash-es/reduce.mjs";
|
|
|
4
4
|
import { init_lodash as r } from "../node_modules/lodash-es/lodash.mjs";
|
|
5
5
|
import "../model_structure/config.mjs";
|
|
6
6
|
import { shouldPrintSchema as i } from "./utils.mjs";
|
|
7
|
-
import { addDoubleQuoteIfNeeded as a, escapeString as o,
|
|
8
|
-
|
|
7
|
+
import { addDoubleQuoteIfNeeded as a, escapeString as o, formatTypedValue as s, getRelationshipOp as c, normalizeQualifiedName as l, parseCardinality as u } from "@dbml/parse";
|
|
8
|
+
// src/export/DbmlExporter.ts
|
|
9
9
|
r();
|
|
10
10
|
var d = class r {
|
|
11
11
|
static hasWhiteSpace(e) {
|
|
@@ -199,5 +199,4 @@ var d = class r {
|
|
|
199
199
|
return s && i.push(s), i.join("\n");
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
//#endregion
|
|
203
202
|
export { d as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import e from "../model_structure/database.mjs";
|
|
2
|
-
|
|
2
|
+
// src/export/JsonExporter.ts
|
|
3
3
|
var t = class {
|
|
4
4
|
static export(t, n) {
|
|
5
5
|
let { isNormalized: r } = n;
|
|
6
6
|
return !r && t instanceof e ? JSON.stringify(t.export(), null, 2) : JSON.stringify(t, null, 2);
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { t as default };
|
|
@@ -6,7 +6,7 @@ import i from "./JsonExporter.mjs";
|
|
|
6
6
|
import a from "./SqlServerExporter.mjs";
|
|
7
7
|
import o from "./OracleExporter.mjs";
|
|
8
8
|
import { normalizeExportOptions as s } from "./index.mjs";
|
|
9
|
-
|
|
9
|
+
// src/export/ModelExporter.ts
|
|
10
10
|
var c = class {
|
|
11
11
|
static export(c, l, u = {
|
|
12
12
|
isNormalized: !0,
|
|
@@ -34,5 +34,4 @@ var c = class {
|
|
|
34
34
|
return m;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { c as default };
|
|
@@ -4,7 +4,7 @@ import n from "../node_modules/lodash-es/isEmpty.mjs";
|
|
|
4
4
|
import { init_lodash as r } from "../node_modules/lodash-es/lodash.mjs";
|
|
5
5
|
import { buildJunctionFields1 as i, buildJunctionFields2 as a, buildNewTableName as o, shouldPrintSchema as s } from "./utils.mjs";
|
|
6
6
|
import { isBinaryType as c, isBooleanType as l, isDateTimeType as u, isNumericType as d, isStringType as f, parseCardinality as p } from "@dbml/parse";
|
|
7
|
-
|
|
7
|
+
// src/export/MysqlExporter.js
|
|
8
8
|
r();
|
|
9
9
|
var m = class r {
|
|
10
10
|
static exportRecords(e) {
|
|
@@ -151,5 +151,4 @@ var m = class r {
|
|
|
151
151
|
return t(c.schemas, c.enums, c.tables, c.indexes, c.comments, c.refs, u).join("\n");
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
//#endregion
|
|
155
154
|
export { m as default };
|
|
@@ -5,7 +5,7 @@ import r from "../node_modules/lodash-es/isEmpty.mjs";
|
|
|
5
5
|
import { init_lodash as i } from "../node_modules/lodash-es/lodash.mjs";
|
|
6
6
|
import { buildJunctionFields1 as a, buildJunctionFields2 as o, buildUniqueTableName as s, escapeObjectName as c, formatDatetimeForOracle as l, parseIsoDatetime as u, shouldPrintSchema as d } from "./utils.mjs";
|
|
7
7
|
import { isBinaryType as f, isBooleanType as p, isDateTimeType as m, isNumericType as h, isStringType as g, parseCardinality as _ } from "@dbml/parse";
|
|
8
|
-
|
|
8
|
+
// src/export/OracleExporter.js
|
|
9
9
|
i();
|
|
10
10
|
var v = class {
|
|
11
11
|
static exportRecords(e) {
|
|
@@ -230,5 +230,4 @@ QUOTA UNLIMITED ON system;
|
|
|
230
230
|
return t(o.schemas, o.tables, o.indexes, o.comments, o.referenceGrants, o.refs, c).join("\n");
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
//#endregion
|
|
234
233
|
export { v as default };
|
|
@@ -5,7 +5,7 @@ import { init_lodash as r } from "../node_modules/lodash-es/lodash.mjs";
|
|
|
5
5
|
import { buildJunctionFields1 as i, buildJunctionFields2 as a, buildNewTableName as o, hasWhiteSpace as s, hasWhiteSpaceOrUpperCase as c, shouldPrintSchema as l } from "./utils.mjs";
|
|
6
6
|
import { shouldPrintSchemaName as u } from "../model_structure/utils.mjs";
|
|
7
7
|
import { isBinaryType as d, isBooleanType as f, isDateTimeType as p, isNumericType as m, isStringType as h, parseCardinality as g } from "@dbml/parse";
|
|
8
|
-
|
|
8
|
+
// src/export/PostgresExporter.js
|
|
9
9
|
r();
|
|
10
10
|
var _ = /* @__PURE__ */ "SMALLINT.INTEGER.INT.BIGINT.DECIMAL.NUMERIC.REAL.DOUBLE PRECISION.SMALLSERIAL.SERIAL.BIGSERIAL.FLOAT.MONEY.CHARACTER.CHAR.CHARACTER VARYING.VARCHAR.TEXT.NAME.BPCHAR.BYTEA.TIMESTAMP.TIMESTAMP WITH TIME ZONE.TIMESTAMP WITHOUT TIME ZONE.DATE.TIME.TIME WITH TIME ZONE.TIME WITHOUT TIME ZONE.INTERVAL.BOOLEAN.BOOL.POINT.LINE.LSEG.BOX.PATH.POLYGON.CIRCLE.CIDR.INET.MACADDR.MACADDR8.BIT.BIT VARYING.VARBIT.UUID.XML.JSON.JSONB.INT4RANGE.INT8RANGE.NUMRANGE.TSRANGE.TSTZRANGE.DATERANGE.OID.REGCLASS.REGCOLLATION.REGCONFIG.REGDICTIONARY.REGNAMESPACE.REGOPER.REGOPERATOR.REGPROC.REGPROCEDURE.REGROLE.REGTYPE.PG_LSN.VOID.RECORD.TRIGGER.EVENT_TRIGGER.PG_DDL_COMMAND.UNKNOWN.ANYELEMENT.ANYARRAY.ANYNONARRAY.ANYENUM.ANYRANGE.ANY.CSTRING.INTERNAL.LANGUAGE_HANDLER.FDW_HANDLER.INDEX_AM_HANDLER.TSM_HANDLER.OPAQUE".split("."), v = ["USER"], y = class r {
|
|
11
11
|
static exportRecords(e) {
|
|
@@ -191,5 +191,4 @@ var _ = /* @__PURE__ */ "SMALLINT.INTEGER.INT.BIGINT.DECIMAL.NUMERIC.REAL.DOUBLE
|
|
|
191
191
|
return t(u.schemas, u.enums, u.tables, u.indexes, u.comments, u.refs, f).join("\n");
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
//#endregion
|
|
195
194
|
export { y as default };
|
|
@@ -4,7 +4,7 @@ import n from "../node_modules/lodash-es/isEmpty.mjs";
|
|
|
4
4
|
import { init_lodash as r } from "../node_modules/lodash-es/lodash.mjs";
|
|
5
5
|
import { buildJunctionFields1 as i, buildJunctionFields2 as a, buildNewTableName as o, shouldPrintSchema as s } from "./utils.mjs";
|
|
6
6
|
import { isBinaryType as c, isBooleanType as l, isDateTimeType as u, isNumericType as d, isStringType as f, parseCardinality as p } from "@dbml/parse";
|
|
7
|
-
|
|
7
|
+
// src/export/SqlServerExporter.js
|
|
8
8
|
r();
|
|
9
9
|
var m = class r {
|
|
10
10
|
static exportRecords(e) {
|
|
@@ -164,5 +164,4 @@ var m = class r {
|
|
|
164
164
|
return t(c.schemas, c.enums, c.tables, c.indexes, c.comments, c.refs, u).join("\n");
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
//#endregion
|
|
168
167
|
export { m as default };
|
package/lib/export/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../parse/Parser.mjs";
|
|
2
2
|
import t from "./ModelExporter.mjs";
|
|
3
|
-
|
|
3
|
+
// src/export/index.ts
|
|
4
4
|
function n(n, i, a = {
|
|
5
5
|
isNormalized: !0,
|
|
6
6
|
includeRecords: !0
|
|
@@ -20,5 +20,4 @@ function r(e = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
var i = { export: n };
|
|
23
|
-
//#endregion
|
|
24
23
|
export { i as default, r as normalizeExportOptions };
|
package/lib/export/utils.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DateTime as e } from "../node_modules/luxon/build/es6/luxon.mjs";
|
|
2
2
|
import "../model_structure/config.mjs";
|
|
3
3
|
import { tryExtractDateTime as t } from "@dbml/parse";
|
|
4
|
-
|
|
4
|
+
// src/export/utils.ts
|
|
5
5
|
function n(e) {
|
|
6
6
|
return /\s/g.test(e);
|
|
7
7
|
}
|
|
@@ -63,5 +63,4 @@ function u(n) {
|
|
|
63
63
|
function d(e, t) {
|
|
64
64
|
return t ? e.toFormat("yyyy-MM-dd HH:mm:ss.SSS ZZ") : e.toUTC().toFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
export { a as buildJunctionFields1, o as buildJunctionFields2, s as buildNewTableName, c as buildUniqueTableName, l as escapeObjectName, d as formatDatetimeForOracle, n as hasWhiteSpace, r as hasWhiteSpaceOrUpperCase, u as parseIsoDatetime, i as shouldPrintSchema };
|
package/lib/import/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../parse/Parser.mjs";
|
|
2
2
|
import t from "../export/ModelExporter.mjs";
|
|
3
3
|
import { generateDatabase as n } from "../parse/databaseGenerator.mjs";
|
|
4
|
-
|
|
4
|
+
// src/import/index.ts
|
|
5
5
|
function r(n, r, i = { includeRecords: !0 }) {
|
|
6
6
|
let { includeRecords: a = !0 } = i, o = new e().parse(n, r);
|
|
7
7
|
return t.export(o.normalize(), "dbml", { includeRecords: a });
|
|
@@ -14,5 +14,4 @@ var a = {
|
|
|
14
14
|
import: r,
|
|
15
15
|
generateDbml: i
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { a as default };
|
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("./_virtual/_rolldown/runtime.cjs");const e=require("./parse/error.cjs"),t=require("./parse/Parser.cjs"),n=require("./export/index.cjs"),r=require("./export/ModelExporter.cjs"),i=require("./import/index.cjs"),a=require("./transform/index.cjs"),o=require("./utils/version.cjs"),s=require("./transform/relations.cjs");let c=require("@dbml/parse");Object.defineProperty(exports,"CARDINALITY_MANY",{enumerable:!0,get:function(){return c.CARDINALITY_MANY}}),Object.defineProperty(exports,"CARDINALITY_MAYBE",{enumerable:!0,get:function(){return c.CARDINALITY_MAYBE}}),Object.defineProperty(exports,"CARDINALITY_ONE",{enumerable:!0,get:function(){return c.CARDINALITY_ONE}}),Object.defineProperty(exports,"CARDINALITY_SOME",{enumerable:!0,get:function(){return c.CARDINALITY_SOME}}),Object.defineProperty(exports,"CompileError",{enumerable:!0,get:function(){return c.CompileError}}),Object.defineProperty(exports,"CompileErrorCode",{enumerable:!0,get:function(){return c.CompileErrorCode}}),Object.defineProperty(exports,"CompileInfo",{enumerable:!0,get:function(){return c.CompileInfo}}),Object.defineProperty(exports,"CompileWarning",{enumerable:!0,get:function(){return c.CompileWarning}}),exports.CompilerDiagnostics=e.CompilerDiagnostics,Object.defineProperty(exports,"DEFAULT_ENTRY",{enumerable:!0,get:function(){return c.DEFAULT_ENTRY}}),Object.defineProperty(exports,"Filepath",{enumerable:!0,get:function(){return c.Filepath}}),Object.defineProperty(exports,"MetadataKind",{enumerable:!0,get:function(){return c.MetadataKind}}),exports.ModelExporter=r.default,exports.Parser=t.default,Object.defineProperty(exports,"SymbolKind",{enumerable:!0,get:function(){return c.SymbolKind}}),exports.VERSION=o.VERSION,Object.defineProperty(exports,"addDoubleQuoteIfNeeded",{enumerable:!0,get:function(){return c.addDoubleQuoteIfNeeded}}),Object.defineProperty(exports,"dbmlMonarchTokensProvider",{enumerable:!0,get:function(){return c.dbmlMonarchTokensProvider}}),exports.exporter=n.default,Object.defineProperty(exports,"findDiagramViewBlocks",{enumerable:!0,get:function(){return c.findDiagramViewBlocks}}),Object.defineProperty(exports,"
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("./_virtual/_rolldown/runtime.cjs");const e=require("./parse/error.cjs"),t=require("./parse/Parser.cjs"),n=require("./export/index.cjs"),r=require("./export/ModelExporter.cjs"),i=require("./import/index.cjs"),a=require("./transform/index.cjs"),o=require("./utils/version.cjs"),s=require("./transform/relations.cjs");let c=require("@dbml/parse");Object.defineProperty(exports,"CARDINALITY_MANY",{enumerable:!0,get:function(){return c.CARDINALITY_MANY}}),Object.defineProperty(exports,"CARDINALITY_MAYBE",{enumerable:!0,get:function(){return c.CARDINALITY_MAYBE}}),Object.defineProperty(exports,"CARDINALITY_ONE",{enumerable:!0,get:function(){return c.CARDINALITY_ONE}}),Object.defineProperty(exports,"CARDINALITY_SOME",{enumerable:!0,get:function(){return c.CARDINALITY_SOME}}),Object.defineProperty(exports,"CompileError",{enumerable:!0,get:function(){return c.CompileError}}),Object.defineProperty(exports,"CompileErrorCode",{enumerable:!0,get:function(){return c.CompileErrorCode}}),Object.defineProperty(exports,"CompileInfo",{enumerable:!0,get:function(){return c.CompileInfo}}),Object.defineProperty(exports,"CompileWarning",{enumerable:!0,get:function(){return c.CompileWarning}}),exports.CompilerDiagnostics=e.CompilerDiagnostics,Object.defineProperty(exports,"DEFAULT_ENTRY",{enumerable:!0,get:function(){return c.DEFAULT_ENTRY}}),Object.defineProperty(exports,"Filepath",{enumerable:!0,get:function(){return c.Filepath}}),Object.defineProperty(exports,"MetadataKind",{enumerable:!0,get:function(){return c.MetadataKind}}),exports.ModelExporter=r.default,exports.Parser=t.default,Object.defineProperty(exports,"SymbolKind",{enumerable:!0,get:function(){return c.SymbolKind}}),exports.VERSION=o.VERSION,Object.defineProperty(exports,"addDoubleQuoteIfNeeded",{enumerable:!0,get:function(){return c.addDoubleQuoteIfNeeded}}),Object.defineProperty(exports,"applyTextEdits",{enumerable:!0,get:function(){return c.applyTextEdits}}),Object.defineProperty(exports,"dbmlMonarchTokensProvider",{enumerable:!0,get:function(){return c.dbmlMonarchTokensProvider}}),exports.exporter=n.default,Object.defineProperty(exports,"findDiagramViewBlocks",{enumerable:!0,get:function(){return c.findDiagramViewBlocks}}),Object.defineProperty(exports,"formatTypedValue",{enumerable:!0,get:function(){return c.formatTypedValue}}),Object.defineProperty(exports,"getMultiplicities",{enumerable:!0,get:function(){return c.getMultiplicities}}),Object.defineProperty(exports,"getRelationshipOp",{enumerable:!0,get:function(){return c.getRelationshipOp}}),exports.importer=i.default,exports.inferMultiplicitiesFromColumns=s.inferMultiplicitiesFromColumns,Object.defineProperty(exports,"isBinaryType",{enumerable:!0,get:function(){return c.isBinaryType}}),Object.defineProperty(exports,"isBooleanType",{enumerable:!0,get:function(){return c.isBooleanType}}),Object.defineProperty(exports,"isDateTimeType",{enumerable:!0,get:function(){return c.isDateTimeType}}),Object.defineProperty(exports,"isEndpointManySide",{enumerable:!0,get:function(){return c.isEndpointManySide}}),Object.defineProperty(exports,"isEndpointOneSide",{enumerable:!0,get:function(){return c.isEndpointOneSide}}),Object.defineProperty(exports,"isEndpointOptional",{enumerable:!0,get:function(){return c.isEndpointOptional}}),Object.defineProperty(exports,"isEndpointRequired",{enumerable:!0,get:function(){return c.isEndpointRequired}}),Object.defineProperty(exports,"isFloatType",{enumerable:!0,get:function(){return c.isFloatType}}),Object.defineProperty(exports,"isIntegerType",{enumerable:!0,get:function(){return c.isIntegerType}}),Object.defineProperty(exports,"isNumericType",{enumerable:!0,get:function(){return c.isNumericType}}),Object.defineProperty(exports,"isSerialType",{enumerable:!0,get:function(){return c.isSerialType}}),Object.defineProperty(exports,"isStringType",{enumerable:!0,get:function(){return c.isStringType}}),Object.defineProperty(exports,"makeRelationshipRequired",{enumerable:!0,get:function(){return c.makeRelationshipRequired}}),exports.renameTable=a.renameTable,exports.syncDep=a.syncDep,exports.syncDiagramView=a.syncDiagramView,Object.defineProperty(exports,"syncElementMetadata",{enumerable:!0,get:function(){return c.syncElementMetadata}}),Object.defineProperty(exports,"tryExtractBoolean",{enumerable:!0,get:function(){return c.tryExtractBoolean}}),Object.defineProperty(exports,"tryExtractDateTime",{enumerable:!0,get:function(){return c.tryExtractDateTime}}),Object.defineProperty(exports,"tryExtractEnum",{enumerable:!0,get:function(){return c.tryExtractEnum}}),Object.defineProperty(exports,"tryExtractInteger",{enumerable:!0,get:function(){return c.tryExtractInteger}}),Object.defineProperty(exports,"tryExtractNumeric",{enumerable:!0,get:function(){return c.tryExtractNumeric}}),Object.defineProperty(exports,"tryExtractString",{enumerable:!0,get:function(){return c.tryExtractString}}),exports.updateElementSetting=a.updateElementSetting,exports.updateElementSettingEdit=a.updateElementSettingEdit;
|
package/lib/index.mjs
CHANGED
|
@@ -6,5 +6,5 @@ import i from "./import/index.mjs";
|
|
|
6
6
|
import { findDiagramViewBlocks as a, renameTable as o, syncDep as s, syncDiagramView as c, updateElementSetting as l, updateElementSettingEdit as u } from "./transform/index.mjs";
|
|
7
7
|
import { VERSION as d } from "./utils/version.mjs";
|
|
8
8
|
import { inferMultiplicitiesFromColumns as f } from "./transform/relations.mjs";
|
|
9
|
-
import { CARDINALITY_MANY as p, CARDINALITY_MAYBE as m, CARDINALITY_ONE as h, CARDINALITY_SOME as g, CompileError as _, CompileErrorCode as v, CompileInfo as y, CompileWarning as b, DEFAULT_ENTRY as x, Filepath as S, MetadataKind as C, SymbolKind as w, addDoubleQuoteIfNeeded as T,
|
|
10
|
-
export { p as CARDINALITY_MANY, m as CARDINALITY_MAYBE, h as CARDINALITY_ONE, g as CARDINALITY_SOME, _ as CompileError, v as CompileErrorCode, y as CompileInfo, b as CompileWarning, e as CompilerDiagnostics, x as DEFAULT_ENTRY, S as Filepath, C as MetadataKind, r as ModelExporter, t as Parser, w as SymbolKind, d as VERSION, T as addDoubleQuoteIfNeeded, E as dbmlMonarchTokensProvider, n as exporter, a as findDiagramViewBlocks,
|
|
9
|
+
import { CARDINALITY_MANY as p, CARDINALITY_MAYBE as m, CARDINALITY_ONE as h, CARDINALITY_SOME as g, CompileError as _, CompileErrorCode as v, CompileInfo as y, CompileWarning as b, DEFAULT_ENTRY as x, Filepath as S, MetadataKind as C, SymbolKind as w, addDoubleQuoteIfNeeded as T, applyTextEdits as E, dbmlMonarchTokensProvider as D, formatTypedValue as O, getMultiplicities as k, getRelationshipOp as A, isBinaryType as j, isBooleanType as M, isDateTimeType as N, isEndpointManySide as P, isEndpointOneSide as F, isEndpointOptional as I, isEndpointRequired as L, isFloatType as R, isIntegerType as z, isNumericType as B, isSerialType as V, isStringType as H, makeRelationshipRequired as U, syncElementMetadata as W, tryExtractBoolean as G, tryExtractDateTime as K, tryExtractEnum as q, tryExtractInteger as J, tryExtractNumeric as Y, tryExtractString as X } from "@dbml/parse";
|
|
10
|
+
export { p as CARDINALITY_MANY, m as CARDINALITY_MAYBE, h as CARDINALITY_ONE, g as CARDINALITY_SOME, _ as CompileError, v as CompileErrorCode, y as CompileInfo, b as CompileWarning, e as CompilerDiagnostics, x as DEFAULT_ENTRY, S as Filepath, C as MetadataKind, r as ModelExporter, t as Parser, w as SymbolKind, d as VERSION, T as addDoubleQuoteIfNeeded, E as applyTextEdits, D as dbmlMonarchTokensProvider, n as exporter, a as findDiagramViewBlocks, O as formatTypedValue, k as getMultiplicities, A as getRelationshipOp, i as importer, f as inferMultiplicitiesFromColumns, j as isBinaryType, M as isBooleanType, N as isDateTimeType, P as isEndpointManySide, F as isEndpointOneSide, I as isEndpointOptional, L as isEndpointRequired, R as isFloatType, z as isIntegerType, B as isNumericType, V as isSerialType, H as isStringType, U as makeRelationshipRequired, o as renameTable, s as syncDep, c as syncDiagramView, W as syncElementMetadata, G as tryExtractBoolean, K as tryExtractDateTime, q as tryExtractEnum, J as tryExtractInteger, Y as tryExtractNumeric, X as tryExtractString, l as updateElementSetting, u as updateElementSettingEdit };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "./element.mjs";
|
|
2
|
-
|
|
2
|
+
// src/model_structure/check.ts
|
|
3
3
|
var t = class extends e {
|
|
4
4
|
constructor({ token: e, name: t, expression: n, table: r, column: i = null, injectedPartial: a = null }) {
|
|
5
5
|
super(e), this.name = t, this.expression = n, this.table = r, this.column = i, this.injectedPartial = a, this.dbState = this.table.dbState, this.generateId();
|
|
@@ -31,5 +31,4 @@ var t = class extends e {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { t as default };
|
|
@@ -13,7 +13,7 @@ import h from "./schema.mjs";
|
|
|
13
13
|
import g from "./stickyNote.mjs";
|
|
14
14
|
import _ from "./tablePartial.mjs";
|
|
15
15
|
import { makeCardinalityRequired as v, parseCardinality as y } from "@dbml/parse";
|
|
16
|
-
|
|
16
|
+
// src/model_structure/database.ts
|
|
17
17
|
n();
|
|
18
18
|
var b = class extends l {
|
|
19
19
|
constructor({ schemas: t = [], tables: n = [], notes: l = [], enums: u = [], refs: d = [], deps: p = [], tableGroups: m = [], project: h = {}, aliases: g = [], records: _ = [], tablePartials: v = [], diagramViews: y = [] } = {}) {
|
|
@@ -215,5 +215,4 @@ var b = class extends l {
|
|
|
215
215
|
}), this.tablePartials.forEach((t) => t.normalize(e)), e;
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
//#endregion
|
|
219
218
|
export { b as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/model_structure/dbState.ts
|
|
2
2
|
var e = class {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.dbId = 1, this.schemaId = 1, this.enumId = 1, this.tableGroupId = 1, this.refId = 1, this.depId = 1, this.depEdgeId = 1, this.tableId = 1, this.noteId = 1, this.enumValueId = 1, this.endpointId = 1, this.indexId = 1, this.checkId = 1, this.fieldId = 1, this.indexColumnId = 1, this.recordId = 1, this.tablePartialId = 1;
|
|
@@ -8,5 +8,4 @@ var e = class {
|
|
|
8
8
|
return this[e] += 1, t;
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { e as default };
|
|
@@ -3,7 +3,7 @@ import { init_lodash as t } from "../node_modules/lodash-es/lodash.mjs";
|
|
|
3
3
|
import "./config.mjs";
|
|
4
4
|
import n from "./element.mjs";
|
|
5
5
|
import r from "./depEdge.mjs";
|
|
6
|
-
|
|
6
|
+
// src/model_structure/dep.ts
|
|
7
7
|
t();
|
|
8
8
|
var i = class extends n {
|
|
9
9
|
constructor({ name: t, color: n, note: r, metadata: i, edges: a, token: o, schema: s = {} }) {
|
|
@@ -53,5 +53,4 @@ var i = class extends n {
|
|
|
53
53
|
}, this.edges.forEach((t) => t.normalize(e));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { i as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./config.mjs";
|
|
2
2
|
import { shouldPrintSchema as e, shouldPrintSchemaName as t } from "./utils.mjs";
|
|
3
3
|
import n from "./element.mjs";
|
|
4
|
-
|
|
4
|
+
// src/model_structure/depEdge.ts
|
|
5
5
|
var r = class extends n {
|
|
6
6
|
constructor({ upstream: e, downstream: t, token: n, dep: r }) {
|
|
7
7
|
super(n), this.upstream = {
|
|
@@ -55,5 +55,4 @@ var r = class extends n {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { r as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/model_structure/element.js
|
|
2
2
|
var e = class extends Error {
|
|
3
3
|
constructor(e, t = { start: {
|
|
4
4
|
line: 1,
|
|
@@ -17,5 +17,4 @@ var e = class extends Error {
|
|
|
17
17
|
throw new e(t, this.token);
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { t as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./config.mjs";
|
|
2
2
|
import { shouldPrintSchema as e, shouldPrintSchemaName as t } from "./utils.mjs";
|
|
3
3
|
import n from "./element.mjs";
|
|
4
|
-
|
|
4
|
+
// src/model_structure/endpoint.js
|
|
5
5
|
var r = class extends n {
|
|
6
6
|
constructor({ tableName: e, schemaName: n, fieldNames: r, relation: i, token: a, ref: o }) {
|
|
7
7
|
super(a), this.relation = i, this.schemaName = n, this.tableName = e, this.fieldNames = r, this.fields = [], this.ref = o, this.dbState = this.ref.dbState, this.generateId();
|
|
@@ -59,5 +59,4 @@ var r = class extends n {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { r as default };
|
|
@@ -3,7 +3,7 @@ import { init_lodash as t } from "../node_modules/lodash-es/lodash.mjs";
|
|
|
3
3
|
import { shouldPrintSchema as n } from "./utils.mjs";
|
|
4
4
|
import r from "./element.mjs";
|
|
5
5
|
import i from "./enumValue.mjs";
|
|
6
|
-
|
|
6
|
+
// src/model_structure/enum.js
|
|
7
7
|
t();
|
|
8
8
|
var a = class extends r {
|
|
9
9
|
constructor({ name: t, token: n, values: r, note: i, schema: a, noteToken: o = null } = {}) {
|
|
@@ -65,5 +65,4 @@ var a = class extends r {
|
|
|
65
65
|
}, this.values.forEach((t) => t.normalize(e));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { a as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../node_modules/lodash-es/get.mjs";
|
|
2
2
|
import { init_lodash as t } from "../node_modules/lodash-es/lodash.mjs";
|
|
3
3
|
import n from "./element.mjs";
|
|
4
|
-
|
|
4
|
+
// src/model_structure/enumValue.js
|
|
5
5
|
t();
|
|
6
6
|
var r = class extends n {
|
|
7
7
|
constructor({ name: t, token: n, note: r, _enum: i, noteToken: a = null } = {}) {
|
|
@@ -30,5 +30,4 @@ var r = class extends n {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { r as default };
|
|
@@ -3,7 +3,7 @@ import { init_lodash as t } from "../node_modules/lodash-es/lodash.mjs";
|
|
|
3
3
|
import "./config.mjs";
|
|
4
4
|
import n from "./element.mjs";
|
|
5
5
|
import r from "./check.mjs";
|
|
6
|
-
|
|
6
|
+
// src/model_structure/field.ts
|
|
7
7
|
t();
|
|
8
8
|
var i = class extends n {
|
|
9
9
|
constructor({ name: t, type: n, unique: r, pk: i, token: a, not_null: o, note: s, dbdefault: c, increment: l, checks: u = [], table: d = {}, noteToken: f = null, injectedPartial: p = null, injectedToken: m = null, metadata: h = {} }) {
|
|
@@ -81,5 +81,4 @@ var i = class extends n {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
//#endregion
|
|
85
84
|
export { i as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "./element.mjs";
|
|
2
|
-
|
|
2
|
+
// src/model_structure/indexColumn.js
|
|
3
3
|
var t = class extends e {
|
|
4
4
|
constructor({ type: e, value: t, index: n, token: r }) {
|
|
5
5
|
super(), this.type = e, this.value = t, this.index = n, this.token = r, this.dbState = this.index.dbState, this.generateId();
|
|
@@ -27,5 +27,4 @@ var t = class extends e {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { t as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./element.mjs";
|
|
2
2
|
import t from "./indexColumn.mjs";
|
|
3
|
-
|
|
3
|
+
// src/model_structure/indexes.js
|
|
4
4
|
var n = class extends e {
|
|
5
5
|
constructor({ columns: e, type: t, unique: n, pk: r, token: i, name: a, note: o, table: s = {}, injectedPartial: c = null } = {}) {
|
|
6
6
|
super(i), this.name = a, this.type = t, this.unique = n, this.note = o ? o.value : null, this.noteToken = o ? o.token : null, this.pk = r, this.columns = [], this.table = s, this.injectedPartial = c, this.dbState = this.table.dbState, this.generateId(), this.processIndexColumns(e);
|
|
@@ -56,5 +56,4 @@ var n = class extends e {
|
|
|
56
56
|
}, this.columns.forEach((t) => t.normalize(e));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
export { n as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./config.mjs";
|
|
2
2
|
import e from "./element.mjs";
|
|
3
3
|
import t from "./endpoint.mjs";
|
|
4
|
-
|
|
4
|
+
// src/model_structure/ref.js
|
|
5
5
|
function n(e, t) {
|
|
6
6
|
return e[0].equals(t[0]) && e[1].equals(t[1]);
|
|
7
7
|
}
|
|
@@ -57,5 +57,4 @@ var r = class extends e {
|
|
|
57
57
|
}, this.endpoints.forEach((t) => t.normalize(e));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
//#endregion
|
|
61
60
|
export { r as default };
|
|
@@ -7,7 +7,7 @@ import a from "./enum.mjs";
|
|
|
7
7
|
import o from "./ref.mjs";
|
|
8
8
|
import s from "./table.mjs";
|
|
9
9
|
import c from "./tableGroup.mjs";
|
|
10
|
-
|
|
10
|
+
// src/model_structure/schema.ts
|
|
11
11
|
t();
|
|
12
12
|
var l = class extends r {
|
|
13
13
|
constructor({ name: t, alias: n, note: r, tables: i = [], refs: a = [], deps: o = [], enums: s = [], tableGroups: c = [], token: l, database: u = {}, noteToken: d = null } = {}) {
|
|
@@ -135,5 +135,4 @@ var l = class extends r {
|
|
|
135
135
|
}, this.tables.forEach((t) => t.normalize(e)), this.enums.forEach((t) => t.normalize(e)), this.tableGroups.forEach((t) => t.normalize(e)), this.refs.forEach((t) => t.normalize(e)), this.deps.forEach((t) => t.normalize(e));
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
|
-
//#endregion
|
|
139
138
|
export { l as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "./element.mjs";
|
|
2
|
-
|
|
2
|
+
// src/model_structure/stickyNote.ts
|
|
3
3
|
var t = class extends e {
|
|
4
4
|
constructor({ name: e, content: t, color: n, token: r, database: i = {}, metadata: a = {} }) {
|
|
5
5
|
super(r), this.name = e, this.content = t, this.color = n, this.metadata = a, this.database = i, this.dbState = this.database.dbState, this.generateId();
|
|
@@ -22,5 +22,4 @@ var t = class extends e {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { t as default };
|
|
@@ -8,7 +8,7 @@ import a from "./check.mjs";
|
|
|
8
8
|
import o from "./field.mjs";
|
|
9
9
|
import s from "./indexes.mjs";
|
|
10
10
|
import { getMultiplicities as c } from "@dbml/parse";
|
|
11
|
-
|
|
11
|
+
// src/model_structure/table.ts
|
|
12
12
|
n();
|
|
13
13
|
var l = class extends i {
|
|
14
14
|
constructor({ name: t, alias: n, note: r, fields: i = [], indexes: a = [], checks: o = [], schema: s = {}, token: c, headerColor: l, noteToken: u = null, partials: d = [], metadata: f = {} }) {
|
|
@@ -166,5 +166,4 @@ var l = class extends i {
|
|
|
166
166
|
}, this.fields.forEach((t) => t.normalize(e)), this.indexes.forEach((t) => t.normalize(e)), this.checks.forEach((t) => t.normalize(e));
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
|
-
//#endregion
|
|
170
169
|
export { l as default };
|
|
@@ -2,7 +2,7 @@ import e from "../node_modules/lodash-es/get.mjs";
|
|
|
2
2
|
import { init_lodash as t } from "../node_modules/lodash-es/lodash.mjs";
|
|
3
3
|
import { shouldPrintSchema as n } from "./utils.mjs";
|
|
4
4
|
import r from "./element.mjs";
|
|
5
|
-
|
|
5
|
+
// src/model_structure/tableGroup.ts
|
|
6
6
|
t();
|
|
7
7
|
var i = class extends r {
|
|
8
8
|
constructor({ name: t, token: n, tables: r = [], schema: i = {}, note: a, color: o, noteToken: s = null, metadata: c = {} }) {
|
|
@@ -58,5 +58,4 @@ var i = class extends r {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
export { i as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../node_modules/lodash-es/get.mjs";
|
|
2
2
|
import { init_lodash as t } from "../node_modules/lodash-es/lodash.mjs";
|
|
3
3
|
import n from "./element.mjs";
|
|
4
|
-
|
|
4
|
+
// src/model_structure/tablePartial.js
|
|
5
5
|
t();
|
|
6
6
|
var r = class extends n {
|
|
7
7
|
constructor({ name: t, note: n, fields: r = [], indexes: i = [], checks: a = [], token: o, headerColor: s, noteToken: c = null, dbState: l } = {}) {
|
|
@@ -29,5 +29,4 @@ var r = class extends n {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { r as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_SCHEMA_NAME as e } from "./config.mjs";
|
|
2
|
-
|
|
2
|
+
// src/model_structure/utils.js
|
|
3
3
|
function t(e) {
|
|
4
4
|
return e.name !== "public" || e.name === "public" && e.database.hasDefaultSchema;
|
|
5
5
|
}
|
|
6
6
|
function n(t) {
|
|
7
7
|
return t !== e;
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { t as shouldPrintSchema, n as shouldPrintSchemaName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/antlr4/dist/antlr4.web.mjs
|
|
2
2
|
var e = { 763: () => {} }, t = {};
|
|
3
3
|
function n(r) {
|
|
4
4
|
var i = t[r];
|
|
@@ -4055,5 +4055,4 @@ r.Uw;
|
|
|
4055
4055
|
var qt = r.gw;
|
|
4056
4056
|
r.iX, r.re, r.Pg, r.tD, r.R$, r.Dj, r.m7, r.NZ, r.xo, r.ou, r.qC, r.mD;
|
|
4057
4057
|
var Jt = r.Ay;
|
|
4058
|
-
//#endregion
|
|
4059
4058
|
export { Kt as ParseTreeListener, qt as ParseTreeWalker, Jt as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { __esmMin as e } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import t, { init__root as n } from "./_root.mjs";
|
|
3
3
|
import r, { init__getNative as i } from "./_getNative.mjs";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/lodash-es/_DataView.js
|
|
5
5
|
var a, o = e((() => {
|
|
6
6
|
i(), n(), a = r(t, "DataView");
|
|
7
7
|
}));
|
|
8
|
-
//#endregion
|
|
9
8
|
o();
|
|
10
9
|
export { a as default, o as init__DataView };
|
|
@@ -4,7 +4,7 @@ import r, { init__hashDelete as i } from "./_hashDelete.mjs";
|
|
|
4
4
|
import a, { init__hashGet as o } from "./_hashGet.mjs";
|
|
5
5
|
import s, { init__hashHas as c } from "./_hashHas.mjs";
|
|
6
6
|
import l, { init__hashSet as u } from "./_hashSet.mjs";
|
|
7
|
-
|
|
7
|
+
// ../../node_modules/lodash-es/_Hash.js
|
|
8
8
|
function d(e) {
|
|
9
9
|
var t = -1, n = e == null ? 0 : e.length;
|
|
10
10
|
for (this.clear(); ++t < n;) {
|
|
@@ -15,6 +15,5 @@ function d(e) {
|
|
|
15
15
|
var f = e((() => {
|
|
16
16
|
n(), i(), o(), c(), u(), d.prototype.clear = t, d.prototype.delete = r, d.prototype.get = a, d.prototype.has = s, d.prototype.set = l;
|
|
17
17
|
}));
|
|
18
|
-
//#endregion
|
|
19
18
|
f();
|
|
20
19
|
export { d as default, f as init__Hash };
|
|
@@ -4,7 +4,7 @@ import r, { init__listCacheDelete as i } from "./_listCacheDelete.mjs";
|
|
|
4
4
|
import a, { init__listCacheGet as o } from "./_listCacheGet.mjs";
|
|
5
5
|
import s, { init__listCacheHas as c } from "./_listCacheHas.mjs";
|
|
6
6
|
import l, { init__listCacheSet as u } from "./_listCacheSet.mjs";
|
|
7
|
-
|
|
7
|
+
// ../../node_modules/lodash-es/_ListCache.js
|
|
8
8
|
function d(e) {
|
|
9
9
|
var t = -1, n = e == null ? 0 : e.length;
|
|
10
10
|
for (this.clear(); ++t < n;) {
|
|
@@ -15,6 +15,5 @@ function d(e) {
|
|
|
15
15
|
var f = e((() => {
|
|
16
16
|
n(), i(), o(), c(), u(), d.prototype.clear = t, d.prototype.delete = r, d.prototype.get = a, d.prototype.has = s, d.prototype.set = l;
|
|
17
17
|
}));
|
|
18
|
-
//#endregion
|
|
19
18
|
f();
|
|
20
19
|
export { d as default, f as init__ListCache };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { __esmMin as e } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import t, { init__root as n } from "./_root.mjs";
|
|
3
3
|
import r, { init__getNative as i } from "./_getNative.mjs";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/lodash-es/_Map.js
|
|
5
5
|
var a, o = e((() => {
|
|
6
6
|
i(), n(), a = r(t, "Map");
|
|
7
7
|
}));
|
|
8
|
-
//#endregion
|
|
9
8
|
o();
|
|
10
9
|
export { a as default, o as init__Map };
|
|
@@ -4,7 +4,7 @@ import r, { init__mapCacheDelete as i } from "./_mapCacheDelete.mjs";
|
|
|
4
4
|
import a, { init__mapCacheGet as o } from "./_mapCacheGet.mjs";
|
|
5
5
|
import s, { init__mapCacheHas as c } from "./_mapCacheHas.mjs";
|
|
6
6
|
import l, { init__mapCacheSet as u } from "./_mapCacheSet.mjs";
|
|
7
|
-
|
|
7
|
+
// ../../node_modules/lodash-es/_MapCache.js
|
|
8
8
|
function d(e) {
|
|
9
9
|
var t = -1, n = e == null ? 0 : e.length;
|
|
10
10
|
for (this.clear(); ++t < n;) {
|
|
@@ -15,6 +15,5 @@ function d(e) {
|
|
|
15
15
|
var f = e((() => {
|
|
16
16
|
n(), i(), o(), c(), u(), d.prototype.clear = t, d.prototype.delete = r, d.prototype.get = a, d.prototype.has = s, d.prototype.set = l;
|
|
17
17
|
}));
|
|
18
|
-
//#endregion
|
|
19
18
|
f();
|
|
20
19
|
export { d as default, f as init__MapCache };
|