@remix-run/deno
Advanced tools
Comparing version 0.0.0-experimental-b9cc66cb to 0.0.0-experimental-bb4495f3
/** | ||
* @remix-run/deno v0.0.0-experimental-b9cc66cb | ||
* @remix-run/deno v0.0.0-experimental-bb4495f3 | ||
* | ||
@@ -11,6 +11,2 @@ * Copyright (c) Remix Software Inc. | ||
*/ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const encoder = new TextEncoder(); | ||
@@ -50,3 +46,2 @@ async function sign(value, secret) { | ||
exports.sign = sign; | ||
exports.unsign = unsign; | ||
export { sign, unsign }; |
/** | ||
* @remix-run/deno v0.0.0-experimental-b9cc66cb | ||
* @remix-run/deno v0.0.0-experimental-bb4495f3 | ||
* | ||
@@ -11,13 +11,9 @@ * Copyright (c) Remix Software Inc. | ||
*/ | ||
'use strict'; | ||
import { sign, unsign } from './cookieSigning.js'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var cookieSigning = require('./cookieSigning.js'); | ||
function installGlobals() { | ||
window.sign = cookieSigning.sign; | ||
window.unsign = cookieSigning.unsign; | ||
window.sign = sign; | ||
window.unsign = unsign; | ||
} | ||
exports.installGlobals = installGlobals; | ||
export { installGlobals }; |
@@ -1,3 +0,1 @@ | ||
export type { ServerBuild, ServerEntryModule, HandleDataRequestFunction, HandleDocumentRequestFunction, CookieParseOptions, CookieSerializeOptions, CookieSignatureOptions, CookieOptions, Cookie, AppLoadContext, AppData, EntryContext, LinkDescriptor, HtmlLinkDescriptor, PageLinkDescriptor, ServerPlatform, ActionFunction, DataFunctionArgs, ErrorBoundaryComponent, HeadersFunction, HtmlMetaDescriptor, LinksFunction, LoaderFunction, MetaDescriptor, MetaFunction, RouteComponent, RouteHandle, RequestHandler, SessionData, Session, SessionStorage, SessionIdStorageStrategy } from "@remix-run/server-runtime"; | ||
export { createCookie, isCookie, json, redirect, createRequestHandler, createSession, isSession, createSessionStorage, createCookieSessionStorage, createMemorySessionStorage } from "@remix-run/server-runtime"; | ||
export { createRequestHandlerWithStaticFiles } from "./server"; |
55
index.js
/** | ||
* @remix-run/deno v0.0.0-experimental-b9cc66cb | ||
* @remix-run/deno v0.0.0-experimental-bb4495f3 | ||
* | ||
@@ -11,52 +11,5 @@ * Copyright (c) Remix Software Inc. | ||
*/ | ||
'use strict'; | ||
import { installGlobals } from './globals.js'; | ||
export { createRequestHandlerWithStaticFiles } from './server.js'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var serverRuntime = require('@remix-run/server-runtime'); | ||
var globals = require('./globals.js'); | ||
var server = require('./server.js'); | ||
globals.installGlobals(); | ||
Object.defineProperty(exports, 'createCookie', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.createCookie; } | ||
}); | ||
Object.defineProperty(exports, 'createCookieSessionStorage', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.createCookieSessionStorage; } | ||
}); | ||
Object.defineProperty(exports, 'createMemorySessionStorage', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.createMemorySessionStorage; } | ||
}); | ||
Object.defineProperty(exports, 'createRequestHandler', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.createRequestHandler; } | ||
}); | ||
Object.defineProperty(exports, 'createSession', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.createSession; } | ||
}); | ||
Object.defineProperty(exports, 'createSessionStorage', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.createSessionStorage; } | ||
}); | ||
Object.defineProperty(exports, 'isCookie', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.isCookie; } | ||
}); | ||
Object.defineProperty(exports, 'isSession', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.isSession; } | ||
}); | ||
Object.defineProperty(exports, 'json', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.json; } | ||
}); | ||
Object.defineProperty(exports, 'redirect', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.redirect; } | ||
}); | ||
exports.createRequestHandlerWithStaticFiles = server.createRequestHandlerWithStaticFiles; | ||
installGlobals(); |
{ | ||
"name": "@remix-run/deno", | ||
"description": "Deno platform abstractions for Remix", | ||
"version": "0.0.0-experimental-b9cc66cb", | ||
"version": "0.0.0-experimental-bb4495f3", | ||
"license": "MIT", | ||
"main": "./index.js", | ||
"module": "./esm/index.js", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"repository": { | ||
@@ -17,3 +17,3 @@ "type": "git", | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-experimental-b9cc66cb", | ||
"@remix-run/server-runtime": "0.0.0-experimental-bb4495f3", | ||
"mime": "^3.0.0" | ||
@@ -20,0 +20,0 @@ }, |
/** | ||
* @remix-run/deno v0.0.0-experimental-b9cc66cb | ||
* @remix-run/deno v0.0.0-experimental-bb4495f3 | ||
* | ||
@@ -11,13 +11,5 @@ * Copyright (c) Remix Software Inc. | ||
*/ | ||
'use strict'; | ||
import { createRequestHandler } from '@remix-run/server-runtime'; | ||
import mime from 'mime'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var serverRuntime = require('@remix-run/server-runtime'); | ||
var mime = require('mime'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var mime__default = /*#__PURE__*/_interopDefaultLegacy(mime); | ||
function defaultCacheControl(url) { | ||
@@ -41,3 +33,3 @@ if (url.pathname.startsWith("/build/")) { | ||
}) { | ||
let remixHandler = serverRuntime.createRequestHandler(build, {}, mode); | ||
let remixHandler = createRequestHandler(build, {}, mode); | ||
return async request => { | ||
@@ -47,3 +39,3 @@ try { | ||
const headers = new Headers(); | ||
const contentType = mime__default["default"].getType(url.pathname); | ||
const contentType = mime.getType(url.pathname); | ||
@@ -84,3 +76,2 @@ if (contentType) { | ||
exports.createRequestHandlerWithStaticFiles = createRequestHandlerWithStaticFiles; | ||
exports.defaultCacheControl = defaultCacheControl; | ||
export { createRequestHandlerWithStaticFiles, defaultCacheControl }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6712
11
150
+ Added@remix-run/server-runtime@0.0.0-experimental-bb4495f3(transitive)
- Removed@remix-run/server-runtime@0.0.0-experimental-b9cc66cb(transitive)
Updated@remix-run/server-runtime@0.0.0-experimental-bb4495f3