mirror of
				https://github.com/Dan6erbond/sk-auth.git
				synced 2025-10-26 10:22:56 +01:00 
			
		
		
		
	Merge branch 'main' of https://github.com/Dan6erbond/sk-auth into main
This commit is contained in:
		
						commit
						70fc8ac09e
					
				@ -3436,13 +3436,13 @@ simple-swizzle@^0.2.2:
 | 
				
			|||||||
    is-arrayish "^0.3.1"
 | 
					    is-arrayish "^0.3.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"sk-auth@file:..":
 | 
					"sk-auth@file:..":
 | 
				
			||||||
  version "0.3.5"
 | 
					  version "0.3.6"
 | 
				
			||||||
  dependencies:
 | 
					  dependencies:
 | 
				
			||||||
    cookie "^0.4.1"
 | 
					    cookie "^0.4.1"
 | 
				
			||||||
    jsonwebtoken "^8.5.1"
 | 
					    jsonwebtoken "^8.5.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"sk-auth@file:../":
 | 
					"sk-auth@file:../":
 | 
				
			||||||
  version "0.3.5"
 | 
					  version "0.3.6"
 | 
				
			||||||
  dependencies:
 | 
					  dependencies:
 | 
				
			||||||
    cookie "^0.4.1"
 | 
					    cookie "^0.4.1"
 | 
				
			||||||
    jsonwebtoken "^8.5.1"
 | 
					    jsonwebtoken "^8.5.1"
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "internal": true,
 | 
					  "internal": true,
 | 
				
			||||||
  "main": "../dist/client/index.js",
 | 
					  "main": "../dist/client/index.js",
 | 
				
			||||||
 | 
					  "module": "../dist/client/index.esm.js",
 | 
				
			||||||
  "types": "../dist/client/index.d.ts"
 | 
					  "types": "../dist/client/index.d.ts"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,7 @@
 | 
				
			|||||||
  "version": "0.3.7",
 | 
					  "version": "0.3.7",
 | 
				
			||||||
  "description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
 | 
					  "description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
 | 
				
			||||||
  "main": "dist/index.js",
 | 
					  "main": "dist/index.js",
 | 
				
			||||||
 | 
					  "module": "dist/index.esm.js",
 | 
				
			||||||
  "types": "dist/index.d.ts",
 | 
					  "types": "dist/index.d.ts",
 | 
				
			||||||
  "exports": {
 | 
					  "exports": {
 | 
				
			||||||
    ".": "./dist/index.js",
 | 
					    ".": "./dist/index.js",
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "internal": true,
 | 
					  "internal": true,
 | 
				
			||||||
  "main": "../dist/providers/index.js",
 | 
					  "main": "../dist/providers/index.js",
 | 
				
			||||||
 | 
					  "module": "../dist/providers/index.esm.js",
 | 
				
			||||||
  "types": "../dist/providers/index.d.ts"
 | 
					  "types": "../dist/providers/index.d.ts"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -8,26 +8,50 @@ const globals = {
 | 
				
			|||||||
  ...packageJson.devDependencies,
 | 
					  ...packageJson.devDependencies,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** @type {import('rollup').RollupOptions} */
 | 
				
			||||||
 | 
					const baseConfig = {
 | 
				
			||||||
 | 
					  input: ["src/**/*.ts"],
 | 
				
			||||||
 | 
					  output: {
 | 
				
			||||||
 | 
					    dir: "dist",
 | 
				
			||||||
 | 
					    sourcemap: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  plugins: [
 | 
				
			||||||
 | 
					    esbuild(),
 | 
				
			||||||
 | 
					    typescript({
 | 
				
			||||||
 | 
					      emitDeclarationOnly: true,
 | 
				
			||||||
 | 
					      sourceMap: false,
 | 
				
			||||||
 | 
					    }),
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  external: [
 | 
				
			||||||
 | 
					    ...Object.keys(globals),
 | 
				
			||||||
 | 
					    "@sveltejs/kit/assets/runtime/app/navigation",
 | 
				
			||||||
 | 
					    "@sveltejs/kit/assets/runtime/app/stores",
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** @type {Array.<import('rollup').RollupOptions>} */
 | 
				
			||||||
export default [
 | 
					export default [
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    input: ["src/**/*.ts"],
 | 
					    ...baseConfig,
 | 
				
			||||||
    output: {
 | 
					    output: {
 | 
				
			||||||
      dir: "dist",
 | 
					      ...baseConfig.output,
 | 
				
			||||||
      sourcemap: true,
 | 
					 | 
				
			||||||
      format: "cjs",
 | 
					      format: "cjs",
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    plugins: [...baseConfig.plugins, multiInput()],
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    ...baseConfig,
 | 
				
			||||||
 | 
					    output: {
 | 
				
			||||||
 | 
					      ...baseConfig.output,
 | 
				
			||||||
 | 
					      format: "esm",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    plugins: [
 | 
					    plugins: [
 | 
				
			||||||
      esbuild(),
 | 
					      ...baseConfig.plugins,
 | 
				
			||||||
      multiInput(),
 | 
					      multiInput({
 | 
				
			||||||
      typescript({
 | 
					        /** @param {string} output */
 | 
				
			||||||
        emitDeclarationOnly: true,
 | 
					        transformOutputPath: (output) =>
 | 
				
			||||||
        sourceMap: false,
 | 
					          `${output.split(".").slice(0, -1).join(".")}.esm.${output.split(".").slice(-1)}`,
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    external: [
 | 
					 | 
				
			||||||
      ...Object.keys(globals),
 | 
					 | 
				
			||||||
      "@sveltejs/kit/assets/runtime/app/navigation",
 | 
					 | 
				
			||||||
      "@sveltejs/kit/assets/runtime/app/stores",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user