Skip to content

Commit

Permalink
fix import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 4, 2024
1 parent f68735c commit 081533d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
7 changes: 3 additions & 4 deletions dist/1.x/ByteBeat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* [email protected].13, license MIT */
/* [email protected].15, license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -297,9 +297,7 @@
}

static s_fnHeader = (function() {
const keys = {
'import': true,
};
const keys = {};
const windowKeep = new Set([
'parseInt',
'parseFloat',
Expand Down Expand Up @@ -392,6 +390,7 @@
return Object.prototype.hasOwnProperty.call(obj, p1) ? (name + p1) : str;
}
x = x.replace(/\bint\b/g, 'floor');
x = x.replace(/\bimport\b/g, 'notimport');
x = x.replace(/(?:extra\.)?(\w+)/g, function(substr, p1) {
return replacer(substr, extra, p1, 'extra.');
});
Expand Down
7 changes: 3 additions & 4 deletions dist/1.x/ByteBeat.module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* [email protected].13, license MIT */
/* [email protected].15, license MIT */
class WrappingStack {
constructor(stackSize = 256) {
let sp = 0;
Expand Down Expand Up @@ -291,9 +291,7 @@ class ByteBeatCompiler {
}

static s_fnHeader = (function() {
const keys = {
'import': true,
};
const keys = {};
const windowKeep = new Set([
'parseInt',
'parseFloat',
Expand Down Expand Up @@ -386,6 +384,7 @@ class ByteBeatCompiler {
return Object.prototype.hasOwnProperty.call(obj, p1) ? (name + p1) : str;
}
x = x.replace(/\bint\b/g, 'floor');
x = x.replace(/\bimport\b/g, 'notimport');
x = x.replace(/(?:extra\.)?(\w+)/g, function(substr, p1) {
return replacer(substr, extra, p1, 'extra.');
});
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bytebeat.js",
"version": "1.0.13",
"version": "1.0.15",
"description": "a bytebeat library",
"module": "src/ByteBeatNode.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions src/ByteBeatCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ export default class ByteBeatCompiler {
}

static s_fnHeader = (function() {
const keys = {
'import': true,
};
const keys = {};
const windowKeep = new Set([
'parseInt',
'parseFloat',
Expand Down Expand Up @@ -339,6 +337,7 @@ export default class ByteBeatCompiler {
return Object.prototype.hasOwnProperty.call(obj, p1) ? (name + p1) : str;
}
x = x.replace(/\bint\b/g, 'floor');
x = x.replace(/\bimport\b/g, 'notimport');
x = x.replace(/(?:extra\.)?(\w+)/g, function(substr, p1) {
return replacer(substr, extra, p1, 'extra.');
});
Expand Down

0 comments on commit 081533d

Please sign in to comment.