@pgpm/utils 0.15.3 → 0.15.4

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/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  EXTENSION = pgpm-utils
2
- DATA = sql/pgpm-utils--0.15.2.sql
2
+ DATA = sql/pgpm-utils--0.15.3.sql
3
3
 
4
4
  PG_CONFIG = pg_config
5
5
  PGXS := $(shell $(PG_CONFIG) --pgxs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/utils",
3
- "version": "0.15.3",
3
+ "version": "0.15.4",
4
4
  "description": "General utility functions for PostgreSQL extensions",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -21,10 +21,10 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/verify": "0.15.3"
24
+ "@pgpm/verify": "0.15.4"
25
25
  },
26
26
  "devDependencies": {
27
- "pgpm": "^1.0.0"
27
+ "pgpm": "^1.2.2"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/constructive-io/pgpm-modules/issues"
36
36
  },
37
- "gitHead": "187ed37f6b731132fe930acf5b5996b1e63ecca0"
37
+ "gitHead": "aad0dbef0336d6c18d027120ef9addc418822edd"
38
38
  }
@@ -1,6 +1,6 @@
1
1
  # pgpm-utils extension
2
2
  comment = 'pgpm-utils extension'
3
- default_version = '0.15.2'
3
+ default_version = '0.15.3'
4
4
  module_pathname = '$libdir/pgpm-utils'
5
5
  requires = 'plpgsql,pgpm-verify'
6
6
  relocatable = false
@@ -1,9 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`bitmask less 1`] = `"01"`;
4
-
5
- exports[`bitmask more 1`] = `"00000000000000000101"`;
6
-
7
- exports[`less 1`] = `"01"`;
8
-
9
- exports[`more 1`] = `"00000000000000000101"`;
@@ -1,46 +0,0 @@
1
- import { getConnections, PgTestClient } from 'pgsql-test';
2
-
3
- let pg: PgTestClient;
4
- let teardown: () => Promise<void>;
5
-
6
- beforeAll(async () => {
7
- ({ pg, teardown } = await getConnections());
8
- });
9
-
10
- afterAll(async () => {
11
- await teardown();
12
- });
13
-
14
- it('more', async () => {
15
- const { mask_pad } = await pg.one(
16
- `SELECT utils.mask_pad($1, $2) AS mask_pad`,
17
- ['101', 20]
18
- );
19
- expect(mask_pad).toMatchSnapshot();
20
- });
21
-
22
- it('less', async () => {
23
- const { mask_pad } = await pg.one(
24
- `SELECT utils.mask_pad($1, $2) AS mask_pad`,
25
- ['101', 2]
26
- );
27
- expect(mask_pad).toMatchSnapshot();
28
- });
29
-
30
- describe('bitmask', () => {
31
- it('more', async () => {
32
- const { bitmask_pad } = await pg.one(
33
- `SELECT utils.bitmask_pad($1::varbit, $2) AS bitmask_pad`,
34
- ['101', 20]
35
- );
36
- expect(bitmask_pad).toMatchSnapshot();
37
- });
38
-
39
- it('less', async () => {
40
- const { bitmask_pad } = await pg.one(
41
- `SELECT utils.bitmask_pad($1::varbit, $2) AS bitmask_pad`,
42
- ['101', 2]
43
- );
44
- expect(bitmask_pad).toMatchSnapshot();
45
- });
46
- });
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../pgpm/index.js" "$@"
19
- else
20
- exec node "$basedir/../pgpm/index.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../pgpm/index.js" "$@"
19
- else
20
- exec node "$basedir/../pgpm/index.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../pgpm/index.js" "$@"
19
- else
20
- exec node "$basedir/../pgpm/index.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../pgpm/index.js" "$@"
19
- else
20
- exec node "$basedir/../pgpm/index.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules/pgpm/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/pgpm@1.0.0_@babel+core@7.28.0_@pgsql+types@17.6.2/node_modules:/Users/pyramation/code/constructive/pgpm-modules/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../pgpm/index.js" "$@"
19
- else
20
- exec node "$basedir/../pgpm/index.js" "$@"
21
- fi