Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmoss committed Feb 24, 2025
1 parent 4fcef9d commit 27ff21b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions fixtures/dummy/lib/rubygems/dynamic_import.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const mod = "@rubygems/gem1/index.js";
const gem1 = await import(mod);
2 changes: 1 addition & 1 deletion internal/plugin/css.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func cssModulesProxyTemplate(hash string) string {
return `
export default new Proxy( {}, {
get(t, p, r) {
return prop in t || typeof p === 'symbol' ? Reflect.get(t, p, r) : p + '-` + hash + `';
return p in t || typeof p === 'symbol' ? Reflect.get(t, p, r) : p + '-` + hash + `';
}
});
`
Expand Down
2 changes: 1 addition & 1 deletion lib/proscenium/ui/react-manager/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function init(elements) {
throw `[proscenium/react/manager] Cannot load component ${path} (not found in Proscenium.lazyScripts)`;
}

const react = import("proscenium/react-manager/react");
const react = import("@rubygems/proscenium/react-manager/react");
const Component = import(window.Proscenium.lazyScripts[path].outpath);

const forwardChildren =
Expand Down
2 changes: 1 addition & 1 deletion lib/proscenium/ui/ujs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default async () => {
window.Proscenium = window.Proscenium || {};

if (!window.Proscenium.UJS) {
const classPath = "/proscenium/ujs/class.js";
const classPath = "/node_modules/@rubygems/proscenium/ujs/class.js";
const module = await import(classPath);
window.Proscenium.UJS = new module.default();
}
Expand Down
2 changes: 1 addition & 1 deletion test/build_to_path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var _ = Describe("BuildToPath", func() {

_, code := b.BuildToPath("node_modules/@rubygems/gem4/lib/gem4/gem4.js;lib/gems/gem3.js;lib/foo.css")

Expect(code).To(Equal("node_modules/@rubygems/gem4/lib/gem4/gem4.js::public/assets/node_modules/@rubygems/gem4/lib/gem4/gem4$SKI7JDBI$.js;lib/gems/gem3.js::public/assets/lib/gems/gem3$A3M6YYQ3$.js;lib/foo.css::public/assets/lib/foo$EAILS7QS$.css"))
Expect(code).To(Equal("node_modules/@rubygems/gem4/lib/gem4/gem4.js::public/assets/node_modules/@rubygems/gem4/lib/gem4/gem4$B6JZL62F$.js;lib/gems/gem3.js::public/assets/lib/gems/gem3$QB4NOOOT$.js;lib/foo.css::public/assets/lib/foo$EAILS7QS$.css"))
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/css_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ var _ = Describe("b.BuildToString(css)", func() {
}
var styles_default = new Proxy({}, {
get(t, p, r) {
return prop in t || typeof p === "symbol" ? Reflect.get(t, p, r) : p + "-330940eb";
return p in t || typeof p === "symbol" ? Reflect.get(t, p, r) : p + "-330940eb";
}
});
`
Expand Down

0 comments on commit 27ff21b

Please sign in to comment.