-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Convert to ESM BREAKING CHANGE: Convert from CommonJS to ESM * feat: convert to ESM * fix: Remove outcommented code * ci: Add build step for backward compat to CJS * ci: Ignore linting dist directory Co-authored-by: Trygve Lie <trygve.lie@finn.no>
- Loading branch information
1 parent
37d3d16
commit 349c5b9
Showing
23 changed files
with
253 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
coverage/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ coverage/ | |
node_modules/ | ||
*.log | ||
.vscode | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
'use strict'; | ||
|
||
|
||
/* eslint no-unused-vars: "off", import/no-extraneous-dependencies: "off", no-console: "off" */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
'use strict'; | ||
import * as Incoming from "./http-incoming.js"; | ||
import { document } from "./html-document.js"; | ||
import * as Css from "./asset-css.js"; | ||
import * as Js from "./asset-js.js"; | ||
import * as utils from "./utils.js" | ||
import * as html from "./html-utils.js" | ||
|
||
const HttpIncoming = require('./http-incoming'); | ||
const document = require('./html-document'); | ||
const AssetCss = require('./asset-css'); | ||
const AssetJs = require('./asset-js'); | ||
const utils = require('./utils'); | ||
const html = require('./html-utils'); | ||
|
||
module.exports.isString = utils.isString; | ||
module.exports.isFunction = utils.isFunction; | ||
module.exports.uriBuilder = utils.uriBuilder; | ||
module.exports.uriIsRelative = utils.uriIsRelative; | ||
module.exports.pathnameBuilder = utils.pathnameBuilder; | ||
module.exports.uriRelativeToAbsolute = utils.uriRelativeToAbsolute; | ||
module.exports.setAtLocalsPodium = utils.setAtLocalsPodium; | ||
module.exports.getFromLocalsPodium = utils.getFromLocalsPodium; | ||
module.exports.duplicateOnLocalsPodium = utils.duplicateOnLocalsPodium; | ||
module.exports.serializeContext = utils.serializeContext; | ||
module.exports.deserializeContext = utils.deserializeContext; | ||
module.exports.buildScriptElement = html.buildScriptElement; | ||
module.exports.buildLinkElement = html.buildLinkElement; | ||
module.exports.HttpIncoming = HttpIncoming; | ||
module.exports.template = document; | ||
module.exports.AssetCss = AssetCss; | ||
module.exports.AssetJs = AssetJs; | ||
export const {isString} = utils; | ||
export const {isFunction} = utils; | ||
export const {uriBuilder} = utils; | ||
export const {uriIsRelative} = utils; | ||
export const {pathnameBuilder} = utils; | ||
export const {uriRelativeToAbsolute} = utils; | ||
export const {setAtLocalsPodium} = utils; | ||
export const {getFromLocalsPodium} = utils; | ||
export const {duplicateOnLocalsPodium} = utils; | ||
export const {serializeContext} = utils; | ||
export const {deserializeContext} = utils; | ||
export const {buildScriptElement} = html; | ||
export const {buildLinkElement} = html; | ||
export const HttpIncoming = Incoming; | ||
export const template = document; | ||
export const AssetCss = Css; | ||
export const AssetJs = Js; |
Oops, something went wrong.