Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@goodgamestudios/cxf-fullscreen
Advanced tools
cxf-fullscreen
Fullscreen support for CXF
iframe
.iframe
s as well.This creates an HTML document structure like this:
top(window)
|
+--- iframe #game
|
+--- iframe #cxf_1
:
:
If the #game
now switches to fullscreen mode, it does so by calling requestFullscreen(document.body)
. The browser will then go in fullscreen mode, showing only #game
, while hiding all upwards and sibling elements.
Next, a player wants to open a CXF extension, eg by clicking a button. #cxf_1 will remain invisible because the #game
is fullscreen, hiding all parent and sibling elements.
Instead of using #game
as the fullscreen element, we use top(window)
. The difficulty with this is that #game
doesn't necessarily have access to top
. To make this easier for #game
, we install a few helper functions in the CXF
global context which the game can then call to toggle fullscreen mode:
window.CXF.toggleFullscreen()
window.CXF.requestFullscreen()
window.CXF.exitFullscreen()
window.CXF.fullscreen
These functions work across all browsers and resemble the standard Fullscreen API (with the exception of toggleFullscreen()
, which is not part of that standard).
xo
as part of testing.nyc
.$ npm test
Release runs test
and build
, then bumps the version
and commits and tags this version using standard-version.
$ npm run release
$ npm publish
You likely don’t need to ever run this manually. Use Release instead
The build step bundles the package into dist/index.js
using parcel
.
Tests are run before building to ensure we’re building a working version.
$ npm run build
FAQs
> Fullscreen support for CXF
The npm package @goodgamestudios/cxf-fullscreen receives a total of 1 weekly downloads. As such, @goodgamestudios/cxf-fullscreen popularity was classified as not popular.
We found that @goodgamestudios/cxf-fullscreen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.