sql.js 1.8.0 → 1.10.1
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/.devcontainer/Dockerfile +11 -43
- package/.devcontainer/devcontainer.json +2 -2
- package/README.md +1 -1
- package/dist/sql-asm-debug.js +106468 -98846
- package/dist/sql-asm-memory-growth.js +112 -119
- package/dist/sql-asm.js +112 -119
- package/dist/sql-wasm-debug.js +2358 -2361
- package/dist/sql-wasm-debug.wasm +0 -0
- package/dist/sql-wasm.js +99 -101
- package/dist/sql-wasm.wasm +0 -0
- package/dist/sqljs-all.zip +0 -0
- package/dist/sqljs-wasm.zip +0 -0
- package/dist/sqljs-worker-wasm.zip +0 -0
- package/dist/worker.sql-asm-debug.js +106468 -98846
- package/dist/worker.sql-asm.js +112 -119
- package/dist/worker.sql-wasm-debug.js +2358 -2361
- package/dist/worker.sql-wasm.js +99 -101
- package/package.json +6 -6
package/.devcontainer/Dockerfile
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.155.1/containers/typescript-node/.devcontainer/base.Dockerfile
|
|
8
8
|
# [Choice] Node.js version: 14, 12, 10
|
|
9
|
-
ARG VARIANT="
|
|
9
|
+
ARG VARIANT="16-buster"
|
|
10
10
|
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
|
11
11
|
|
|
12
12
|
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
|
@@ -24,7 +24,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
|
|
24
24
|
# Install EMSDK to /emsdk just like the EMSDK Dockerfile: https://github.com/emscripten-core/emsdk/blob/master/docker/Dockerfile
|
|
25
25
|
ENV EMSDK /emsdk
|
|
26
26
|
# We pin the EMSDK version rather than 'latest' so that everyone is using the same compiler version
|
|
27
|
-
ENV EMSCRIPTEN_VERSION 3.1.
|
|
27
|
+
ENV EMSCRIPTEN_VERSION 3.1.51
|
|
28
28
|
|
|
29
29
|
RUN git clone https://github.com/emscripten-core/emsdk.git $EMSDK
|
|
30
30
|
|
|
@@ -85,47 +85,15 @@ RUN echo 'export EM_NODE_JS="$EMSDK_NODE"' >> /etc/bash.bashrc
|
|
|
85
85
|
# List taken from:
|
|
86
86
|
# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix
|
|
87
87
|
RUN apt-get update \
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
libcups2 \
|
|
98
|
-
libdbus-1-3 \
|
|
99
|
-
libexpat1 \
|
|
100
|
-
libfontconfig1 \
|
|
101
|
-
libgbm1 \
|
|
102
|
-
libgcc1 \
|
|
103
|
-
libglib2.0-0 \
|
|
104
|
-
libgtk-3-0 \
|
|
105
|
-
libnspr4 \
|
|
106
|
-
libnss3 \
|
|
107
|
-
libpango-1.0-0 \
|
|
108
|
-
libpangocairo-1.0-0 \
|
|
109
|
-
libstdc++6 \
|
|
110
|
-
libx11-6 \
|
|
111
|
-
libx11-xcb1 \
|
|
112
|
-
libxcb1 \
|
|
113
|
-
libxcomposite1 \
|
|
114
|
-
libxcursor1 \
|
|
115
|
-
libxdamage1 \
|
|
116
|
-
libxext6 \
|
|
117
|
-
libxfixes3 \
|
|
118
|
-
libxi6 \
|
|
119
|
-
libxrandr2 \
|
|
120
|
-
libxrender1 \
|
|
121
|
-
libxss1 \
|
|
122
|
-
libxtst6 \
|
|
123
|
-
lsb-release \
|
|
124
|
-
wget \
|
|
125
|
-
xdg-utils
|
|
126
|
-
|
|
127
|
-
# Installs the command "sha3sum", which is used check the download integrity of sqlite source.
|
|
128
|
-
RUN apt-get install -y libdigest-sha3-perl
|
|
88
|
+
&& apt-get install -y wget gnupg \
|
|
89
|
+
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
|
90
|
+
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
|
91
|
+
&& apt-get update \
|
|
92
|
+
&& apt-get install -y google-chrome-stable fonts-freefont-ttf libxss1 libxshmfence1 libglu1 \
|
|
93
|
+
--no-install-recommends \
|
|
94
|
+
# Installs the command "sha3sum", which is used check the download integrity of sqlite source.
|
|
95
|
+
&& apt-get install -y libdigest-sha3-perl \
|
|
96
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
129
97
|
|
|
130
98
|
# We set this env variable (RUN_WORKER_TEST_WITHOUT_PUPPETEER_SANDBOX=1) this to tell our sql.js test harness to run Puppeteer without the sandbox.
|
|
131
99
|
# Otherwise, when we instantiate Puppeteer, we get this error:
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"name": "Node.js & TypeScript",
|
|
5
5
|
"build": {
|
|
6
6
|
"dockerfile": "Dockerfile",
|
|
7
|
-
// Update 'VARIANT' to pick a Node version:
|
|
7
|
+
// Update 'VARIANT' to pick a Node version: 12, 14, 16
|
|
8
8
|
"args": {
|
|
9
|
-
"VARIANT": "
|
|
9
|
+
"VARIANT": "16-buster"
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
// Set *default* container specific settings.json values on container create.
|
package/README.md
CHANGED
|
@@ -270,7 +270,7 @@ If you need ```BigInt``` support, it is partially supported since most browsers
|
|
|
270
270
|
while (stmt.step()) console.log(stmt.get(null, config));
|
|
271
271
|
|
|
272
272
|
/*OR*/
|
|
273
|
-
const
|
|
273
|
+
const results = db.exec("SELECT * FROM test", config);
|
|
274
274
|
console.log(results[0].values)
|
|
275
275
|
</script>
|
|
276
276
|
```
|