cookie-jwt-crypto-sveltekit
Advanced tools
Comparing version 0.0.2 to 0.0.3
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
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; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
@@ -24,3 +8,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const jwt_service_1 = require("./jwt-service"); | ||
const cookie = __importStar(require("cookie")); | ||
const cookie_1 = __importDefault(require("cookie")); | ||
/** | ||
@@ -36,3 +20,3 @@ * class qui implementer des fonctions pour | ||
super(expire, secret); // appelle JwtWoo et lui passe les paramettres | ||
this.cookie = cookie; | ||
this.cookie = cookie_1.default; | ||
/** | ||
@@ -39,0 +23,0 @@ * fonction qui creer un set-cookie pour le headers |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
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; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.JwtWoo = void 0; | ||
const jwt = __importStar(require("jsonwebtoken")); | ||
const jsonwebtoken_1 = __importDefault(require("jsonwebtoken")); | ||
/** | ||
@@ -30,3 +14,3 @@ * class qui implemente des fonctions | ||
constructor(expire, secret) { | ||
this.jwt = jwt; | ||
this.jwt = jsonwebtoken_1.default; | ||
/** | ||
@@ -33,0 +17,0 @@ * creation d'un token signé |
import { JwtWoo } from './jwt-service'; | ||
import * as cookie from 'cookie'; | ||
import cookie from 'cookie'; | ||
/** | ||
@@ -4,0 +4,0 @@ * class qui implementer des fonctions pour |
@@ -1,2 +0,2 @@ | ||
import * as jwt from 'jsonwebtoken'; | ||
import jwt from 'jsonwebtoken'; | ||
/** | ||
@@ -3,0 +3,0 @@ * class qui implemente des fonctions |
{ | ||
"name": "cookie-jwt-crypto-sveltekit", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "fonction de creation d'un jwt + d'un cookie (affectation httponly) + authorization graphcms dans le header, le tout fonctionnant dans le hooks de sveltekit + crypto pour les hash de mot de passe", | ||
@@ -5,0 +5,0 @@ "repository": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
41340
749