Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlite

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

2

build/index.d.ts
/// <reference types="./vendor-typings/sqlite3" />
import sqlite3 from 'sqlite3';
import * as sqlite3 from 'sqlite3';
import { Statement } from './Statement';

@@ -4,0 +4,0 @@ import { Database } from './Database';

/// <reference types="./vendor-typings/sql-template-strings" />
/// <reference types="./vendor-typings/sqlite3" />
import sqlite3 from 'sqlite3';
import * as sqlite3 from 'sqlite3';
import { SQLStatement } from 'sql-template-strings';

@@ -5,0 +5,0 @@ import { Statement } from './Statement';

/// <reference types="./vendor-typings/sqlite3" />
import sqlite from 'sqlite3';
import * as sqlite from 'sqlite3';
import { ISqlite } from './interfaces';

@@ -4,0 +4,0 @@ /**

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const fs = require("fs");
const path = require("path");
/**

@@ -15,6 +12,6 @@ * Migrates database schema to the latest version

config.migrationsPath =
config.migrationsPath || path_1.default.join(process.cwd(), 'migrations');
config.migrationsPath || path.join(process.cwd(), 'migrations');
const { force, table, migrationsPath } = config;
/* eslint-disable no-await-in-loop */
const location = path_1.default.resolve(migrationsPath);
const location = path.resolve(migrationsPath);
// Get the list of migration files, for example:

@@ -24,3 +21,3 @@ // { id: 1, name: 'initial', filename: '001-initial.sql' }

const migrations = await new Promise((resolve, reject) => {
fs_1.default.readdir(location, (err, files) => {
fs.readdir(location, (err, files) => {
if (err) {

@@ -43,4 +40,4 @@ return reject(err);

await Promise.all(migrations.map(migration => new Promise((resolve, reject) => {
const filename = path_1.default.join(location, migration.filename);
fs_1.default.readFile(filename, 'utf-8', (err, data) => {
const filename = path.join(location, migration.filename);
fs.readFile(filename, 'utf-8', (err, data) => {
if (err) {

@@ -47,0 +44,0 @@ return reject(err);

@@ -0,1 +1,5 @@

# 4.0.5 - Sun Apr 05 2020 20:13:43
- Use non-default imports rather than synthetic default imports. (#110)
# 4.0.4 - Sun Apr 05 2020 07:44:39

@@ -2,0 +6,0 @@

{
"name": "sqlite",
"version": "4.0.4",
"version": "4.0.5",
"description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc