@dbml/cli 11.0.0-alpha.6 → 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/LICENSE +0 -0
- package/README.md +0 -0
- package/__tests__/cli.test.ts +0 -0
- package/__tests__/db2dbml/mssql/options.json +0 -0
- package/__tests__/db2dbml/mssql/schema.sql +0 -0
- package/__tests__/db2dbml/mssql/stdout.txt +0 -0
- package/__tests__/db2dbml/mysql/options.json +0 -0
- package/__tests__/db2dbml/mysql/schema.sql +0 -0
- package/__tests__/db2dbml/mysql/stdout.txt +0 -0
- package/__tests__/db2dbml/oracle/options.json +0 -0
- package/__tests__/db2dbml/oracle/schema.sql +0 -0
- package/__tests__/db2dbml/oracle/stdout.txt +0 -0
- package/__tests__/db2dbml/postgres/options.json +0 -0
- package/__tests__/db2dbml/postgres/schema.sql +0 -0
- package/__tests__/db2dbml/postgres/stdout.txt +0 -0
- package/__tests__/db2dbml_bin.js +0 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filename --mysql stdout/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --mysql stdout/options.json +0 -0
- package/__tests__/dbml2sql/filename --mysql stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/filename --oracle --out-file/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --oracle --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filename --oracle --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filename --oracle stdout/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --oracle stdout/options.json +0 -0
- package/__tests__/dbml2sql/filename --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filename --out-file/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filename --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filename --postgres --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filename --postgres --out-file/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --postgres --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filename --postgres --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filename --postgres stdout/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename --postgres stdout/options.json +0 -0
- package/__tests__/dbml2sql/filename --postgres stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/filename stdout/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/filename stdout/options.json +0 -0
- package/__tests__/dbml2sql/filename stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --mysql stdout/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --mysql stdout/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --mysql stdout/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --mysql stdout/options.json +0 -0
- package/__tests__/dbml2sql/filenames --mysql stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --oracle stdout/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --oracle stdout/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --oracle stdout/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --oracle stdout/options.json +0 -0
- package/__tests__/dbml2sql/filenames --oracle stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filenames --out-file/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --out-file/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --out-file/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filenames --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/expect-out-files/schema.sql +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/options.json +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames --postgres stdout/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames --postgres stdout/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames --postgres stdout/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames --postgres stdout/options.json +0 -0
- package/__tests__/dbml2sql/filenames --postgres stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/filenames stdout/in-files/business.dbml +0 -0
- package/__tests__/dbml2sql/filenames stdout/in-files/customer.dbml +0 -0
- package/__tests__/dbml2sql/filenames stdout/in-files/inventory.dbml +0 -0
- package/__tests__/dbml2sql/filenames stdout/options.json +0 -0
- package/__tests__/dbml2sql/filenames stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filename --mysql stdout → __tests__/dbml2sql/multifile --postgres stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile --postgres stdout/in-files/main.dbml +2 -0
- package/__tests__/dbml2sql/multifile --postgres stdout/in-files/sub/orders.dbml +6 -0
- package/__tests__/dbml2sql/multifile --postgres stdout/in-files/types.dbml +4 -0
- package/__tests__/dbml2sql/multifile --postgres stdout/options.json +6 -0
- package/__tests__/dbml2sql/multifile --postgres stdout/stdout.txt +12 -0
- package/{__test__/dbml2sql/filename --oracle --out-file → __tests__/dbml2sql/multifile aliased import stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile aliased import stdout/in-files/auth.dbml +0 -0
- package/__tests__/dbml2sql/multifile aliased import stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile aliased import stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile aliased import stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filename --oracle stdout → __tests__/dbml2sql/multifile circular import stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile circular import stdout/in-files/a.dbml +0 -0
- package/__tests__/dbml2sql/multifile circular import stdout/in-files/b.dbml +0 -0
- package/__tests__/dbml2sql/multifile circular import stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile circular import stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filename --postgres stdout → __tests__/dbml2sql/multifile complex stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile complex stdout/in-files/auth.dbml +0 -0
- package/__tests__/dbml2sql/multifile complex stdout/in-files/catalog.dbml +0 -0
- package/__tests__/dbml2sql/multifile complex stdout/in-files/enums.dbml +0 -0
- package/__tests__/dbml2sql/multifile complex stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile complex stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile complex stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +5 -0
- package/__tests__/dbml2sql/multifile error entry-syntax-error/in-files/lib.dbml +0 -0
- package/__tests__/dbml2sql/multifile error entry-syntax-error/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile error entry-syntax-error/options.json +0 -0
- package/__tests__/dbml2sql/multifile error entry-syntax-error/stdout.txt +1 -1
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +446 -0
- package/__tests__/dbml2sql/multifile error import-not-found/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile error import-not-found/options.json +0 -0
- package/__tests__/dbml2sql/multifile error import-not-found/stdout.txt +0 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +5 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/in-files/broken.dbml +0 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/options.json +0 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/stdout.txt +1 -1
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +4 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/in-files/base.dbml +0 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/in-files/types.dbml +0 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/options.json +0 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/stdout.txt +0 -0
- package/{__test__/dbml2sql/filename stdout → __tests__/dbml2sql/multifile records pulling stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile records pulling stdout/in-files/base.dbml +0 -0
- package/__tests__/dbml2sql/multifile records pulling stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile records pulling stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile records pulling stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filenames --mysql stdout → __tests__/dbml2sql/multifile refs across files stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile refs across files stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile refs across files stdout/in-files/orders.dbml +0 -0
- package/__tests__/dbml2sql/multifile refs across files stdout/in-files/users.dbml +0 -0
- package/__tests__/dbml2sql/multifile refs across files stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile refs across files stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filenames --oracle --out-file → __tests__/dbml2sql/multifile schema pulling stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile schema pulling stdout/in-files/auth.dbml +0 -0
- package/__tests__/dbml2sql/multifile schema pulling stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile schema pulling stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile schema pulling stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filenames --oracle stdout → __tests__/dbml2sql/multifile tablegroup pulling stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile tablegroup pulling stdout/in-files/base.dbml +0 -0
- package/__tests__/dbml2sql/multifile tablegroup pulling stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile tablegroup pulling stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile tablegroup pulling stdout/stdout.txt +0 -0
- package/{__test__/dbml2sql/filenames --postgres stdout → __tests__/dbml2sql/multifile transitive reuse stdout}/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multifile transitive reuse stdout/in-files/base.dbml +0 -0
- package/__tests__/dbml2sql/multifile transitive reuse stdout/in-files/main.dbml +0 -0
- package/__tests__/dbml2sql/multifile transitive reuse stdout/in-files/types.dbml +0 -0
- package/__tests__/dbml2sql/multifile transitive reuse stdout/options.json +0 -0
- package/__tests__/dbml2sql/multifile transitive reuse stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/in-files/multiple_schema.in.dbml +0 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/options.json +0 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/stdout.txt +0 -0
- package/__tests__/dbml2sql/multiple_schema_mysql/expect-out-files/multiple_schema.out.sql +0 -0
- package/__tests__/dbml2sql/multiple_schema_mysql/in-files/multiple_schema.in.dbml +0 -0
- package/__tests__/dbml2sql/multiple_schema_mysql/options.json +0 -0
- package/__tests__/dbml2sql/multiple_schema_mysql/stdout.txt +0 -0
- package/__tests__/dbml2sql/multiple_schema_oracle/expect-out-files/multiple_schema.out.sql +0 -0
- package/__tests__/dbml2sql/multiple_schema_oracle/in-files/multiple_schema.in.dbml +0 -0
- package/__tests__/dbml2sql/multiple_schema_oracle/options.json +0 -0
- package/__tests__/dbml2sql/multiple_schema_oracle/stdout.txt +0 -0
- package/__tests__/dbml2sql/multiple_schema_pg/expect-out-files/multiple_schema.out.sql +0 -0
- package/__tests__/dbml2sql/multiple_schema_pg/in-files/multiple_schema.in.dbml +0 -0
- package/__tests__/dbml2sql/multiple_schema_pg/options.json +0 -0
- package/__tests__/dbml2sql/multiple_schema_pg/stdout.txt +0 -0
- package/__tests__/dbml2sql/single file stdout/in-files/schema.dbml +0 -0
- package/__tests__/dbml2sql/single file stdout/options.json +0 -0
- package/__tests__/dbml2sql/single file stdout/stdout.txt +0 -0
- package/__tests__/dbml2sql/syntax-error/in-files/ecommerce.dbml +0 -0
- package/__tests__/dbml2sql/syntax-error/options.json +0 -0
- package/__tests__/dbml2sql/syntax-error/stdout.txt +1 -1
- package/__tests__/dbml2sql_bin.js +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/options.json +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/stdout.txt +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/options.json +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/stdout.txt +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/options.json +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/stdout.txt +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/options.json +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/stdout.txt +0 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/options.json +0 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/stdout.txt +0 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/options.json +0 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/stdout.txt +0 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filename --mysql --out-file/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --mysql --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filename --mysql --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filename --mysql stdout/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --mysql stdout/options.json +0 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filename --out-file/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filename --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filename --postgres --out-file/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --postgres --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filename --postgres --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filename --postgres stdout/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --postgres stdout/options.json +0 -0
- package/__tests__/sql2dbml/filename --snowflake stdout/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename --snowflake stdout/options.json +0 -0
- package/__tests__/sql2dbml/filename stdout/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/filename stdout/options.json +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/in-files/customer.sql +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/in-files/inventory.sql +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filenames --mysql stdout/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/filenames --mysql stdout/in-files/customer.sql +0 -0
- package/__tests__/sql2dbml/filenames --mysql stdout/in-files/inventory.sql +0 -0
- package/__tests__/sql2dbml/filenames --mysql stdout/options.json +0 -0
- package/__tests__/sql2dbml/filenames --out-file/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/filenames --out-file/in-files/customer.sql +0 -0
- package/__tests__/sql2dbml/filenames --out-file/in-files/inventory.sql +0 -0
- package/__tests__/sql2dbml/filenames --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filenames --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/in-files/customer.sql +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/in-files/inventory.sql +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/options.json +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/stdout.txt +0 -0
- package/__tests__/sql2dbml/filenames --postgres stdout/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/filenames --postgres stdout/in-files/customer.sql +0 -0
- package/__tests__/sql2dbml/filenames --postgres stdout/in-files/inventory.sql +0 -0
- package/__tests__/sql2dbml/filenames --postgres stdout/options.json +0 -0
- package/__tests__/sql2dbml/filenames stdout/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/filenames stdout/in-files/customer.sql +0 -0
- package/__tests__/sql2dbml/filenames stdout/in-files/inventory.sql +0 -0
- package/__tests__/sql2dbml/filenames stdout/options.json +0 -0
- package/__tests__/sql2dbml/multiple_schema_mssql/options.json +0 -0
- package/__tests__/sql2dbml/multiple_schema_mssql/stdout.txt +0 -0
- package/__tests__/sql2dbml/multiple_schema_mysql/in-files/multiple_schema.in.sql +0 -0
- package/__tests__/sql2dbml/multiple_schema_mysql/options.json +0 -0
- package/__tests__/sql2dbml/multiple_schema_mysql/stdout.txt +0 -0
- package/__tests__/sql2dbml/multiple_schema_pg/in-files/multiple_schema.in.sql +0 -0
- package/__tests__/sql2dbml/multiple_schema_pg/options.json +0 -0
- package/__tests__/sql2dbml/multiple_schema_pg/stdout.txt +0 -0
- package/__tests__/sql2dbml/syntax-error/in-files/business.sql +0 -0
- package/__tests__/sql2dbml/syntax-error/options.json +0 -0
- package/__tests__/sql2dbml/syntax-error/stdout.txt +0 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/options.json +0 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +0 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/in-files/schema.sql +0 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/options.json +0 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +0 -0
- package/__tests__/sql2dbml_bin.js +0 -0
- package/__tests__/testHelpers.ts +0 -0
- package/__tests__/windows/multifile-backslash/in-files/main.dbml +2 -0
- package/__tests__/windows/multifile-backslash/in-files/sub/orders.dbml +6 -0
- package/__tests__/windows/multifile-backslash/in-files/types.dbml +4 -0
- package/__tests__/windows/multifile-backslash/options.json +6 -0
- package/__tests__/windows/multifile-backslash/stdout.txt +12 -0
- package/{__test__/dbml2sql/filenames stdout → __tests__/windows/multifile-relative}/dbml-error.log +0 -0
- package/__tests__/windows/multifile-relative/in-files/main.dbml +2 -0
- package/__tests__/windows/multifile-relative/in-files/sub/orders.dbml +6 -0
- package/__tests__/windows/multifile-relative/in-files/types.dbml +4 -0
- package/__tests__/windows/multifile-relative/options.json +6 -0
- package/__tests__/windows/multifile-relative/stdout.txt +12 -0
- package/__tests__/windows.test.ts +34 -0
- package/dbml-error.log +0 -330
- package/eslint.config.ts +0 -0
- package/lib/index.js +230 -307
- package/package.json +6 -6
- package/src/NodeProjectLayout.ts +9 -1
- package/src/cli/config.ts +0 -0
- package/src/cli/connector.ts +0 -0
- package/src/cli/export.ts +0 -0
- package/src/cli/import.ts +4 -5
- package/src/cli/index.ts +0 -0
- package/src/cli/outputPlugins/outputConsolePlugin.ts +0 -0
- package/src/cli/outputPlugins/outputFilePlugin.ts +0 -0
- package/src/cli/utils.ts +4 -3
- package/src/cli/validatePlugins/validatePlugins.ts +0 -0
- package/src/errors/domainError.ts +0 -0
- package/src/errors/index.ts +0 -0
- package/src/errors/syntaxError.ts +0 -0
- package/src/helpers/logger.ts +0 -0
- package/src/index.ts +0 -0
- package/tsconfig.json +0 -0
- package/vite.config.ts +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -36
- package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +0 -65
- package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +0 -61
- package/__test__/dbml2sql/filename --out-file/dbml-error.log +0 -36
- package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +0 -77
- package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -24
- package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +0 -77
- package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -24
- package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --out-file/dbml-error.log +0 -24
- package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -24
- package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -24
- package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +0 -62
- package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -24
- package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +0 -50
- package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +0 -88
- package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -24
- package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +0 -67
- package/__test__/dbml2sql/syntax-error/dbml-error.log +0 -2112
- package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -51
- package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -25
- package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -24
- package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --out-file/dbml-error.log +0 -24
- package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -24
- package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -54
- package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -24
- package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --out-file/dbml-error.log +0 -24
- package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -24
- package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -3
- package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -121
- package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -106
- package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -104
- package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -136
- package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -131
- package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -101
- package/__test__/sql2dbml/syntax-error/dbml-error.log +0 -2088
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +0 -36
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +0 -39
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,11 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
23
|
let commander = require("commander");
|
|
25
24
|
commander = __toESM(commander);
|
|
26
25
|
let path = require("path");
|
|
@@ -39,7 +38,7 @@ let node_fs = require("node:fs");
|
|
|
39
38
|
var package_default = {
|
|
40
39
|
$schema: "https://json.schemastore.org/package",
|
|
41
40
|
name: "@dbml/cli",
|
|
42
|
-
version: "11.0.
|
|
41
|
+
version: "11.0.1-alpha.0",
|
|
43
42
|
description: "",
|
|
44
43
|
main: "lib/index.js",
|
|
45
44
|
license: "Apache-2.0",
|
|
@@ -47,7 +46,7 @@ var package_default = {
|
|
|
47
46
|
"test": "vitest run",
|
|
48
47
|
"test:watch": "vitest watch",
|
|
49
48
|
"coverage": "vitest --coverage",
|
|
50
|
-
"build": "
|
|
49
|
+
"build": "rimraf ./lib && tsc --noEmit && vite build",
|
|
51
50
|
"dev": "vite build --watch",
|
|
52
51
|
"prepublish": "npm run build",
|
|
53
52
|
"lint": "eslint $(git diff --relative --name-only --diff-filter=ACMRTUXB master -- . | grep -E '\\.(js|ts)$')",
|
|
@@ -66,9 +65,9 @@ var package_default = {
|
|
|
66
65
|
keywords: ["dbml", "dbml-cli"],
|
|
67
66
|
dependencies: {
|
|
68
67
|
"@babel/cli": "^7.21.0",
|
|
69
|
-
"@dbml/connector": "^11.0.
|
|
70
|
-
"@dbml/core": "^11.0.
|
|
71
|
-
"@dbml/parse": "^11.0.
|
|
68
|
+
"@dbml/connector": "^11.0.1-alpha.0",
|
|
69
|
+
"@dbml/core": "^11.0.1-alpha.0",
|
|
70
|
+
"@dbml/parse": "^11.0.1-alpha.0",
|
|
72
71
|
"bluebird": "^3.5.5",
|
|
73
72
|
"chalk": "^2.4.2",
|
|
74
73
|
"commander": "^2.20.0",
|
|
@@ -79,11 +78,10 @@ var package_default = {
|
|
|
79
78
|
"strip-ansi": "^5.2.0",
|
|
80
79
|
"winston": "^3.2.1"
|
|
81
80
|
},
|
|
82
|
-
gitHead: "
|
|
81
|
+
gitHead: "af62dc01c834b6183e9557f98b4d807313c4565a",
|
|
83
82
|
engines: { "node": ">=18" }
|
|
84
83
|
};
|
|
85
|
-
|
|
86
|
-
//#region src/helpers/logger.ts
|
|
84
|
+
// src/helpers/logger.ts
|
|
87
85
|
var { combine, timestamp, printf } = winston.format;
|
|
88
86
|
var consoleFormat = printf((info) => {
|
|
89
87
|
const { level, message } = info;
|
|
@@ -113,15 +111,13 @@ var fileLogger = (0, winston.createLogger)({
|
|
|
113
111
|
level: "error"
|
|
114
112
|
})]
|
|
115
113
|
});
|
|
116
|
-
|
|
117
|
-
//#region src/cli/outputPlugins/outputConsolePlugin.ts
|
|
114
|
+
// src/cli/outputPlugins/outputConsolePlugin.ts
|
|
118
115
|
var OutputConsolePlugin = class {
|
|
119
116
|
static write(content) {
|
|
120
117
|
console.log(content);
|
|
121
118
|
}
|
|
122
119
|
};
|
|
123
|
-
|
|
124
|
-
//#region src/cli/outputPlugins/outputFilePlugin.ts
|
|
120
|
+
// src/cli/outputPlugins/outputFilePlugin.ts
|
|
125
121
|
var OutputFilePlugin = class {
|
|
126
122
|
constructor(filePath, header) {
|
|
127
123
|
this.filePath = filePath;
|
|
@@ -139,22 +135,18 @@ var OutputFilePlugin = class {
|
|
|
139
135
|
this.stream.write(content);
|
|
140
136
|
}
|
|
141
137
|
};
|
|
142
|
-
|
|
143
|
-
//#region ../../node_modules/lodash-es/_freeGlobal.js
|
|
138
|
+
// ../../node_modules/lodash-es/_freeGlobal.js
|
|
144
139
|
/** Detect free variable `global` from Node.js. */
|
|
145
140
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
146
|
-
|
|
147
|
-
//#region ../../node_modules/lodash-es/_root.js
|
|
141
|
+
// ../../node_modules/lodash-es/_root.js
|
|
148
142
|
/** Detect free variable `self`. */
|
|
149
143
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
150
144
|
/** Used as a reference to the global object. */
|
|
151
145
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
152
|
-
|
|
153
|
-
//#region ../../node_modules/lodash-es/_Symbol.js
|
|
146
|
+
// ../../node_modules/lodash-es/_Symbol.js
|
|
154
147
|
/** Built-in value references. */
|
|
155
148
|
var Symbol$1 = root.Symbol;
|
|
156
|
-
|
|
157
|
-
//#region ../../node_modules/lodash-es/_getRawTag.js
|
|
149
|
+
// ../../node_modules/lodash-es/_getRawTag.js
|
|
158
150
|
/** Used for built-in method references. */
|
|
159
151
|
var objectProto$3 = Object.prototype;
|
|
160
152
|
/** Used to check objects for own properties. */
|
|
@@ -181,12 +173,13 @@ function getRawTag(value) {
|
|
|
181
173
|
var unmasked = true;
|
|
182
174
|
} catch (e) {}
|
|
183
175
|
var result = nativeObjectToString$1.call(value);
|
|
184
|
-
if (unmasked)
|
|
185
|
-
|
|
176
|
+
if (unmasked) {
|
|
177
|
+
if (isOwn) value[symToStringTag$1] = tag;
|
|
178
|
+
else delete value[symToStringTag$1];
|
|
179
|
+
}
|
|
186
180
|
return result;
|
|
187
181
|
}
|
|
188
|
-
|
|
189
|
-
//#region ../../node_modules/lodash-es/_objectToString.js
|
|
182
|
+
// ../../node_modules/lodash-es/_objectToString.js
|
|
190
183
|
/**
|
|
191
184
|
* Used to resolve the
|
|
192
185
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
@@ -203,10 +196,10 @@ var nativeObjectToString = Object.prototype.toString;
|
|
|
203
196
|
function objectToString(value) {
|
|
204
197
|
return nativeObjectToString.call(value);
|
|
205
198
|
}
|
|
206
|
-
|
|
207
|
-
//#region ../../node_modules/lodash-es/_baseGetTag.js
|
|
199
|
+
// ../../node_modules/lodash-es/_baseGetTag.js
|
|
208
200
|
/** `Object#toString` result references. */
|
|
209
|
-
var nullTag = "[object Null]"
|
|
201
|
+
var nullTag = "[object Null]";
|
|
202
|
+
var undefinedTag = "[object Undefined]";
|
|
210
203
|
/** Built-in value references. */
|
|
211
204
|
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
212
205
|
/**
|
|
@@ -220,8 +213,7 @@ function baseGetTag(value) {
|
|
|
220
213
|
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
221
214
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
222
215
|
}
|
|
223
|
-
|
|
224
|
-
//#region ../../node_modules/lodash-es/isObjectLike.js
|
|
216
|
+
// ../../node_modules/lodash-es/isObjectLike.js
|
|
225
217
|
/**
|
|
226
218
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
227
219
|
* and has a `typeof` result of "object".
|
|
@@ -249,8 +241,7 @@ function baseGetTag(value) {
|
|
|
249
241
|
function isObjectLike(value) {
|
|
250
242
|
return value != null && typeof value == "object";
|
|
251
243
|
}
|
|
252
|
-
|
|
253
|
-
//#region ../../node_modules/lodash-es/isSymbol.js
|
|
244
|
+
// ../../node_modules/lodash-es/isSymbol.js
|
|
254
245
|
/** `Object#toString` result references. */
|
|
255
246
|
var symbolTag$1 = "[object Symbol]";
|
|
256
247
|
/**
|
|
@@ -273,8 +264,7 @@ var symbolTag$1 = "[object Symbol]";
|
|
|
273
264
|
function isSymbol(value) {
|
|
274
265
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$1;
|
|
275
266
|
}
|
|
276
|
-
|
|
277
|
-
//#region ../../node_modules/lodash-es/_arrayMap.js
|
|
267
|
+
// ../../node_modules/lodash-es/_arrayMap.js
|
|
278
268
|
/**
|
|
279
269
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
280
270
|
* shorthands.
|
|
@@ -289,8 +279,7 @@ function arrayMap(array, iteratee) {
|
|
|
289
279
|
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
290
280
|
return result;
|
|
291
281
|
}
|
|
292
|
-
|
|
293
|
-
//#region ../../node_modules/lodash-es/isArray.js
|
|
282
|
+
// ../../node_modules/lodash-es/isArray.js
|
|
294
283
|
/**
|
|
295
284
|
* Checks if `value` is classified as an `Array` object.
|
|
296
285
|
*
|
|
@@ -315,12 +304,12 @@ function arrayMap(array, iteratee) {
|
|
|
315
304
|
* // => false
|
|
316
305
|
*/
|
|
317
306
|
var isArray = Array.isArray;
|
|
318
|
-
|
|
319
|
-
//#region ../../node_modules/lodash-es/_baseToString.js
|
|
307
|
+
// ../../node_modules/lodash-es/_baseToString.js
|
|
320
308
|
/** Used as references for various `Number` constants. */
|
|
321
|
-
var INFINITY$1 =
|
|
309
|
+
var INFINITY$1 = 1 / 0;
|
|
322
310
|
/** Used to convert symbols to primitives and strings. */
|
|
323
|
-
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0
|
|
311
|
+
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
312
|
+
var symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
|
|
324
313
|
/**
|
|
325
314
|
* The base implementation of `_.toString` which doesn't convert nullish
|
|
326
315
|
* values to empty strings.
|
|
@@ -336,8 +325,7 @@ function baseToString(value) {
|
|
|
336
325
|
var result = value + "";
|
|
337
326
|
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
338
327
|
}
|
|
339
|
-
|
|
340
|
-
//#region ../../node_modules/lodash-es/isObject.js
|
|
328
|
+
// ../../node_modules/lodash-es/isObject.js
|
|
341
329
|
/**
|
|
342
330
|
* Checks if `value` is the
|
|
343
331
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -367,8 +355,7 @@ function isObject(value) {
|
|
|
367
355
|
var type = typeof value;
|
|
368
356
|
return value != null && (type == "object" || type == "function");
|
|
369
357
|
}
|
|
370
|
-
|
|
371
|
-
//#region ../../node_modules/lodash-es/identity.js
|
|
358
|
+
// ../../node_modules/lodash-es/identity.js
|
|
372
359
|
/**
|
|
373
360
|
* This method returns the first argument it receives.
|
|
374
361
|
*
|
|
@@ -388,10 +375,12 @@ function isObject(value) {
|
|
|
388
375
|
function identity(value) {
|
|
389
376
|
return value;
|
|
390
377
|
}
|
|
391
|
-
|
|
392
|
-
//#region ../../node_modules/lodash-es/isFunction.js
|
|
378
|
+
// ../../node_modules/lodash-es/isFunction.js
|
|
393
379
|
/** `Object#toString` result references. */
|
|
394
|
-
var asyncTag = "[object AsyncFunction]"
|
|
380
|
+
var asyncTag = "[object AsyncFunction]";
|
|
381
|
+
var funcTag$1 = "[object Function]";
|
|
382
|
+
var genTag = "[object GeneratorFunction]";
|
|
383
|
+
var proxyTag = "[object Proxy]";
|
|
395
384
|
/**
|
|
396
385
|
* Checks if `value` is classified as a `Function` object.
|
|
397
386
|
*
|
|
@@ -414,12 +403,10 @@ function isFunction(value) {
|
|
|
414
403
|
var tag = baseGetTag(value);
|
|
415
404
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
416
405
|
}
|
|
417
|
-
|
|
418
|
-
//#region ../../node_modules/lodash-es/_coreJsData.js
|
|
406
|
+
// ../../node_modules/lodash-es/_coreJsData.js
|
|
419
407
|
/** Used to detect overreaching core-js shims. */
|
|
420
408
|
var coreJsData = root["__core-js_shared__"];
|
|
421
|
-
|
|
422
|
-
//#region ../../node_modules/lodash-es/_isMasked.js
|
|
409
|
+
// ../../node_modules/lodash-es/_isMasked.js
|
|
423
410
|
/** Used to detect methods masquerading as native. */
|
|
424
411
|
var maskSrcKey = function() {
|
|
425
412
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -435,8 +422,7 @@ var maskSrcKey = function() {
|
|
|
435
422
|
function isMasked(func) {
|
|
436
423
|
return !!maskSrcKey && maskSrcKey in func;
|
|
437
424
|
}
|
|
438
|
-
|
|
439
|
-
//#region ../../node_modules/lodash-es/_toSource.js
|
|
425
|
+
// ../../node_modules/lodash-es/_toSource.js
|
|
440
426
|
/** Used to resolve the decompiled source of functions. */
|
|
441
427
|
var funcToString$1 = Function.prototype.toString;
|
|
442
428
|
/**
|
|
@@ -457,8 +443,7 @@ function toSource(func) {
|
|
|
457
443
|
}
|
|
458
444
|
return "";
|
|
459
445
|
}
|
|
460
|
-
|
|
461
|
-
//#region ../../node_modules/lodash-es/_baseIsNative.js
|
|
446
|
+
// ../../node_modules/lodash-es/_baseIsNative.js
|
|
462
447
|
/**
|
|
463
448
|
* Used to match `RegExp`
|
|
464
449
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -467,7 +452,8 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
467
452
|
/** Used to detect host constructors (Safari). */
|
|
468
453
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
469
454
|
/** Used for built-in method references. */
|
|
470
|
-
var funcProto = Function.prototype
|
|
455
|
+
var funcProto = Function.prototype;
|
|
456
|
+
var objectProto$2 = Object.prototype;
|
|
471
457
|
/** Used to resolve the decompiled source of functions. */
|
|
472
458
|
var funcToString = funcProto.toString;
|
|
473
459
|
/** Used to check objects for own properties. */
|
|
@@ -486,8 +472,7 @@ function baseIsNative(value) {
|
|
|
486
472
|
if (!isObject(value) || isMasked(value)) return false;
|
|
487
473
|
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
488
474
|
}
|
|
489
|
-
|
|
490
|
-
//#region ../../node_modules/lodash-es/_getValue.js
|
|
475
|
+
// ../../node_modules/lodash-es/_getValue.js
|
|
491
476
|
/**
|
|
492
477
|
* Gets the value at `key` of `object`.
|
|
493
478
|
*
|
|
@@ -499,8 +484,7 @@ function baseIsNative(value) {
|
|
|
499
484
|
function getValue(object, key) {
|
|
500
485
|
return object == null ? void 0 : object[key];
|
|
501
486
|
}
|
|
502
|
-
|
|
503
|
-
//#region ../../node_modules/lodash-es/_getNative.js
|
|
487
|
+
// ../../node_modules/lodash-es/_getNative.js
|
|
504
488
|
/**
|
|
505
489
|
* Gets the native function at `key` of `object`.
|
|
506
490
|
*
|
|
@@ -513,11 +497,9 @@ function getNative(object, key) {
|
|
|
513
497
|
var value = getValue(object, key);
|
|
514
498
|
return baseIsNative(value) ? value : void 0;
|
|
515
499
|
}
|
|
516
|
-
|
|
517
|
-
//#region ../../node_modules/lodash-es/_WeakMap.js
|
|
500
|
+
// ../../node_modules/lodash-es/_WeakMap.js
|
|
518
501
|
var WeakMap = getNative(root, "WeakMap");
|
|
519
|
-
|
|
520
|
-
//#region ../../node_modules/lodash-es/_isIndex.js
|
|
502
|
+
// ../../node_modules/lodash-es/_isIndex.js
|
|
521
503
|
/** Used as references for various `Number` constants. */
|
|
522
504
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
523
505
|
/** Used to detect unsigned integer values. */
|
|
@@ -535,8 +517,7 @@ function isIndex(value, length) {
|
|
|
535
517
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
536
518
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
537
519
|
}
|
|
538
|
-
|
|
539
|
-
//#region ../../node_modules/lodash-es/eq.js
|
|
520
|
+
// ../../node_modules/lodash-es/eq.js
|
|
540
521
|
/**
|
|
541
522
|
* Performs a
|
|
542
523
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -572,8 +553,7 @@ function isIndex(value, length) {
|
|
|
572
553
|
function eq(value, other) {
|
|
573
554
|
return value === other || value !== value && other !== other;
|
|
574
555
|
}
|
|
575
|
-
|
|
576
|
-
//#region ../../node_modules/lodash-es/isLength.js
|
|
556
|
+
// ../../node_modules/lodash-es/isLength.js
|
|
577
557
|
/** Used as references for various `Number` constants. */
|
|
578
558
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
579
559
|
/**
|
|
@@ -605,8 +585,7 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
605
585
|
function isLength(value) {
|
|
606
586
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
607
587
|
}
|
|
608
|
-
|
|
609
|
-
//#region ../../node_modules/lodash-es/isArrayLike.js
|
|
588
|
+
// ../../node_modules/lodash-es/isArrayLike.js
|
|
610
589
|
/**
|
|
611
590
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
612
591
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -635,8 +614,7 @@ function isLength(value) {
|
|
|
635
614
|
function isArrayLike(value) {
|
|
636
615
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
637
616
|
}
|
|
638
|
-
|
|
639
|
-
//#region ../../node_modules/lodash-es/_isPrototype.js
|
|
617
|
+
// ../../node_modules/lodash-es/_isPrototype.js
|
|
640
618
|
/** Used for built-in method references. */
|
|
641
619
|
var objectProto$1 = Object.prototype;
|
|
642
620
|
/**
|
|
@@ -650,8 +628,7 @@ function isPrototype(value) {
|
|
|
650
628
|
var Ctor = value && value.constructor;
|
|
651
629
|
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
652
630
|
}
|
|
653
|
-
|
|
654
|
-
//#region ../../node_modules/lodash-es/_baseTimes.js
|
|
631
|
+
// ../../node_modules/lodash-es/_baseTimes.js
|
|
655
632
|
/**
|
|
656
633
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
657
634
|
* or max array length checks.
|
|
@@ -666,8 +643,7 @@ function baseTimes(n, iteratee) {
|
|
|
666
643
|
while (++index < n) result[index] = iteratee(index);
|
|
667
644
|
return result;
|
|
668
645
|
}
|
|
669
|
-
|
|
670
|
-
//#region ../../node_modules/lodash-es/_baseIsArguments.js
|
|
646
|
+
// ../../node_modules/lodash-es/_baseIsArguments.js
|
|
671
647
|
/** `Object#toString` result references. */
|
|
672
648
|
var argsTag$2 = "[object Arguments]";
|
|
673
649
|
/**
|
|
@@ -680,8 +656,7 @@ var argsTag$2 = "[object Arguments]";
|
|
|
680
656
|
function baseIsArguments(value) {
|
|
681
657
|
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
682
658
|
}
|
|
683
|
-
|
|
684
|
-
//#region ../../node_modules/lodash-es/isArguments.js
|
|
659
|
+
// ../../node_modules/lodash-es/isArguments.js
|
|
685
660
|
/** Used for built-in method references. */
|
|
686
661
|
var objectProto = Object.prototype;
|
|
687
662
|
/** Used to check objects for own properties. */
|
|
@@ -711,8 +686,7 @@ var isArguments = baseIsArguments(function() {
|
|
|
711
686
|
}()) ? baseIsArguments : function(value) {
|
|
712
687
|
return isObjectLike(value) && hasOwnProperty$7.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
713
688
|
};
|
|
714
|
-
|
|
715
|
-
//#region ../../node_modules/lodash-es/stubFalse.js
|
|
689
|
+
// ../../node_modules/lodash-es/stubFalse.js
|
|
716
690
|
/**
|
|
717
691
|
* This method returns `false`.
|
|
718
692
|
*
|
|
@@ -729,8 +703,7 @@ var isArguments = baseIsArguments(function() {
|
|
|
729
703
|
function stubFalse() {
|
|
730
704
|
return false;
|
|
731
705
|
}
|
|
732
|
-
|
|
733
|
-
//#region ../../node_modules/lodash-es/isBuffer.js
|
|
706
|
+
// ../../node_modules/lodash-es/isBuffer.js
|
|
734
707
|
/** Detect free variable `exports`. */
|
|
735
708
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
736
709
|
/** Detect free variable `module`. */
|
|
@@ -755,11 +728,32 @@ var Buffer$1 = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buf
|
|
|
755
728
|
* // => false
|
|
756
729
|
*/
|
|
757
730
|
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
758
|
-
|
|
759
|
-
//#region ../../node_modules/lodash-es/_baseIsTypedArray.js
|
|
731
|
+
// ../../node_modules/lodash-es/_baseIsTypedArray.js
|
|
760
732
|
/** `Object#toString` result references. */
|
|
761
|
-
var argsTag$1 = "[object Arguments]"
|
|
762
|
-
var
|
|
733
|
+
var argsTag$1 = "[object Arguments]";
|
|
734
|
+
var arrayTag$1 = "[object Array]";
|
|
735
|
+
var boolTag$1 = "[object Boolean]";
|
|
736
|
+
var dateTag$1 = "[object Date]";
|
|
737
|
+
var errorTag$1 = "[object Error]";
|
|
738
|
+
var funcTag = "[object Function]";
|
|
739
|
+
var mapTag$3 = "[object Map]";
|
|
740
|
+
var numberTag$1 = "[object Number]";
|
|
741
|
+
var objectTag$2 = "[object Object]";
|
|
742
|
+
var regexpTag$1 = "[object RegExp]";
|
|
743
|
+
var setTag$3 = "[object Set]";
|
|
744
|
+
var stringTag$1 = "[object String]";
|
|
745
|
+
var weakMapTag$1 = "[object WeakMap]";
|
|
746
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]";
|
|
747
|
+
var dataViewTag$2 = "[object DataView]";
|
|
748
|
+
var float32Tag = "[object Float32Array]";
|
|
749
|
+
var float64Tag = "[object Float64Array]";
|
|
750
|
+
var int8Tag = "[object Int8Array]";
|
|
751
|
+
var int16Tag = "[object Int16Array]";
|
|
752
|
+
var int32Tag = "[object Int32Array]";
|
|
753
|
+
var uint8Tag = "[object Uint8Array]";
|
|
754
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
755
|
+
var uint16Tag = "[object Uint16Array]";
|
|
756
|
+
var uint32Tag = "[object Uint32Array]";
|
|
763
757
|
/** Used to identify `toStringTag` values of typed arrays. */
|
|
764
758
|
var typedArrayTags = {};
|
|
765
759
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
@@ -774,8 +768,7 @@ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBuf
|
|
|
774
768
|
function baseIsTypedArray(value) {
|
|
775
769
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
776
770
|
}
|
|
777
|
-
|
|
778
|
-
//#region ../../node_modules/lodash-es/_baseUnary.js
|
|
771
|
+
// ../../node_modules/lodash-es/_baseUnary.js
|
|
779
772
|
/**
|
|
780
773
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
781
774
|
*
|
|
@@ -788,8 +781,7 @@ function baseUnary(func) {
|
|
|
788
781
|
return func(value);
|
|
789
782
|
};
|
|
790
783
|
}
|
|
791
|
-
|
|
792
|
-
//#region ../../node_modules/lodash-es/_nodeUtil.js
|
|
784
|
+
// ../../node_modules/lodash-es/_nodeUtil.js
|
|
793
785
|
/** Detect free variable `exports`. */
|
|
794
786
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
795
787
|
/** Detect free variable `module`. */
|
|
@@ -804,8 +796,7 @@ var nodeUtil = function() {
|
|
|
804
796
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
805
797
|
} catch (e) {}
|
|
806
798
|
}();
|
|
807
|
-
|
|
808
|
-
//#region ../../node_modules/lodash-es/isTypedArray.js
|
|
799
|
+
// ../../node_modules/lodash-es/isTypedArray.js
|
|
809
800
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
810
801
|
/**
|
|
811
802
|
* Checks if `value` is classified as a typed array.
|
|
@@ -825,8 +816,7 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
825
816
|
* // => false
|
|
826
817
|
*/
|
|
827
818
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
828
|
-
|
|
829
|
-
//#region ../../node_modules/lodash-es/_arrayLikeKeys.js
|
|
819
|
+
// ../../node_modules/lodash-es/_arrayLikeKeys.js
|
|
830
820
|
/** Used to check objects for own properties. */
|
|
831
821
|
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
832
822
|
/**
|
|
@@ -842,8 +832,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
842
832
|
for (var key in value) if ((inherited || hasOwnProperty$6.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
843
833
|
return result;
|
|
844
834
|
}
|
|
845
|
-
|
|
846
|
-
//#region ../../node_modules/lodash-es/_overArg.js
|
|
835
|
+
// ../../node_modules/lodash-es/_overArg.js
|
|
847
836
|
/**
|
|
848
837
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
849
838
|
*
|
|
@@ -857,11 +846,9 @@ function overArg(func, transform) {
|
|
|
857
846
|
return func(transform(arg));
|
|
858
847
|
};
|
|
859
848
|
}
|
|
860
|
-
|
|
861
|
-
//#region ../../node_modules/lodash-es/_nativeKeys.js
|
|
849
|
+
// ../../node_modules/lodash-es/_nativeKeys.js
|
|
862
850
|
var nativeKeys = overArg(Object.keys, Object);
|
|
863
|
-
|
|
864
|
-
//#region ../../node_modules/lodash-es/_baseKeys.js
|
|
851
|
+
// ../../node_modules/lodash-es/_baseKeys.js
|
|
865
852
|
/** Used to check objects for own properties. */
|
|
866
853
|
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
867
854
|
/**
|
|
@@ -877,8 +864,7 @@ function baseKeys(object) {
|
|
|
877
864
|
for (var key in Object(object)) if (hasOwnProperty$5.call(object, key) && key != "constructor") result.push(key);
|
|
878
865
|
return result;
|
|
879
866
|
}
|
|
880
|
-
|
|
881
|
-
//#region ../../node_modules/lodash-es/keys.js
|
|
867
|
+
// ../../node_modules/lodash-es/keys.js
|
|
882
868
|
/**
|
|
883
869
|
* Creates an array of the own enumerable property names of `object`.
|
|
884
870
|
*
|
|
@@ -910,10 +896,10 @@ function baseKeys(object) {
|
|
|
910
896
|
function keys(object) {
|
|
911
897
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
912
898
|
}
|
|
913
|
-
|
|
914
|
-
//#region ../../node_modules/lodash-es/_isKey.js
|
|
899
|
+
// ../../node_modules/lodash-es/_isKey.js
|
|
915
900
|
/** Used to match property names within property paths. */
|
|
916
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]
|
|
901
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
902
|
+
var reIsPlainProp = /^\w*$/;
|
|
917
903
|
/**
|
|
918
904
|
* Checks if `value` is a property name and not a property path.
|
|
919
905
|
*
|
|
@@ -928,11 +914,9 @@ function isKey(value, object) {
|
|
|
928
914
|
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
929
915
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
930
916
|
}
|
|
931
|
-
|
|
932
|
-
//#region ../../node_modules/lodash-es/_nativeCreate.js
|
|
917
|
+
// ../../node_modules/lodash-es/_nativeCreate.js
|
|
933
918
|
var nativeCreate = getNative(Object, "create");
|
|
934
|
-
|
|
935
|
-
//#region ../../node_modules/lodash-es/_hashClear.js
|
|
919
|
+
// ../../node_modules/lodash-es/_hashClear.js
|
|
936
920
|
/**
|
|
937
921
|
* Removes all key-value entries from the hash.
|
|
938
922
|
*
|
|
@@ -944,8 +928,7 @@ function hashClear() {
|
|
|
944
928
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
945
929
|
this.size = 0;
|
|
946
930
|
}
|
|
947
|
-
|
|
948
|
-
//#region ../../node_modules/lodash-es/_hashDelete.js
|
|
931
|
+
// ../../node_modules/lodash-es/_hashDelete.js
|
|
949
932
|
/**
|
|
950
933
|
* Removes `key` and its value from the hash.
|
|
951
934
|
*
|
|
@@ -961,8 +944,7 @@ function hashDelete(key) {
|
|
|
961
944
|
this.size -= result ? 1 : 0;
|
|
962
945
|
return result;
|
|
963
946
|
}
|
|
964
|
-
|
|
965
|
-
//#region ../../node_modules/lodash-es/_hashGet.js
|
|
947
|
+
// ../../node_modules/lodash-es/_hashGet.js
|
|
966
948
|
/** Used to stand-in for `undefined` hash values. */
|
|
967
949
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
968
950
|
/** Used to check objects for own properties. */
|
|
@@ -984,8 +966,7 @@ function hashGet(key) {
|
|
|
984
966
|
}
|
|
985
967
|
return hasOwnProperty$4.call(data, key) ? data[key] : void 0;
|
|
986
968
|
}
|
|
987
|
-
|
|
988
|
-
//#region ../../node_modules/lodash-es/_hashHas.js
|
|
969
|
+
// ../../node_modules/lodash-es/_hashHas.js
|
|
989
970
|
/** Used to check objects for own properties. */
|
|
990
971
|
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
991
972
|
/**
|
|
@@ -1001,8 +982,7 @@ function hashHas(key) {
|
|
|
1001
982
|
var data = this.__data__;
|
|
1002
983
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$3.call(data, key);
|
|
1003
984
|
}
|
|
1004
|
-
|
|
1005
|
-
//#region ../../node_modules/lodash-es/_hashSet.js
|
|
985
|
+
// ../../node_modules/lodash-es/_hashSet.js
|
|
1006
986
|
/** Used to stand-in for `undefined` hash values. */
|
|
1007
987
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1008
988
|
/**
|
|
@@ -1021,8 +1001,7 @@ function hashSet(key, value) {
|
|
|
1021
1001
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
1022
1002
|
return this;
|
|
1023
1003
|
}
|
|
1024
|
-
|
|
1025
|
-
//#region ../../node_modules/lodash-es/_Hash.js
|
|
1004
|
+
// ../../node_modules/lodash-es/_Hash.js
|
|
1026
1005
|
/**
|
|
1027
1006
|
* Creates a hash object.
|
|
1028
1007
|
*
|
|
@@ -1043,8 +1022,7 @@ Hash.prototype["delete"] = hashDelete;
|
|
|
1043
1022
|
Hash.prototype.get = hashGet;
|
|
1044
1023
|
Hash.prototype.has = hashHas;
|
|
1045
1024
|
Hash.prototype.set = hashSet;
|
|
1046
|
-
|
|
1047
|
-
//#region ../../node_modules/lodash-es/_listCacheClear.js
|
|
1025
|
+
// ../../node_modules/lodash-es/_listCacheClear.js
|
|
1048
1026
|
/**
|
|
1049
1027
|
* Removes all key-value entries from the list cache.
|
|
1050
1028
|
*
|
|
@@ -1056,8 +1034,7 @@ function listCacheClear() {
|
|
|
1056
1034
|
this.__data__ = [];
|
|
1057
1035
|
this.size = 0;
|
|
1058
1036
|
}
|
|
1059
|
-
|
|
1060
|
-
//#region ../../node_modules/lodash-es/_assocIndexOf.js
|
|
1037
|
+
// ../../node_modules/lodash-es/_assocIndexOf.js
|
|
1061
1038
|
/**
|
|
1062
1039
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1063
1040
|
*
|
|
@@ -1071,8 +1048,7 @@ function assocIndexOf(array, key) {
|
|
|
1071
1048
|
while (length--) if (eq(array[length][0], key)) return length;
|
|
1072
1049
|
return -1;
|
|
1073
1050
|
}
|
|
1074
|
-
|
|
1075
|
-
//#region ../../node_modules/lodash-es/_listCacheDelete.js
|
|
1051
|
+
// ../../node_modules/lodash-es/_listCacheDelete.js
|
|
1076
1052
|
/** Built-in value references. */
|
|
1077
1053
|
var splice = Array.prototype.splice;
|
|
1078
1054
|
/**
|
|
@@ -1092,8 +1068,7 @@ function listCacheDelete(key) {
|
|
|
1092
1068
|
--this.size;
|
|
1093
1069
|
return true;
|
|
1094
1070
|
}
|
|
1095
|
-
|
|
1096
|
-
//#region ../../node_modules/lodash-es/_listCacheGet.js
|
|
1071
|
+
// ../../node_modules/lodash-es/_listCacheGet.js
|
|
1097
1072
|
/**
|
|
1098
1073
|
* Gets the list cache value for `key`.
|
|
1099
1074
|
*
|
|
@@ -1107,8 +1082,7 @@ function listCacheGet(key) {
|
|
|
1107
1082
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1108
1083
|
return index < 0 ? void 0 : data[index][1];
|
|
1109
1084
|
}
|
|
1110
|
-
|
|
1111
|
-
//#region ../../node_modules/lodash-es/_listCacheHas.js
|
|
1085
|
+
// ../../node_modules/lodash-es/_listCacheHas.js
|
|
1112
1086
|
/**
|
|
1113
1087
|
* Checks if a list cache value for `key` exists.
|
|
1114
1088
|
*
|
|
@@ -1121,8 +1095,7 @@ function listCacheGet(key) {
|
|
|
1121
1095
|
function listCacheHas(key) {
|
|
1122
1096
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1123
1097
|
}
|
|
1124
|
-
|
|
1125
|
-
//#region ../../node_modules/lodash-es/_listCacheSet.js
|
|
1098
|
+
// ../../node_modules/lodash-es/_listCacheSet.js
|
|
1126
1099
|
/**
|
|
1127
1100
|
* Sets the list cache `key` to `value`.
|
|
1128
1101
|
*
|
|
@@ -1141,8 +1114,7 @@ function listCacheSet(key, value) {
|
|
|
1141
1114
|
} else data[index][1] = value;
|
|
1142
1115
|
return this;
|
|
1143
1116
|
}
|
|
1144
|
-
|
|
1145
|
-
//#region ../../node_modules/lodash-es/_ListCache.js
|
|
1117
|
+
// ../../node_modules/lodash-es/_ListCache.js
|
|
1146
1118
|
/**
|
|
1147
1119
|
* Creates an list cache object.
|
|
1148
1120
|
*
|
|
@@ -1163,11 +1135,9 @@ ListCache.prototype["delete"] = listCacheDelete;
|
|
|
1163
1135
|
ListCache.prototype.get = listCacheGet;
|
|
1164
1136
|
ListCache.prototype.has = listCacheHas;
|
|
1165
1137
|
ListCache.prototype.set = listCacheSet;
|
|
1166
|
-
|
|
1167
|
-
//#region ../../node_modules/lodash-es/_Map.js
|
|
1138
|
+
// ../../node_modules/lodash-es/_Map.js
|
|
1168
1139
|
var Map = getNative(root, "Map");
|
|
1169
|
-
|
|
1170
|
-
//#region ../../node_modules/lodash-es/_mapCacheClear.js
|
|
1140
|
+
// ../../node_modules/lodash-es/_mapCacheClear.js
|
|
1171
1141
|
/**
|
|
1172
1142
|
* Removes all key-value entries from the map.
|
|
1173
1143
|
*
|
|
@@ -1183,8 +1153,7 @@ function mapCacheClear() {
|
|
|
1183
1153
|
"string": new Hash()
|
|
1184
1154
|
};
|
|
1185
1155
|
}
|
|
1186
|
-
|
|
1187
|
-
//#region ../../node_modules/lodash-es/_isKeyable.js
|
|
1156
|
+
// ../../node_modules/lodash-es/_isKeyable.js
|
|
1188
1157
|
/**
|
|
1189
1158
|
* Checks if `value` is suitable for use as unique object key.
|
|
1190
1159
|
*
|
|
@@ -1196,8 +1165,7 @@ function isKeyable(value) {
|
|
|
1196
1165
|
var type = typeof value;
|
|
1197
1166
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1198
1167
|
}
|
|
1199
|
-
|
|
1200
|
-
//#region ../../node_modules/lodash-es/_getMapData.js
|
|
1168
|
+
// ../../node_modules/lodash-es/_getMapData.js
|
|
1201
1169
|
/**
|
|
1202
1170
|
* Gets the data for `map`.
|
|
1203
1171
|
*
|
|
@@ -1210,8 +1178,7 @@ function getMapData(map, key) {
|
|
|
1210
1178
|
var data = map.__data__;
|
|
1211
1179
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1212
1180
|
}
|
|
1213
|
-
|
|
1214
|
-
//#region ../../node_modules/lodash-es/_mapCacheDelete.js
|
|
1181
|
+
// ../../node_modules/lodash-es/_mapCacheDelete.js
|
|
1215
1182
|
/**
|
|
1216
1183
|
* Removes `key` and its value from the map.
|
|
1217
1184
|
*
|
|
@@ -1226,8 +1193,7 @@ function mapCacheDelete(key) {
|
|
|
1226
1193
|
this.size -= result ? 1 : 0;
|
|
1227
1194
|
return result;
|
|
1228
1195
|
}
|
|
1229
|
-
|
|
1230
|
-
//#region ../../node_modules/lodash-es/_mapCacheGet.js
|
|
1196
|
+
// ../../node_modules/lodash-es/_mapCacheGet.js
|
|
1231
1197
|
/**
|
|
1232
1198
|
* Gets the map value for `key`.
|
|
1233
1199
|
*
|
|
@@ -1240,8 +1206,7 @@ function mapCacheDelete(key) {
|
|
|
1240
1206
|
function mapCacheGet(key) {
|
|
1241
1207
|
return getMapData(this, key).get(key);
|
|
1242
1208
|
}
|
|
1243
|
-
|
|
1244
|
-
//#region ../../node_modules/lodash-es/_mapCacheHas.js
|
|
1209
|
+
// ../../node_modules/lodash-es/_mapCacheHas.js
|
|
1245
1210
|
/**
|
|
1246
1211
|
* Checks if a map value for `key` exists.
|
|
1247
1212
|
*
|
|
@@ -1254,8 +1219,7 @@ function mapCacheGet(key) {
|
|
|
1254
1219
|
function mapCacheHas(key) {
|
|
1255
1220
|
return getMapData(this, key).has(key);
|
|
1256
1221
|
}
|
|
1257
|
-
|
|
1258
|
-
//#region ../../node_modules/lodash-es/_mapCacheSet.js
|
|
1222
|
+
// ../../node_modules/lodash-es/_mapCacheSet.js
|
|
1259
1223
|
/**
|
|
1260
1224
|
* Sets the map `key` to `value`.
|
|
1261
1225
|
*
|
|
@@ -1272,8 +1236,7 @@ function mapCacheSet(key, value) {
|
|
|
1272
1236
|
this.size += data.size == size ? 0 : 1;
|
|
1273
1237
|
return this;
|
|
1274
1238
|
}
|
|
1275
|
-
|
|
1276
|
-
//#region ../../node_modules/lodash-es/_MapCache.js
|
|
1239
|
+
// ../../node_modules/lodash-es/_MapCache.js
|
|
1277
1240
|
/**
|
|
1278
1241
|
* Creates a map cache object to store key-value pairs.
|
|
1279
1242
|
*
|
|
@@ -1294,8 +1257,7 @@ MapCache.prototype["delete"] = mapCacheDelete;
|
|
|
1294
1257
|
MapCache.prototype.get = mapCacheGet;
|
|
1295
1258
|
MapCache.prototype.has = mapCacheHas;
|
|
1296
1259
|
MapCache.prototype.set = mapCacheSet;
|
|
1297
|
-
|
|
1298
|
-
//#region ../../node_modules/lodash-es/memoize.js
|
|
1260
|
+
// ../../node_modules/lodash-es/memoize.js
|
|
1299
1261
|
/** Error message constants. */
|
|
1300
1262
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1301
1263
|
/**
|
|
@@ -1355,8 +1317,7 @@ function memoize(func, resolver) {
|
|
|
1355
1317
|
return memoized;
|
|
1356
1318
|
}
|
|
1357
1319
|
memoize.Cache = MapCache;
|
|
1358
|
-
|
|
1359
|
-
//#region ../../node_modules/lodash-es/_memoizeCapped.js
|
|
1320
|
+
// ../../node_modules/lodash-es/_memoizeCapped.js
|
|
1360
1321
|
/** Used as the maximum memoize cache size. */
|
|
1361
1322
|
var MAX_MEMOIZE_SIZE = 500;
|
|
1362
1323
|
/**
|
|
@@ -1375,8 +1336,7 @@ function memoizeCapped(func) {
|
|
|
1375
1336
|
var cache = result.cache;
|
|
1376
1337
|
return result;
|
|
1377
1338
|
}
|
|
1378
|
-
|
|
1379
|
-
//#region ../../node_modules/lodash-es/_stringToPath.js
|
|
1339
|
+
// ../../node_modules/lodash-es/_stringToPath.js
|
|
1380
1340
|
/** Used to match property names within property paths. */
|
|
1381
1341
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1382
1342
|
/** Used to match backslashes in property paths. */
|
|
@@ -1396,8 +1356,7 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
1396
1356
|
});
|
|
1397
1357
|
return result;
|
|
1398
1358
|
});
|
|
1399
|
-
|
|
1400
|
-
//#region ../../node_modules/lodash-es/toString.js
|
|
1359
|
+
// ../../node_modules/lodash-es/toString.js
|
|
1401
1360
|
/**
|
|
1402
1361
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
1403
1362
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -1422,8 +1381,7 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
1422
1381
|
function toString(value) {
|
|
1423
1382
|
return value == null ? "" : baseToString(value);
|
|
1424
1383
|
}
|
|
1425
|
-
|
|
1426
|
-
//#region ../../node_modules/lodash-es/_castPath.js
|
|
1384
|
+
// ../../node_modules/lodash-es/_castPath.js
|
|
1427
1385
|
/**
|
|
1428
1386
|
* Casts `value` to a path array if it's not one.
|
|
1429
1387
|
*
|
|
@@ -1436,10 +1394,9 @@ function castPath(value, object) {
|
|
|
1436
1394
|
if (isArray(value)) return value;
|
|
1437
1395
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1438
1396
|
}
|
|
1439
|
-
|
|
1440
|
-
//#region ../../node_modules/lodash-es/_toKey.js
|
|
1397
|
+
// ../../node_modules/lodash-es/_toKey.js
|
|
1441
1398
|
/** Used as references for various `Number` constants. */
|
|
1442
|
-
var INFINITY =
|
|
1399
|
+
var INFINITY = 1 / 0;
|
|
1443
1400
|
/**
|
|
1444
1401
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
1445
1402
|
*
|
|
@@ -1452,8 +1409,7 @@ function toKey(value) {
|
|
|
1452
1409
|
var result = value + "";
|
|
1453
1410
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1454
1411
|
}
|
|
1455
|
-
|
|
1456
|
-
//#region ../../node_modules/lodash-es/_baseGet.js
|
|
1412
|
+
// ../../node_modules/lodash-es/_baseGet.js
|
|
1457
1413
|
/**
|
|
1458
1414
|
* The base implementation of `_.get` without support for default values.
|
|
1459
1415
|
*
|
|
@@ -1468,8 +1424,7 @@ function baseGet(object, path) {
|
|
|
1468
1424
|
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
1469
1425
|
return index && index == length ? object : void 0;
|
|
1470
1426
|
}
|
|
1471
|
-
|
|
1472
|
-
//#region ../../node_modules/lodash-es/get.js
|
|
1427
|
+
// ../../node_modules/lodash-es/get.js
|
|
1473
1428
|
/**
|
|
1474
1429
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
1475
1430
|
* `undefined`, the `defaultValue` is returned in its place.
|
|
@@ -1499,8 +1454,7 @@ function get(object, path, defaultValue) {
|
|
|
1499
1454
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
1500
1455
|
return result === void 0 ? defaultValue : result;
|
|
1501
1456
|
}
|
|
1502
|
-
|
|
1503
|
-
//#region ../../node_modules/lodash-es/_arrayPush.js
|
|
1457
|
+
// ../../node_modules/lodash-es/_arrayPush.js
|
|
1504
1458
|
/**
|
|
1505
1459
|
* Appends the elements of `values` to `array`.
|
|
1506
1460
|
*
|
|
@@ -1514,8 +1468,7 @@ function arrayPush(array, values) {
|
|
|
1514
1468
|
while (++index < length) array[offset + index] = values[index];
|
|
1515
1469
|
return array;
|
|
1516
1470
|
}
|
|
1517
|
-
|
|
1518
|
-
//#region ../../node_modules/lodash-es/_arrayReduce.js
|
|
1471
|
+
// ../../node_modules/lodash-es/_arrayReduce.js
|
|
1519
1472
|
/**
|
|
1520
1473
|
* A specialized version of `_.reduce` for arrays without support for
|
|
1521
1474
|
* iteratee shorthands.
|
|
@@ -1534,8 +1487,7 @@ function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
|
1534
1487
|
while (++index < length) accumulator = iteratee(accumulator, array[index], index, array);
|
|
1535
1488
|
return accumulator;
|
|
1536
1489
|
}
|
|
1537
|
-
|
|
1538
|
-
//#region ../../node_modules/lodash-es/_stackClear.js
|
|
1490
|
+
// ../../node_modules/lodash-es/_stackClear.js
|
|
1539
1491
|
/**
|
|
1540
1492
|
* Removes all key-value entries from the stack.
|
|
1541
1493
|
*
|
|
@@ -1547,8 +1499,7 @@ function stackClear() {
|
|
|
1547
1499
|
this.__data__ = new ListCache();
|
|
1548
1500
|
this.size = 0;
|
|
1549
1501
|
}
|
|
1550
|
-
|
|
1551
|
-
//#region ../../node_modules/lodash-es/_stackDelete.js
|
|
1502
|
+
// ../../node_modules/lodash-es/_stackDelete.js
|
|
1552
1503
|
/**
|
|
1553
1504
|
* Removes `key` and its value from the stack.
|
|
1554
1505
|
*
|
|
@@ -1563,8 +1514,7 @@ function stackDelete(key) {
|
|
|
1563
1514
|
this.size = data.size;
|
|
1564
1515
|
return result;
|
|
1565
1516
|
}
|
|
1566
|
-
|
|
1567
|
-
//#region ../../node_modules/lodash-es/_stackGet.js
|
|
1517
|
+
// ../../node_modules/lodash-es/_stackGet.js
|
|
1568
1518
|
/**
|
|
1569
1519
|
* Gets the stack value for `key`.
|
|
1570
1520
|
*
|
|
@@ -1577,8 +1527,7 @@ function stackDelete(key) {
|
|
|
1577
1527
|
function stackGet(key) {
|
|
1578
1528
|
return this.__data__.get(key);
|
|
1579
1529
|
}
|
|
1580
|
-
|
|
1581
|
-
//#region ../../node_modules/lodash-es/_stackHas.js
|
|
1530
|
+
// ../../node_modules/lodash-es/_stackHas.js
|
|
1582
1531
|
/**
|
|
1583
1532
|
* Checks if a stack value for `key` exists.
|
|
1584
1533
|
*
|
|
@@ -1591,8 +1540,7 @@ function stackGet(key) {
|
|
|
1591
1540
|
function stackHas(key) {
|
|
1592
1541
|
return this.__data__.has(key);
|
|
1593
1542
|
}
|
|
1594
|
-
|
|
1595
|
-
//#region ../../node_modules/lodash-es/_stackSet.js
|
|
1543
|
+
// ../../node_modules/lodash-es/_stackSet.js
|
|
1596
1544
|
/** Used as the size to enable large array optimizations. */
|
|
1597
1545
|
var LARGE_ARRAY_SIZE = 200;
|
|
1598
1546
|
/**
|
|
@@ -1620,8 +1568,7 @@ function stackSet(key, value) {
|
|
|
1620
1568
|
this.size = data.size;
|
|
1621
1569
|
return this;
|
|
1622
1570
|
}
|
|
1623
|
-
|
|
1624
|
-
//#region ../../node_modules/lodash-es/_Stack.js
|
|
1571
|
+
// ../../node_modules/lodash-es/_Stack.js
|
|
1625
1572
|
/**
|
|
1626
1573
|
* Creates a stack cache object to store key-value pairs.
|
|
1627
1574
|
*
|
|
@@ -1638,8 +1585,7 @@ Stack.prototype["delete"] = stackDelete;
|
|
|
1638
1585
|
Stack.prototype.get = stackGet;
|
|
1639
1586
|
Stack.prototype.has = stackHas;
|
|
1640
1587
|
Stack.prototype.set = stackSet;
|
|
1641
|
-
|
|
1642
|
-
//#region ../../node_modules/lodash-es/_arrayFilter.js
|
|
1588
|
+
// ../../node_modules/lodash-es/_arrayFilter.js
|
|
1643
1589
|
/**
|
|
1644
1590
|
* A specialized version of `_.filter` for arrays without support for
|
|
1645
1591
|
* iteratee shorthands.
|
|
@@ -1657,8 +1603,7 @@ function arrayFilter(array, predicate) {
|
|
|
1657
1603
|
}
|
|
1658
1604
|
return result;
|
|
1659
1605
|
}
|
|
1660
|
-
|
|
1661
|
-
//#region ../../node_modules/lodash-es/stubArray.js
|
|
1606
|
+
// ../../node_modules/lodash-es/stubArray.js
|
|
1662
1607
|
/**
|
|
1663
1608
|
* This method returns a new empty array.
|
|
1664
1609
|
*
|
|
@@ -1680,8 +1625,7 @@ function arrayFilter(array, predicate) {
|
|
|
1680
1625
|
function stubArray() {
|
|
1681
1626
|
return [];
|
|
1682
1627
|
}
|
|
1683
|
-
|
|
1684
|
-
//#region ../../node_modules/lodash-es/_getSymbols.js
|
|
1628
|
+
// ../../node_modules/lodash-es/_getSymbols.js
|
|
1685
1629
|
/** Built-in value references. */
|
|
1686
1630
|
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1687
1631
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -1699,8 +1643,7 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
1699
1643
|
return propertyIsEnumerable.call(object, symbol);
|
|
1700
1644
|
});
|
|
1701
1645
|
};
|
|
1702
|
-
|
|
1703
|
-
//#region ../../node_modules/lodash-es/_baseGetAllKeys.js
|
|
1646
|
+
// ../../node_modules/lodash-es/_baseGetAllKeys.js
|
|
1704
1647
|
/**
|
|
1705
1648
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1706
1649
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -1716,8 +1659,7 @@ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
1716
1659
|
var result = keysFunc(object);
|
|
1717
1660
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1718
1661
|
}
|
|
1719
|
-
|
|
1720
|
-
//#region ../../node_modules/lodash-es/_getAllKeys.js
|
|
1662
|
+
// ../../node_modules/lodash-es/_getAllKeys.js
|
|
1721
1663
|
/**
|
|
1722
1664
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1723
1665
|
*
|
|
@@ -1728,22 +1670,26 @@ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
1728
1670
|
function getAllKeys(object) {
|
|
1729
1671
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1730
1672
|
}
|
|
1731
|
-
|
|
1732
|
-
//#region ../../node_modules/lodash-es/_DataView.js
|
|
1673
|
+
// ../../node_modules/lodash-es/_DataView.js
|
|
1733
1674
|
var DataView = getNative(root, "DataView");
|
|
1734
|
-
|
|
1735
|
-
//#region ../../node_modules/lodash-es/_Promise.js
|
|
1675
|
+
// ../../node_modules/lodash-es/_Promise.js
|
|
1736
1676
|
var Promise$1 = getNative(root, "Promise");
|
|
1737
|
-
|
|
1738
|
-
//#region ../../node_modules/lodash-es/_Set.js
|
|
1677
|
+
// ../../node_modules/lodash-es/_Set.js
|
|
1739
1678
|
var Set = getNative(root, "Set");
|
|
1740
|
-
|
|
1741
|
-
//#region ../../node_modules/lodash-es/_getTag.js
|
|
1679
|
+
// ../../node_modules/lodash-es/_getTag.js
|
|
1742
1680
|
/** `Object#toString` result references. */
|
|
1743
|
-
var mapTag$2 = "[object Map]"
|
|
1681
|
+
var mapTag$2 = "[object Map]";
|
|
1682
|
+
var objectTag$1 = "[object Object]";
|
|
1683
|
+
var promiseTag = "[object Promise]";
|
|
1684
|
+
var setTag$2 = "[object Set]";
|
|
1685
|
+
var weakMapTag = "[object WeakMap]";
|
|
1744
1686
|
var dataViewTag$1 = "[object DataView]";
|
|
1745
1687
|
/** Used to detect maps, sets, and weakmaps. */
|
|
1746
|
-
var dataViewCtorString = toSource(DataView)
|
|
1688
|
+
var dataViewCtorString = toSource(DataView);
|
|
1689
|
+
var mapCtorString = toSource(Map);
|
|
1690
|
+
var promiseCtorString = toSource(Promise$1);
|
|
1691
|
+
var setCtorString = toSource(Set);
|
|
1692
|
+
var weakMapCtorString = toSource(WeakMap);
|
|
1747
1693
|
/**
|
|
1748
1694
|
* Gets the `toStringTag` of `value`.
|
|
1749
1695
|
*
|
|
@@ -1764,12 +1710,10 @@ if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != data
|
|
|
1764
1710
|
return result;
|
|
1765
1711
|
};
|
|
1766
1712
|
var _getTag_default = getTag;
|
|
1767
|
-
|
|
1768
|
-
//#region ../../node_modules/lodash-es/_Uint8Array.js
|
|
1713
|
+
// ../../node_modules/lodash-es/_Uint8Array.js
|
|
1769
1714
|
/** Built-in value references. */
|
|
1770
1715
|
var Uint8Array$1 = root.Uint8Array;
|
|
1771
|
-
|
|
1772
|
-
//#region ../../node_modules/lodash-es/_setCacheAdd.js
|
|
1716
|
+
// ../../node_modules/lodash-es/_setCacheAdd.js
|
|
1773
1717
|
/** Used to stand-in for `undefined` hash values. */
|
|
1774
1718
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1775
1719
|
/**
|
|
@@ -1786,8 +1730,7 @@ function setCacheAdd(value) {
|
|
|
1786
1730
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
1787
1731
|
return this;
|
|
1788
1732
|
}
|
|
1789
|
-
|
|
1790
|
-
//#region ../../node_modules/lodash-es/_setCacheHas.js
|
|
1733
|
+
// ../../node_modules/lodash-es/_setCacheHas.js
|
|
1791
1734
|
/**
|
|
1792
1735
|
* Checks if `value` is in the array cache.
|
|
1793
1736
|
*
|
|
@@ -1800,8 +1743,7 @@ function setCacheAdd(value) {
|
|
|
1800
1743
|
function setCacheHas(value) {
|
|
1801
1744
|
return this.__data__.has(value);
|
|
1802
1745
|
}
|
|
1803
|
-
|
|
1804
|
-
//#region ../../node_modules/lodash-es/_SetCache.js
|
|
1746
|
+
// ../../node_modules/lodash-es/_SetCache.js
|
|
1805
1747
|
/**
|
|
1806
1748
|
*
|
|
1807
1749
|
* Creates an array cache object to store unique values.
|
|
@@ -1817,8 +1759,7 @@ function SetCache(values) {
|
|
|
1817
1759
|
}
|
|
1818
1760
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
1819
1761
|
SetCache.prototype.has = setCacheHas;
|
|
1820
|
-
|
|
1821
|
-
//#region ../../node_modules/lodash-es/_arraySome.js
|
|
1762
|
+
// ../../node_modules/lodash-es/_arraySome.js
|
|
1822
1763
|
/**
|
|
1823
1764
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
1824
1765
|
* shorthands.
|
|
@@ -1834,8 +1775,7 @@ function arraySome(array, predicate) {
|
|
|
1834
1775
|
while (++index < length) if (predicate(array[index], index, array)) return true;
|
|
1835
1776
|
return false;
|
|
1836
1777
|
}
|
|
1837
|
-
|
|
1838
|
-
//#region ../../node_modules/lodash-es/_cacheHas.js
|
|
1778
|
+
// ../../node_modules/lodash-es/_cacheHas.js
|
|
1839
1779
|
/**
|
|
1840
1780
|
* Checks if a `cache` value for `key` exists.
|
|
1841
1781
|
*
|
|
@@ -1847,10 +1787,10 @@ function arraySome(array, predicate) {
|
|
|
1847
1787
|
function cacheHas(cache, key) {
|
|
1848
1788
|
return cache.has(key);
|
|
1849
1789
|
}
|
|
1850
|
-
|
|
1851
|
-
//#region ../../node_modules/lodash-es/_equalArrays.js
|
|
1790
|
+
// ../../node_modules/lodash-es/_equalArrays.js
|
|
1852
1791
|
/** Used to compose bitmasks for value comparisons. */
|
|
1853
|
-
var COMPARE_PARTIAL_FLAG$5 = 1
|
|
1792
|
+
var COMPARE_PARTIAL_FLAG$5 = 1;
|
|
1793
|
+
var COMPARE_UNORDERED_FLAG$3 = 2;
|
|
1854
1794
|
/**
|
|
1855
1795
|
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
1856
1796
|
* partial deep comparisons.
|
|
@@ -1897,8 +1837,7 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1897
1837
|
stack["delete"](other);
|
|
1898
1838
|
return result;
|
|
1899
1839
|
}
|
|
1900
|
-
|
|
1901
|
-
//#region ../../node_modules/lodash-es/_mapToArray.js
|
|
1840
|
+
// ../../node_modules/lodash-es/_mapToArray.js
|
|
1902
1841
|
/**
|
|
1903
1842
|
* Converts `map` to its key-value pairs.
|
|
1904
1843
|
*
|
|
@@ -1913,8 +1852,7 @@ function mapToArray(map) {
|
|
|
1913
1852
|
});
|
|
1914
1853
|
return result;
|
|
1915
1854
|
}
|
|
1916
|
-
|
|
1917
|
-
//#region ../../node_modules/lodash-es/_setToArray.js
|
|
1855
|
+
// ../../node_modules/lodash-es/_setToArray.js
|
|
1918
1856
|
/**
|
|
1919
1857
|
* Converts `set` to an array of its values.
|
|
1920
1858
|
*
|
|
@@ -1929,15 +1867,25 @@ function setToArray(set) {
|
|
|
1929
1867
|
});
|
|
1930
1868
|
return result;
|
|
1931
1869
|
}
|
|
1932
|
-
|
|
1933
|
-
//#region ../../node_modules/lodash-es/_equalByTag.js
|
|
1870
|
+
// ../../node_modules/lodash-es/_equalByTag.js
|
|
1934
1871
|
/** Used to compose bitmasks for value comparisons. */
|
|
1935
|
-
var COMPARE_PARTIAL_FLAG$4 = 1
|
|
1872
|
+
var COMPARE_PARTIAL_FLAG$4 = 1;
|
|
1873
|
+
var COMPARE_UNORDERED_FLAG$2 = 2;
|
|
1936
1874
|
/** `Object#toString` result references. */
|
|
1937
|
-
var boolTag = "[object Boolean]"
|
|
1938
|
-
var
|
|
1875
|
+
var boolTag = "[object Boolean]";
|
|
1876
|
+
var dateTag = "[object Date]";
|
|
1877
|
+
var errorTag = "[object Error]";
|
|
1878
|
+
var mapTag$1 = "[object Map]";
|
|
1879
|
+
var numberTag = "[object Number]";
|
|
1880
|
+
var regexpTag = "[object RegExp]";
|
|
1881
|
+
var setTag$1 = "[object Set]";
|
|
1882
|
+
var stringTag = "[object String]";
|
|
1883
|
+
var symbolTag = "[object Symbol]";
|
|
1884
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1885
|
+
var dataViewTag = "[object DataView]";
|
|
1939
1886
|
/** Used to convert symbols to primitives and strings. */
|
|
1940
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0
|
|
1887
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
1888
|
+
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1941
1889
|
/**
|
|
1942
1890
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
1943
1891
|
* the same `toStringTag`.
|
|
@@ -1986,8 +1934,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
1986
1934
|
}
|
|
1987
1935
|
return false;
|
|
1988
1936
|
}
|
|
1989
|
-
|
|
1990
|
-
//#region ../../node_modules/lodash-es/_equalObjects.js
|
|
1937
|
+
// ../../node_modules/lodash-es/_equalObjects.js
|
|
1991
1938
|
/** Used to compose bitmasks for value comparisons. */
|
|
1992
1939
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
1993
1940
|
/** Used to check objects for own properties. */
|
|
@@ -2038,12 +1985,13 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2038
1985
|
stack["delete"](other);
|
|
2039
1986
|
return result;
|
|
2040
1987
|
}
|
|
2041
|
-
|
|
2042
|
-
//#region ../../node_modules/lodash-es/_baseIsEqualDeep.js
|
|
1988
|
+
// ../../node_modules/lodash-es/_baseIsEqualDeep.js
|
|
2043
1989
|
/** Used to compose bitmasks for value comparisons. */
|
|
2044
1990
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
2045
1991
|
/** `Object#toString` result references. */
|
|
2046
|
-
var argsTag = "[object Arguments]"
|
|
1992
|
+
var argsTag = "[object Arguments]";
|
|
1993
|
+
var arrayTag = "[object Array]";
|
|
1994
|
+
var objectTag = "[object Object]";
|
|
2047
1995
|
/** Used to check objects for own properties. */
|
|
2048
1996
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
2049
1997
|
/**
|
|
@@ -2086,8 +2034,7 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2086
2034
|
stack || (stack = new Stack());
|
|
2087
2035
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
2088
2036
|
}
|
|
2089
|
-
|
|
2090
|
-
//#region ../../node_modules/lodash-es/_baseIsEqual.js
|
|
2037
|
+
// ../../node_modules/lodash-es/_baseIsEqual.js
|
|
2091
2038
|
/**
|
|
2092
2039
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
2093
2040
|
* and tracks traversed objects.
|
|
@@ -2107,10 +2054,10 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
|
2107
2054
|
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;
|
|
2108
2055
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
2109
2056
|
}
|
|
2110
|
-
|
|
2111
|
-
//#region ../../node_modules/lodash-es/_baseIsMatch.js
|
|
2057
|
+
// ../../node_modules/lodash-es/_baseIsMatch.js
|
|
2112
2058
|
/** Used to compose bitmasks for value comparisons. */
|
|
2113
|
-
var COMPARE_PARTIAL_FLAG$1 = 1
|
|
2059
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
2060
|
+
var COMPARE_UNORDERED_FLAG$1 = 2;
|
|
2114
2061
|
/**
|
|
2115
2062
|
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
2116
2063
|
*
|
|
@@ -2142,8 +2089,7 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
2142
2089
|
}
|
|
2143
2090
|
return true;
|
|
2144
2091
|
}
|
|
2145
|
-
|
|
2146
|
-
//#region ../../node_modules/lodash-es/_isStrictComparable.js
|
|
2092
|
+
// ../../node_modules/lodash-es/_isStrictComparable.js
|
|
2147
2093
|
/**
|
|
2148
2094
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
2149
2095
|
*
|
|
@@ -2155,8 +2101,7 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
2155
2101
|
function isStrictComparable(value) {
|
|
2156
2102
|
return value === value && !isObject(value);
|
|
2157
2103
|
}
|
|
2158
|
-
|
|
2159
|
-
//#region ../../node_modules/lodash-es/_getMatchData.js
|
|
2104
|
+
// ../../node_modules/lodash-es/_getMatchData.js
|
|
2160
2105
|
/**
|
|
2161
2106
|
* Gets the property names, values, and compare flags of `object`.
|
|
2162
2107
|
*
|
|
@@ -2176,8 +2121,7 @@ function getMatchData(object) {
|
|
|
2176
2121
|
}
|
|
2177
2122
|
return result;
|
|
2178
2123
|
}
|
|
2179
|
-
|
|
2180
|
-
//#region ../../node_modules/lodash-es/_matchesStrictComparable.js
|
|
2124
|
+
// ../../node_modules/lodash-es/_matchesStrictComparable.js
|
|
2181
2125
|
/**
|
|
2182
2126
|
* A specialized version of `matchesProperty` for source values suitable
|
|
2183
2127
|
* for strict equality comparisons, i.e. `===`.
|
|
@@ -2193,8 +2137,7 @@ function matchesStrictComparable(key, srcValue) {
|
|
|
2193
2137
|
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
2194
2138
|
};
|
|
2195
2139
|
}
|
|
2196
|
-
|
|
2197
|
-
//#region ../../node_modules/lodash-es/_baseMatches.js
|
|
2140
|
+
// ../../node_modules/lodash-es/_baseMatches.js
|
|
2198
2141
|
/**
|
|
2199
2142
|
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
2200
2143
|
*
|
|
@@ -2209,8 +2152,7 @@ function baseMatches(source) {
|
|
|
2209
2152
|
return object === source || baseIsMatch(object, source, matchData);
|
|
2210
2153
|
};
|
|
2211
2154
|
}
|
|
2212
|
-
|
|
2213
|
-
//#region ../../node_modules/lodash-es/_baseHasIn.js
|
|
2155
|
+
// ../../node_modules/lodash-es/_baseHasIn.js
|
|
2214
2156
|
/**
|
|
2215
2157
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
2216
2158
|
*
|
|
@@ -2222,8 +2164,7 @@ function baseMatches(source) {
|
|
|
2222
2164
|
function baseHasIn(object, key) {
|
|
2223
2165
|
return object != null && key in Object(object);
|
|
2224
2166
|
}
|
|
2225
|
-
|
|
2226
|
-
//#region ../../node_modules/lodash-es/_hasPath.js
|
|
2167
|
+
// ../../node_modules/lodash-es/_hasPath.js
|
|
2227
2168
|
/**
|
|
2228
2169
|
* Checks if `path` exists on `object`.
|
|
2229
2170
|
*
|
|
@@ -2245,8 +2186,7 @@ function hasPath(object, path, hasFunc) {
|
|
|
2245
2186
|
length = object == null ? 0 : object.length;
|
|
2246
2187
|
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
2247
2188
|
}
|
|
2248
|
-
|
|
2249
|
-
//#region ../../node_modules/lodash-es/hasIn.js
|
|
2189
|
+
// ../../node_modules/lodash-es/hasIn.js
|
|
2250
2190
|
/**
|
|
2251
2191
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
2252
2192
|
*
|
|
@@ -2276,10 +2216,10 @@ function hasPath(object, path, hasFunc) {
|
|
|
2276
2216
|
function hasIn(object, path) {
|
|
2277
2217
|
return object != null && hasPath(object, path, baseHasIn);
|
|
2278
2218
|
}
|
|
2279
|
-
|
|
2280
|
-
//#region ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
2219
|
+
// ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
2281
2220
|
/** Used to compose bitmasks for value comparisons. */
|
|
2282
|
-
var COMPARE_PARTIAL_FLAG = 1
|
|
2221
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
2222
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
2283
2223
|
/**
|
|
2284
2224
|
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
2285
2225
|
*
|
|
@@ -2295,8 +2235,7 @@ function baseMatchesProperty(path, srcValue) {
|
|
|
2295
2235
|
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
2296
2236
|
};
|
|
2297
2237
|
}
|
|
2298
|
-
|
|
2299
|
-
//#region ../../node_modules/lodash-es/_baseProperty.js
|
|
2238
|
+
// ../../node_modules/lodash-es/_baseProperty.js
|
|
2300
2239
|
/**
|
|
2301
2240
|
* The base implementation of `_.property` without support for deep paths.
|
|
2302
2241
|
*
|
|
@@ -2309,8 +2248,7 @@ function baseProperty(key) {
|
|
|
2309
2248
|
return object == null ? void 0 : object[key];
|
|
2310
2249
|
};
|
|
2311
2250
|
}
|
|
2312
|
-
|
|
2313
|
-
//#region ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
2251
|
+
// ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
2314
2252
|
/**
|
|
2315
2253
|
* A specialized version of `baseProperty` which supports deep paths.
|
|
2316
2254
|
*
|
|
@@ -2323,8 +2261,7 @@ function basePropertyDeep(path) {
|
|
|
2323
2261
|
return baseGet(object, path);
|
|
2324
2262
|
};
|
|
2325
2263
|
}
|
|
2326
|
-
|
|
2327
|
-
//#region ../../node_modules/lodash-es/property.js
|
|
2264
|
+
// ../../node_modules/lodash-es/property.js
|
|
2328
2265
|
/**
|
|
2329
2266
|
* Creates a function that returns the value at `path` of a given object.
|
|
2330
2267
|
*
|
|
@@ -2350,8 +2287,7 @@ function basePropertyDeep(path) {
|
|
|
2350
2287
|
function property(path) {
|
|
2351
2288
|
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
2352
2289
|
}
|
|
2353
|
-
|
|
2354
|
-
//#region ../../node_modules/lodash-es/_baseIteratee.js
|
|
2290
|
+
// ../../node_modules/lodash-es/_baseIteratee.js
|
|
2355
2291
|
/**
|
|
2356
2292
|
* The base implementation of `_.iteratee`.
|
|
2357
2293
|
*
|
|
@@ -2365,8 +2301,7 @@ function baseIteratee(value) {
|
|
|
2365
2301
|
if (typeof value == "object") return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
2366
2302
|
return property(value);
|
|
2367
2303
|
}
|
|
2368
|
-
|
|
2369
|
-
//#region ../../node_modules/lodash-es/_createBaseFor.js
|
|
2304
|
+
// ../../node_modules/lodash-es/_createBaseFor.js
|
|
2370
2305
|
/**
|
|
2371
2306
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
2372
2307
|
*
|
|
@@ -2384,8 +2319,7 @@ function createBaseFor(fromRight) {
|
|
|
2384
2319
|
return object;
|
|
2385
2320
|
};
|
|
2386
2321
|
}
|
|
2387
|
-
|
|
2388
|
-
//#region ../../node_modules/lodash-es/_baseFor.js
|
|
2322
|
+
// ../../node_modules/lodash-es/_baseFor.js
|
|
2389
2323
|
/**
|
|
2390
2324
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
2391
2325
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -2398,8 +2332,7 @@ function createBaseFor(fromRight) {
|
|
|
2398
2332
|
* @returns {Object} Returns `object`.
|
|
2399
2333
|
*/
|
|
2400
2334
|
var baseFor = createBaseFor();
|
|
2401
|
-
|
|
2402
|
-
//#region ../../node_modules/lodash-es/_baseForOwn.js
|
|
2335
|
+
// ../../node_modules/lodash-es/_baseForOwn.js
|
|
2403
2336
|
/**
|
|
2404
2337
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
2405
2338
|
*
|
|
@@ -2411,8 +2344,7 @@ var baseFor = createBaseFor();
|
|
|
2411
2344
|
function baseForOwn(object, iteratee) {
|
|
2412
2345
|
return object && baseFor(object, iteratee, keys);
|
|
2413
2346
|
}
|
|
2414
|
-
|
|
2415
|
-
//#region ../../node_modules/lodash-es/_createBaseEach.js
|
|
2347
|
+
// ../../node_modules/lodash-es/_createBaseEach.js
|
|
2416
2348
|
/**
|
|
2417
2349
|
* Creates a `baseEach` or `baseEachRight` function.
|
|
2418
2350
|
*
|
|
@@ -2430,8 +2362,7 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
2430
2362
|
return collection;
|
|
2431
2363
|
};
|
|
2432
2364
|
}
|
|
2433
|
-
|
|
2434
|
-
//#region ../../node_modules/lodash-es/_baseEach.js
|
|
2365
|
+
// ../../node_modules/lodash-es/_baseEach.js
|
|
2435
2366
|
/**
|
|
2436
2367
|
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
2437
2368
|
*
|
|
@@ -2441,10 +2372,10 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
2441
2372
|
* @returns {Array|Object} Returns `collection`.
|
|
2442
2373
|
*/
|
|
2443
2374
|
var baseEach = createBaseEach(baseForOwn);
|
|
2444
|
-
|
|
2445
|
-
//#region ../../node_modules/lodash-es/isEmpty.js
|
|
2375
|
+
// ../../node_modules/lodash-es/isEmpty.js
|
|
2446
2376
|
/** `Object#toString` result references. */
|
|
2447
|
-
var mapTag = "[object Map]"
|
|
2377
|
+
var mapTag = "[object Map]";
|
|
2378
|
+
var setTag = "[object Set]";
|
|
2448
2379
|
/** Used to check objects for own properties. */
|
|
2449
2380
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2450
2381
|
/**
|
|
@@ -2489,8 +2420,7 @@ function isEmpty(value) {
|
|
|
2489
2420
|
for (var key in value) if (hasOwnProperty.call(value, key)) return false;
|
|
2490
2421
|
return true;
|
|
2491
2422
|
}
|
|
2492
|
-
|
|
2493
|
-
//#region ../../node_modules/lodash-es/_baseReduce.js
|
|
2423
|
+
// ../../node_modules/lodash-es/_baseReduce.js
|
|
2494
2424
|
/**
|
|
2495
2425
|
* The base implementation of `_.reduce` and `_.reduceRight`, without support
|
|
2496
2426
|
* for iteratee shorthands, which iterates over `collection` using `eachFunc`.
|
|
@@ -2510,8 +2440,7 @@ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
2510
2440
|
});
|
|
2511
2441
|
return accumulator;
|
|
2512
2442
|
}
|
|
2513
|
-
|
|
2514
|
-
//#region ../../node_modules/lodash-es/reduce.js
|
|
2443
|
+
// ../../node_modules/lodash-es/reduce.js
|
|
2515
2444
|
/**
|
|
2516
2445
|
* Reduces `collection` to a value which is the accumulated result of running
|
|
2517
2446
|
* each element in `collection` thru `iteratee`, where each successive
|
|
@@ -2553,8 +2482,7 @@ function reduce(collection, iteratee, accumulator) {
|
|
|
2553
2482
|
var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
2554
2483
|
return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
|
|
2555
2484
|
}
|
|
2556
|
-
|
|
2557
|
-
//#region src/cli/utils.ts
|
|
2485
|
+
// src/cli/utils.ts
|
|
2558
2486
|
function resolvePaths(paths) {
|
|
2559
2487
|
if (!Array.isArray(paths)) return path.default.resolve(process.cwd(), paths);
|
|
2560
2488
|
return paths.map((_path) => path.default.resolve(process.cwd(), _path));
|
|
@@ -2612,7 +2540,7 @@ function generate(inputPaths, transform, outputPlugin) {
|
|
|
2612
2540
|
const content = transform(source);
|
|
2613
2541
|
outputPlugin.write(content);
|
|
2614
2542
|
} catch (e) {
|
|
2615
|
-
if (e instanceof _dbml_core.
|
|
2543
|
+
if (e instanceof _dbml_core.CompilerDiagnostics) throw e.map((diag) => ({
|
|
2616
2544
|
...diag,
|
|
2617
2545
|
message: diag.message,
|
|
2618
2546
|
filepath: path.default.basename(_path),
|
|
@@ -2622,8 +2550,7 @@ function generate(inputPaths, transform, outputPlugin) {
|
|
|
2622
2550
|
}
|
|
2623
2551
|
});
|
|
2624
2552
|
}
|
|
2625
|
-
|
|
2626
|
-
//#region src/cli/connector.ts
|
|
2553
|
+
// src/cli/connector.ts
|
|
2627
2554
|
async function connectionHandler(program) {
|
|
2628
2555
|
try {
|
|
2629
2556
|
const { connection, databaseType } = getConnectionOpt(program.args);
|
|
@@ -2642,8 +2569,7 @@ async function connectionHandler(program) {
|
|
|
2642
2569
|
fileLogger.error(error);
|
|
2643
2570
|
}
|
|
2644
2571
|
}
|
|
2645
|
-
|
|
2646
|
-
//#region src/NodeProjectLayout.ts
|
|
2572
|
+
// src/NodeProjectLayout.ts
|
|
2647
2573
|
/**
|
|
2648
2574
|
* A read-only DbmlProjectLayout backed by the Node.js filesystem.
|
|
2649
2575
|
*/
|
|
@@ -2656,6 +2582,11 @@ var NodeProjectLayout = class {
|
|
|
2656
2582
|
const resolved = _dbml_parse.Filepath.resolve(currentFilepath.dirname, relativePath);
|
|
2657
2583
|
return resolved.absolute.endsWith(".dbml") ? resolved : _dbml_parse.Filepath.from(resolved.absolute + ".dbml");
|
|
2658
2584
|
}
|
|
2585
|
+
getFileSpecifierInfo(currentFilepath, targetFilepath) {
|
|
2586
|
+
let specifier = targetFilepath.relativeTo(currentFilepath.dirname);
|
|
2587
|
+
if (specifier.endsWith(".dbml")) specifier = specifier.slice(0, -5);
|
|
2588
|
+
return { specifier };
|
|
2589
|
+
}
|
|
2659
2590
|
getSource(filePath) {
|
|
2660
2591
|
return safeReadFileSync(filePath.fsPath, "utf-8");
|
|
2661
2592
|
}
|
|
@@ -2689,8 +2620,7 @@ function logOnError(fn) {
|
|
|
2689
2620
|
var safeReadFileSync = logOnError(node_fs.readFileSync);
|
|
2690
2621
|
var safeReaddirSync = logOnError(node_fs.readdirSync);
|
|
2691
2622
|
var safeStatSync = logOnError((path, opts) => (0, node_fs.statSync)(path, opts));
|
|
2692
|
-
|
|
2693
|
-
//#region src/cli/config.ts
|
|
2623
|
+
// src/cli/config.ts
|
|
2694
2624
|
var config = {
|
|
2695
2625
|
mysql: { name: "MySQL" },
|
|
2696
2626
|
mysqlLegacy: { name: "MySQL" },
|
|
@@ -2700,13 +2630,11 @@ var config = {
|
|
|
2700
2630
|
oracle: { name: "Oracle" },
|
|
2701
2631
|
snowflake: { name: "Snowflake" }
|
|
2702
2632
|
};
|
|
2703
|
-
|
|
2704
|
-
//#region src/cli/validatePlugins/validatePlugins.ts
|
|
2633
|
+
// src/cli/validatePlugins/validatePlugins.ts
|
|
2705
2634
|
function validateFilePlugin(_path) {
|
|
2706
2635
|
if (fs.default.statSync(_path).isDirectory()) throw new Error("Expect input to be files");
|
|
2707
2636
|
}
|
|
2708
|
-
|
|
2709
|
-
//#region src/cli/export.ts
|
|
2637
|
+
// src/cli/export.ts
|
|
2710
2638
|
async function exportHandler(program) {
|
|
2711
2639
|
const inputPaths = resolvePaths(program.args);
|
|
2712
2640
|
validateInputFilePaths(inputPaths, validateFilePlugin);
|
|
@@ -2743,8 +2671,7 @@ async function exportHandler(program) {
|
|
|
2743
2671
|
}
|
|
2744
2672
|
if (!hasErrors && opts.outFile) console.log(` ${chalk.default.green(figures.default.main.tick)} Generated SQL dump file (${config[format].name}): ${path.default.basename(opts.outFile)}`);
|
|
2745
2673
|
}
|
|
2746
|
-
|
|
2747
|
-
//#region src/errors/domainError.ts
|
|
2674
|
+
// src/errors/domainError.ts
|
|
2748
2675
|
var DomainError = class extends Error {
|
|
2749
2676
|
constructor(message, rootError = {}) {
|
|
2750
2677
|
super(message);
|
|
@@ -2753,8 +2680,7 @@ var DomainError = class extends Error {
|
|
|
2753
2680
|
Error.captureStackTrace(this, this.constructor);
|
|
2754
2681
|
}
|
|
2755
2682
|
};
|
|
2756
|
-
|
|
2757
|
-
//#region src/errors/syntaxError.ts
|
|
2683
|
+
// src/errors/syntaxError.ts
|
|
2758
2684
|
var SyntaxError = class extends DomainError {
|
|
2759
2685
|
constructor(fileName, rootError = {}) {
|
|
2760
2686
|
let message = `You have a syntax error at "${fileName}"`;
|
|
@@ -2764,8 +2690,7 @@ var SyntaxError = class extends DomainError {
|
|
|
2764
2690
|
super(message, rootError);
|
|
2765
2691
|
}
|
|
2766
2692
|
};
|
|
2767
|
-
|
|
2768
|
-
//#region src/cli/import.ts
|
|
2693
|
+
// src/cli/import.ts
|
|
2769
2694
|
async function importHandler(program) {
|
|
2770
2695
|
try {
|
|
2771
2696
|
const inputPaths = resolvePaths(program.args);
|
|
@@ -2778,8 +2703,8 @@ async function importHandler(program) {
|
|
|
2778
2703
|
console.log(` ${chalk.default.green(figures.default.main.tick)} Generated DBML file from SQL file (${config[format].name}): ${path.default.basename(opts.outFile)}`);
|
|
2779
2704
|
}
|
|
2780
2705
|
} catch (error) {
|
|
2781
|
-
if (error instanceof _dbml_core.
|
|
2782
|
-
const msg = `\n ${error.diags.map((diag) => new SyntaxError(diag.filepath ?? "", diag)).map((
|
|
2706
|
+
if (error instanceof _dbml_core.CompilerDiagnostics) {
|
|
2707
|
+
const msg = `\n ${error.diags.map((diag) => new SyntaxError(diag.filepath ?? "", diag)).map((e) => e.message).join("\n ")}`;
|
|
2783
2708
|
consoleLogger.error(msg);
|
|
2784
2709
|
fileLogger.error(msg);
|
|
2785
2710
|
return;
|
|
@@ -2787,8 +2712,7 @@ async function importHandler(program) {
|
|
|
2787
2712
|
throw error;
|
|
2788
2713
|
}
|
|
2789
2714
|
}
|
|
2790
|
-
|
|
2791
|
-
//#region src/cli/index.ts
|
|
2715
|
+
// src/cli/index.ts
|
|
2792
2716
|
function showHelp(args) {
|
|
2793
2717
|
if (args.length < 3) commander.default.help();
|
|
2794
2718
|
}
|
|
@@ -2846,7 +2770,6 @@ function db2dbml(args) {
|
|
|
2846
2770
|
commander.default.parse(args);
|
|
2847
2771
|
connectionHandler(commander.default);
|
|
2848
2772
|
}
|
|
2849
|
-
//#endregion
|
|
2850
2773
|
exports.db2dbml = db2dbml;
|
|
2851
2774
|
exports.dbml2sql = dbml2sql;
|
|
2852
2775
|
exports.sql2dbml = sql2dbml;
|