@boxyhq/saml-jackson 0.3.2-beta.258 → 0.3.2-beta.263
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.
@@ -0,0 +1,23 @@
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
2
|
+
|
3
|
+
export class Initial1640877418166 implements MigrationInterface {
|
4
|
+
name = 'Initial1640877418166'
|
5
|
+
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
7
|
+
await queryRunner.query(`CREATE TABLE \`jackson_store\` (\`key\` varchar(1500) NOT NULL, \`value\` text NOT NULL, \`iv\` varchar(64) NULL, \`tag\` varchar(64) NULL, PRIMARY KEY (\`key\`)) ENGINE=InnoDB`);
|
8
|
+
await queryRunner.query(`CREATE TABLE \`jackson_index\` (\`id\` int NOT NULL AUTO_INCREMENT, \`key\` varchar(1500) NOT NULL, \`storeKey\` varchar(1500) NOT NULL, INDEX \`_jackson_index_key\` (\`key\`), INDEX \`_jackson_index_key_store\` (\`key\`, \`storeKey\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
9
|
+
await queryRunner.query(`CREATE TABLE \`jackson_ttl\` (\`key\` varchar(1500) NOT NULL, \`expiresAt\` bigint NOT NULL, INDEX \`_jackson_ttl_expires_at\` (\`expiresAt\`), PRIMARY KEY (\`key\`)) ENGINE=InnoDB`);
|
10
|
+
await queryRunner.query(`ALTER TABLE \`jackson_index\` ADD CONSTRAINT \`FK_937b040fb2592b4671cbde09e83\` FOREIGN KEY (\`storeKey\`) REFERENCES \`jackson_store\`(\`key\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
11
|
+
}
|
12
|
+
|
13
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
14
|
+
await queryRunner.query(`ALTER TABLE \`jackson_index\` DROP FOREIGN KEY \`FK_937b040fb2592b4671cbde09e83\``);
|
15
|
+
await queryRunner.query(`DROP INDEX \`_jackson_ttl_expires_at\` ON \`jackson_ttl\``);
|
16
|
+
await queryRunner.query(`DROP TABLE \`jackson_ttl\``);
|
17
|
+
await queryRunner.query(`DROP INDEX \`_jackson_index_key_store\` ON \`jackson_index\``);
|
18
|
+
await queryRunner.query(`DROP INDEX \`_jackson_index_key\` ON \`jackson_index\``);
|
19
|
+
await queryRunner.query(`DROP TABLE \`jackson_index\``);
|
20
|
+
await queryRunner.query(`DROP TABLE \`jackson_store\``);
|
21
|
+
}
|
22
|
+
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
2
|
+
|
3
|
+
export class Initial1640877358925 implements MigrationInterface {
|
4
|
+
name = 'Initial1640877358925'
|
5
|
+
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
7
|
+
await queryRunner.query(`CREATE TABLE \`jackson_store\` (\`key\` varchar(1500) NOT NULL, \`value\` text NOT NULL, \`iv\` varchar(64) NULL, \`tag\` varchar(64) NULL, PRIMARY KEY (\`key\`)) ENGINE=InnoDB`);
|
8
|
+
await queryRunner.query(`CREATE TABLE \`jackson_index\` (\`id\` int NOT NULL AUTO_INCREMENT, \`key\` varchar(1500) NOT NULL, \`storeKey\` varchar(1500) NOT NULL, INDEX \`_jackson_index_key\` (\`key\`), INDEX \`_jackson_index_key_store\` (\`key\`, \`storeKey\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
9
|
+
await queryRunner.query(`CREATE TABLE \`jackson_ttl\` (\`key\` varchar(1500) NOT NULL, \`expiresAt\` bigint NOT NULL, INDEX \`_jackson_ttl_expires_at\` (\`expiresAt\`), PRIMARY KEY (\`key\`)) ENGINE=InnoDB`);
|
10
|
+
await queryRunner.query(`ALTER TABLE \`jackson_index\` ADD CONSTRAINT \`FK_937b040fb2592b4671cbde09e83\` FOREIGN KEY (\`storeKey\`) REFERENCES \`jackson_store\`(\`key\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
11
|
+
}
|
12
|
+
|
13
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
14
|
+
await queryRunner.query(`ALTER TABLE \`jackson_index\` DROP FOREIGN KEY \`FK_937b040fb2592b4671cbde09e83\``);
|
15
|
+
await queryRunner.query(`DROP INDEX \`_jackson_ttl_expires_at\` ON \`jackson_ttl\``);
|
16
|
+
await queryRunner.query(`DROP TABLE \`jackson_ttl\``);
|
17
|
+
await queryRunner.query(`DROP INDEX \`_jackson_index_key_store\` ON \`jackson_index\``);
|
18
|
+
await queryRunner.query(`DROP INDEX \`_jackson_index_key\` ON \`jackson_index\``);
|
19
|
+
await queryRunner.query(`DROP TABLE \`jackson_index\``);
|
20
|
+
await queryRunner.query(`DROP TABLE \`jackson_store\``);
|
21
|
+
}
|
22
|
+
|
23
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
2
|
+
|
3
|
+
export class Initial1640877103193 implements MigrationInterface {
|
4
|
+
name = 'Initial1640877103193'
|
5
|
+
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
7
|
+
await queryRunner.query(`CREATE TABLE "jackson_store" ("key" character varying(1500) NOT NULL, "value" text NOT NULL, "iv" character varying(64), "tag" character varying(64), CONSTRAINT "PK_87b6fc1475fbd1228d2f53c6f4a" PRIMARY KEY ("key"))`);
|
8
|
+
await queryRunner.query(`CREATE TABLE "jackson_index" ("id" SERIAL NOT NULL, "key" character varying(1500) NOT NULL, "storeKey" character varying(1500) NOT NULL, CONSTRAINT "PK_a95aa83f01e3c73e126856b7820" PRIMARY KEY ("id"))`);
|
9
|
+
await queryRunner.query(`CREATE INDEX "_jackson_index_key" ON "jackson_index" ("key") `);
|
10
|
+
await queryRunner.query(`CREATE INDEX "_jackson_index_key_store" ON "jackson_index" ("key", "storeKey") `);
|
11
|
+
await queryRunner.query(`CREATE TABLE "jackson_ttl" ("key" character varying(1500) NOT NULL, "expiresAt" bigint NOT NULL, CONSTRAINT "PK_7c9bcdfb4d82e873e19935ec806" PRIMARY KEY ("key"))`);
|
12
|
+
await queryRunner.query(`CREATE INDEX "_jackson_ttl_expires_at" ON "jackson_ttl" ("expiresAt") `);
|
13
|
+
await queryRunner.query(`ALTER TABLE "jackson_index" ADD CONSTRAINT "FK_937b040fb2592b4671cbde09e83" FOREIGN KEY ("storeKey") REFERENCES "jackson_store"("key") ON DELETE CASCADE ON UPDATE NO ACTION`);
|
14
|
+
}
|
15
|
+
|
16
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
17
|
+
await queryRunner.query(`ALTER TABLE "jackson_index" DROP CONSTRAINT "FK_937b040fb2592b4671cbde09e83"`);
|
18
|
+
await queryRunner.query(`DROP INDEX "public"."_jackson_ttl_expires_at"`);
|
19
|
+
await queryRunner.query(`DROP TABLE "jackson_ttl"`);
|
20
|
+
await queryRunner.query(`DROP INDEX "public"."_jackson_index_key_store"`);
|
21
|
+
await queryRunner.query(`DROP INDEX "public"."_jackson_index_key"`);
|
22
|
+
await queryRunner.query(`DROP TABLE "jackson_index"`);
|
23
|
+
await queryRunner.query(`DROP TABLE "jackson_store"`);
|
24
|
+
}
|
25
|
+
|
26
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@boxyhq/saml-jackson",
|
3
|
-
"version": "0.3.2-beta.
|
3
|
+
"version": "0.3.2-beta.263",
|
4
4
|
"license": "Apache 2.0",
|
5
5
|
"description": "SAML 2.0 service",
|
6
6
|
"main": "dist/index.js",
|
@@ -57,8 +57,6 @@
|
|
57
57
|
"@typescript-eslint/parser": "5.8.1",
|
58
58
|
"eslint": "8.5.0",
|
59
59
|
"eslint-config-prettier": "8.3.0",
|
60
|
-
"husky": "7.0.4",
|
61
|
-
"lint-staged": "12.1.4",
|
62
60
|
"prettier": "2.5.1",
|
63
61
|
"sinon": "12.0.1",
|
64
62
|
"tap": "15.1.5",
|
@@ -66,12 +64,8 @@
|
|
66
64
|
"tsconfig-paths": "3.12.0",
|
67
65
|
"typescript": "4.5.4"
|
68
66
|
},
|
69
|
-
"lint-staged": {
|
70
|
-
"*.{js,ts}": "eslint --cache --fix",
|
71
|
-
"*.{js,ts,css,md}": "prettier --write"
|
72
|
-
},
|
73
67
|
"files": [
|
74
68
|
"dist",
|
75
|
-
"
|
69
|
+
"migration"
|
76
70
|
]
|
77
71
|
}
|