feat(planning): grille hebdomadaire complète avec API et filtres
- Connexion API via proxy Angular (résolution CORS, base path /api) - Import CSS ng-zorro global pour les modales et composants - Filtres Camion/Show câblés sur l'affichage de la grille - Camions affichés via TrucksService (linkés au show du même créneau) - Panneau de détails : spectacles + camions du jour sélectionné - Modale de création de spectacle stylisée avec fond et centrage - Positionnement précis des events à la minute dans leur créneau - Auto-scroll vers l'heure courante au chargement - Ligne "maintenant" sur la colonne du jour actuel - Régénération des services OpenAPI (nouveaux noms de types) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ Base library for [Sigstore][1] JavaScript packages.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Node.js version ^20.17.0 || >=22.9.0
|
||||
- Node.js version >= 18.17.0
|
||||
|
||||
|
||||
[1]: https://www.sigstore.dev
|
||||
|
||||
+3
-3
@@ -2,9 +2,9 @@ import { ASN1Tag } from './tag';
|
||||
export declare class ASN1Obj {
|
||||
readonly tag: ASN1Tag;
|
||||
readonly subs: ASN1Obj[];
|
||||
readonly value: Buffer<ArrayBufferLike>;
|
||||
constructor(tag: ASN1Tag, value: Buffer<ArrayBufferLike>, subs: ASN1Obj[]);
|
||||
static parseBuffer(buf: Buffer<ArrayBuffer>): ASN1Obj;
|
||||
readonly value: Buffer;
|
||||
constructor(tag: ASN1Tag, value: Buffer, subs: ASN1Obj[]);
|
||||
static parseBuffer(buf: Buffer): ASN1Obj;
|
||||
toDER(): Buffer;
|
||||
toBoolean(): boolean;
|
||||
toInteger(): bigint;
|
||||
|
||||
-3
@@ -22,9 +22,6 @@ const length_1 = require("./length");
|
||||
const parse_1 = require("./parse");
|
||||
const tag_1 = require("./tag");
|
||||
class ASN1Obj {
|
||||
tag;
|
||||
subs;
|
||||
value;
|
||||
constructor(tag, value, subs) {
|
||||
this.tag = tag;
|
||||
this.value = value;
|
||||
|
||||
-3
@@ -37,9 +37,6 @@ const TAG_CLASS = {
|
||||
};
|
||||
// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-encoded-tag-bytes
|
||||
class ASN1Tag {
|
||||
number;
|
||||
constructed;
|
||||
class;
|
||||
constructor(enc) {
|
||||
// Bits 0 through 4 are the tag number
|
||||
this.number = enc & 0x1f;
|
||||
|
||||
+1
-10
@@ -25,16 +25,7 @@ limitations under the License.
|
||||
const crypto_1 = __importDefault(require("crypto"));
|
||||
function createPublicKey(key, type = 'spki') {
|
||||
if (typeof key === 'string') {
|
||||
if (key.startsWith('-----')) {
|
||||
return crypto_1.default.createPublicKey(key);
|
||||
}
|
||||
else {
|
||||
return crypto_1.default.createPublicKey({
|
||||
key: Buffer.from(key, 'base64'),
|
||||
format: 'der',
|
||||
type: type,
|
||||
});
|
||||
}
|
||||
return crypto_1.default.createPublicKey(key);
|
||||
}
|
||||
else {
|
||||
return crypto_1.default.createPublicKey({ key, format: 'der', type: type });
|
||||
|
||||
+8
-7
@@ -19,11 +19,12 @@ limitations under the License.
|
||||
const PAE_PREFIX = 'DSSEv1';
|
||||
// DSSE Pre-Authentication Encoding
|
||||
function preAuthEncoding(payloadType, payload) {
|
||||
const typeBytes = Buffer.from(payloadType, 'utf-8');
|
||||
return Buffer.concat([
|
||||
Buffer.from(`${PAE_PREFIX} ${typeBytes.length} `, 'ascii'),
|
||||
typeBytes,
|
||||
Buffer.from(` ${payload.length} `, 'ascii'),
|
||||
payload,
|
||||
]);
|
||||
const prefix = [
|
||||
PAE_PREFIX,
|
||||
payloadType.length,
|
||||
payloadType,
|
||||
payload.length,
|
||||
'',
|
||||
].join(' ');
|
||||
return Buffer.concat([Buffer.from(prefix, 'ascii'), payload]);
|
||||
}
|
||||
|
||||
+7
-17
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.X509SCTExtension = exports.X509Certificate = exports.EXTENSION_OID_SCT = exports.ByteStream = exports.RFC3161Timestamp = exports.pem = exports.json = exports.encoding = exports.dsse = exports.crypto = exports.ASN1Obj = void 0;
|
||||
/*
|
||||
|
||||
-1
@@ -1,3 +1,2 @@
|
||||
export declare const ECDSA_SIGNATURE_ALGOS: Record<string, string>;
|
||||
export declare const RSA_SIGNATURE_ALGOS: Record<string, string>;
|
||||
export declare const SHA2_HASH_ALGOS: Record<string, string>;
|
||||
|
||||
+1
-7
@@ -1,18 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SHA2_HASH_ALGOS = exports.RSA_SIGNATURE_ALGOS = exports.ECDSA_SIGNATURE_ALGOS = void 0;
|
||||
exports.SHA2_HASH_ALGOS = exports.ECDSA_SIGNATURE_ALGOS = void 0;
|
||||
exports.ECDSA_SIGNATURE_ALGOS = {
|
||||
'1.2.840.10045.4.3.1': 'sha224',
|
||||
'1.2.840.10045.4.3.2': 'sha256',
|
||||
'1.2.840.10045.4.3.3': 'sha384',
|
||||
'1.2.840.10045.4.3.4': 'sha512',
|
||||
};
|
||||
exports.RSA_SIGNATURE_ALGOS = {
|
||||
'1.2.840.113549.1.1.14': 'sha224',
|
||||
'1.2.840.113549.1.1.11': 'sha256',
|
||||
'1.2.840.113549.1.1.12': 'sha384',
|
||||
'1.2.840.113549.1.1.13': 'sha512',
|
||||
};
|
||||
exports.SHA2_HASH_ALGOS = {
|
||||
'2.16.840.1.101.3.4.2.1': 'sha256',
|
||||
'2.16.840.1.101.3.4.2.2': 'sha384',
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
export declare function toDER(certificate: string): Buffer<ArrayBuffer>;
|
||||
export declare function toDER(certificate: string): Buffer;
|
||||
export declare function fromDER(certificate: Buffer, type?: string): string;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { TSTInfo } from './tstinfo';
|
||||
export declare class RFC3161Timestamp {
|
||||
root: ASN1Obj;
|
||||
constructor(asn1: ASN1Obj);
|
||||
static parse(der: Buffer<ArrayBuffer>): RFC3161Timestamp;
|
||||
static parse(der: Buffer): RFC3161Timestamp;
|
||||
get status(): bigint;
|
||||
get contentType(): string;
|
||||
get eContentType(): string;
|
||||
|
||||
+7
-18
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.RFC3161Timestamp = void 0;
|
||||
/*
|
||||
@@ -58,7 +48,6 @@ const OID_PKCS9_CONTENT_TYPE_SIGNED_DATA = '1.2.840.113549.1.7.2';
|
||||
const OID_PKCS9_CONTENT_TYPE_TSTINFO = '1.2.840.113549.1.9.16.1.4';
|
||||
const OID_PKCS9_MESSAGE_DIGEST_KEY = '1.2.840.113549.1.9.4';
|
||||
class RFC3161Timestamp {
|
||||
root;
|
||||
constructor(asn1) {
|
||||
this.root = asn1;
|
||||
}
|
||||
|
||||
+7
-18
@@ -15,30 +15,19 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TSTInfo = void 0;
|
||||
const crypto = __importStar(require("../crypto"));
|
||||
const oid_1 = require("../oid");
|
||||
const error_1 = require("./error");
|
||||
class TSTInfo {
|
||||
root;
|
||||
constructor(asn1) {
|
||||
this.root = asn1;
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ export declare class ByteStream {
|
||||
private buf;
|
||||
private view;
|
||||
private start;
|
||||
constructor(buffer?: Buffer<ArrayBufferLike>);
|
||||
constructor(buffer?: ArrayBuffer);
|
||||
get buffer(): Buffer;
|
||||
get length(): number;
|
||||
get position(): number;
|
||||
|
||||
+4
-6
@@ -19,17 +19,14 @@ limitations under the License.
|
||||
class StreamError extends Error {
|
||||
}
|
||||
class ByteStream {
|
||||
static BLOCK_SIZE = 1024;
|
||||
buf;
|
||||
view;
|
||||
start = 0;
|
||||
constructor(buffer) {
|
||||
this.start = 0;
|
||||
if (buffer) {
|
||||
this.buf = buffer;
|
||||
this.view = Buffer.from(buffer);
|
||||
}
|
||||
else {
|
||||
this.buf = Buffer.alloc(0);
|
||||
this.buf = new ArrayBuffer(0);
|
||||
this.view = Buffer.from(this.buf);
|
||||
}
|
||||
}
|
||||
@@ -106,7 +103,7 @@ class ByteStream {
|
||||
}
|
||||
}
|
||||
realloc(size) {
|
||||
const newArray = Buffer.alloc(size);
|
||||
const newArray = new ArrayBuffer(size);
|
||||
const newView = Buffer.from(newArray);
|
||||
// Copy the old buffer into the new one
|
||||
newView.set(this.view);
|
||||
@@ -115,3 +112,4 @@ class ByteStream {
|
||||
}
|
||||
}
|
||||
exports.ByteStream = ByteStream;
|
||||
ByteStream.BLOCK_SIZE = 1024;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ export declare const EXTENSION_OID_SCT = "1.3.6.1.4.1.11129.2.4.2";
|
||||
export declare class X509Certificate {
|
||||
root: ASN1Obj;
|
||||
constructor(asn1: ASN1Obj);
|
||||
static parse(cert: Buffer<ArrayBuffer> | string): X509Certificate;
|
||||
static parse(cert: Buffer | string): X509Certificate;
|
||||
get tbsCertificate(): ASN1Obj;
|
||||
get version(): string;
|
||||
get serialNumber(): Buffer;
|
||||
|
||||
+7
-22
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.X509Certificate = exports.EXTENSION_OID_SCT = void 0;
|
||||
/*
|
||||
@@ -61,7 +51,6 @@ const EXTENSION_OID_BASIC_CONSTRAINTS = '2.5.29.19';
|
||||
const EXTENSION_OID_AUTHORITY_KEY_ID = '2.5.29.35';
|
||||
exports.EXTENSION_OID_SCT = '1.3.6.1.4.1.11129.2.4.2';
|
||||
class X509Certificate {
|
||||
root;
|
||||
constructor(asn1) {
|
||||
this.root = asn1;
|
||||
}
|
||||
@@ -100,9 +89,6 @@ class X509Certificate {
|
||||
}
|
||||
get signatureAlgorithm() {
|
||||
const oid = this.signatureAlgorithmObj.subs[0].toOID();
|
||||
if (oid_1.RSA_SIGNATURE_ALGOS[oid]) {
|
||||
return oid_1.RSA_SIGNATURE_ALGOS[oid];
|
||||
}
|
||||
return oid_1.ECDSA_SIGNATURE_ALGOS[oid];
|
||||
}
|
||||
get signatureValue() {
|
||||
@@ -150,7 +136,6 @@ class X509Certificate {
|
||||
get isCA() {
|
||||
const ca = this.extBasicConstraints?.isCA || false;
|
||||
// If the KeyUsage extension is present, keyCertSign must be set
|
||||
/* istanbul ignore else */
|
||||
if (this.extKeyUsage) {
|
||||
return ca && this.extKeyUsage.keyCertSign;
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ export declare class X509Extension {
|
||||
constructor(asn1: ASN1Obj);
|
||||
get oid(): string;
|
||||
get critical(): boolean;
|
||||
get value(): Buffer<ArrayBufferLike>;
|
||||
get value(): Buffer;
|
||||
get valueObj(): ASN1Obj;
|
||||
protected get extnValueObj(): ASN1Obj;
|
||||
}
|
||||
|
||||
-1
@@ -5,7 +5,6 @@ const stream_1 = require("../stream");
|
||||
const sct_1 = require("./sct");
|
||||
// https://www.rfc-editor.org/rfc/rfc5280#section-4.1
|
||||
class X509Extension {
|
||||
root;
|
||||
constructor(asn1) {
|
||||
this.root = asn1;
|
||||
}
|
||||
|
||||
+7
-24
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SignedCertificateTimestamp = void 0;
|
||||
/*
|
||||
@@ -52,13 +42,6 @@ limitations under the License.
|
||||
const crypto = __importStar(require("../crypto"));
|
||||
const stream_1 = require("../stream");
|
||||
class SignedCertificateTimestamp {
|
||||
version;
|
||||
logID;
|
||||
timestamp;
|
||||
extensions;
|
||||
hashAlgorithm;
|
||||
signatureAlgorithm;
|
||||
signature;
|
||||
constructor(options) {
|
||||
this.version = options.version;
|
||||
this.logID = options.logID;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sigstore/core",
|
||||
"version": "3.2.1",
|
||||
"version": "2.0.0",
|
||||
"description": "Base library for Sigstore",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@@ -26,6 +26,6 @@
|
||||
"provenance": true
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.17.0 || >=22.9.0"
|
||||
"node": "^18.17.0 || >=20.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user