Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@casual-simulation/crypto

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casual-simulation/crypto - npm Package Versions

1
79

0.11.0

Diff

Changelog

Source

V0.11.0

Date: 10/18/2019

Changes:

  • Improvements

    • Made the menu item count badge a lighter gray.
    • Removed the item count badge from the menu.
    • Removed the dropdown aspect of the menu.
  • Changes

    • Made the menu item count badge a lighter gray.
    • Removed the admin channel and admin-channel specific functionality.
      • This means that there are no more user account bots or channel bots.
        • You can login as anyone from any device without requiring additional authentication.
        • You can access any channel. No need to create a channel first. (because there are no channel bots anymore)
        • The connection counts are now stored in the config bot of the channel.
        • Connection limits no longer work since they were set on the channel bot in the admin channel.
        • Username whitelists and blacklists still work, but they rely on client-side script execution instead of server-side execution.
      • It also means there is no admin role. For now, everyone has admin permissions.
      • action.perform() now needs to be used to run actions on the server.
        • You can send an action to the server using the remote() function.
        • The server will receive the action in its onAnyAction() as that.action.type === "device"
        • onAnyAction() has to detect remove events and execute the inner action via action.perform(that.action.event).
      • The following functions have been removed:
        • server.grantRole()
        • server.revokeRole()
      • The following functions are not executed by default and require a custom onAnyAction() to handle them.
        • server.backupAsDownload()
        • server.backupToGithub()
        • server.shell()
      • server.backupAsDownload() has been updated to accept a "session selector" which determines which session the ZIP file should be sent to.
        • ex. server.backupAsDownload({ username: getTag(player.getBot(), "#aux._user") })
      • Removed the aux._lastEditedBy tag.
        • This tag was automatically set to the ID of the user whenever a bot was edited.
        • Currently, it is extra cruft that is not needed and could be easily implemented via onAnyAction().
    • Centered the menu above the player inventory.
    • Increased menu text size.
    • Added in new camera range tags: aux.context.zoomable.min, aux.context.zoomable.max aux.context.pannable.min.x, aux.context.pannable.max.x, aux.context.pannable.min.y, aux.context.pannable.max.y.
  • Bug Fixes

    • Removed hidden inventory dragging hitboxes when inventory is set to non-visible.
kallyngowdyyeti
published 0.10.0 •

Changelog

Source

V0.10.0

Date: 09/25/2019

Changes:

  • Improvements
    • Added the ability to send and receive webhooks.
      • Send webhooks using the following functions:
        • webhook(options) - options is an object that takes the following properties:
          • method - The HTTP Method that should be used for the request.
          • url - The URL that the request should be made to.
          • responseShout - (Optional) The shout that should happen when a response is received from the server.
          • headers - (Optional) The HTTP headers that should be sent with the request.
          • data - (Optional) The data that should be sent with the request.
        • webhook.post(url, data, options) - Sends a HTTP Post request.
          • url - The URL that the request should be made to.
          • data - (Optional) The data that should be sent with the request.
          • options - (Optional) An object that takes the following properties:
            • responseShout - (Optional) The shout that should happen when a response is received from the server.
            • headers - (Optional) The headers that should be sent with the request.
      • Receive webhooks by registering a handler for the onWebhook() action and send requests to https://auxplayer.com/{context}/{channel}/whatever-you-want.
        • onWebhook() is shouted to the channel that the request was made to and that is an object with the following properties:
          • method - The HTTP Method that the request was made with.
          • url - The URL that the request was made to.
          • data - The JSON data that the request included.
          • headers - The HTTP headers that were included with the request.
    • Added the ability to spy on shouts and whispers via the onShout() event.
      • onShout() is executed on every bot whenever a shout or whisper happens.
        • It is useful for tracking what shouts are being made and modifying responses.
        • Also useful for providing default behaviors.
        • that is an object with the following properties:
          • name is the name of the action being shouted.
          • that is the argument which was provided for the shout.
          • targets is an array of bots that the shout was sent to.
          • listeners is an array of bots that ran a script for the shout.
          • responses is an array of responses that were returned from the listeners.
    • Added events to notify scripts when channels become available.
      • The following events have been added:
        • onChannelSubscribed() - happens the first time a channel is loaded. Sent to every channel that is currently loaded.
        • onChannelUnsubscribed() - happens when a channel is unloaded. Sent to every channel that remains after the channel is unloaded.
        • onChannelStreaming() - happens when a channel is connected and fully synced. Sent to every channel that is currently loaded.
        • onChannelStreamLost() - happens when a channel is disconnected and may not be fully synced. Sent to every channel that is currently loaded.
        • For all events, that is an object with the following properties:
          • channel - The channel that the event is for.
      • The following events have been removed:
        • onConnected()
        • onDisconnected()
    • Added in tags to change the state of the inventory's camera controls:
      • aux.context.inventory.pannable enables and disables the inventory's ability to pan, off by default.
      • aux.context.inventory.resizable enables and disables the inventory's drag to resize functionality, on by default.
      • aux.context.inventory.rotatable enables and disables the inventory's ability to rotate, on by default.
      • aux.context.inventory.zoomable enables and disables the inventory's ability to zoom, on by default.
  • Bug Fixes
    • Resolved issue with the near cliiping plane for the sheet's minifile image.
    • Resolved issues with the create empty bot button not functioning sometimes on mobile.
kallyngowdyyeti
published 0.9.7 •

Changelog

Source

V0.9.7

Date: 06/28/2019

Changes:

  • Bug Fixes
    • Inventory camera updates properly again in AUXPlayer.
    • Added some basic regex URL validation to aux.iframe tag.
kallyngowdyyeti
published 0.9.1 •

Changelog

Source

V0.9.19

Date: 07/29/2019

Changes:

  • Improvements
    • Added the ability for shouts and whispers to return values.
      • shout() returns a list of results from every bot that ran a script for the shout ordered by bot ID.
      • whisper() returns a list of results from every bot that ran a script for the whisper ordered by the input bot array.
      • To return a value from a shout/whisper handler, use return statements. For example, to return 10 from a shout you would simply write return 10.
    • Changed the tag suggestion list to only show when there are tags that match the input.
    • Changed the create surface popup's header text to read: Create Context from Selection.
    • Added show surface checkbox to the create context popup.
    • Removed the text on the sheet's bottom left add tag button.
    • Added the phrase powered by CasualOS to bthe hamburger menu and loading popup.
    • Removed Unselect All from the sheets.
  • Bug Fixes
    • Fixed an issue that would let users load the admin channel because no file specified session limits for it.
    • Fixed an issue that would cause formulas which contained indexer expressions to fail.
    • Fixed the server to not overwrite broke Causal Trees.
    • Stopped incorrect empty tag warning when attempting to add in a new tag.
    • Fixed there not being a visible right bar on the player inventory.
    • Fixed dependency tracking for formulas which get bots by ID. (like getBots("id"))
kallyngowdyyeti
published 0.8.10 •

Changelog

Source

V0.8.10

Date: 06/07/2019

Changes:

  • Improvements
    • Change diff key word to merge or mergeBall.
      • EX: The tag function aux.diff has been changed to aux.mergeBall and aux.diffTags has been changed to aux.mergeBall.tags and the diff id tag value has been changed to merge.
kallyngowdyyeti
published 0.8.0 •

Changelog

Source

V0.8.0

Date: 05/25/2019

Changes:

  • Improvements
    • Replaced 2D slot-based inventory with a full 3D inventory context view on the lower portion of the screen.
      • You can drag files seamlessly in and out of the inventory and current player context.
      • Inventory has seperate camera control from the player context.
      • Inventory is now unlimited in capacity as it is just another 3d context to place files in and take with you.
    • Added a tag section check for multiple action tags, will now compress them into the actions() section.
    • Add a docker-compose file for arm32 devices.
    • Add the ability to execute a formula and get file events out of it.
    • Add a play button to the search bar that executes the script.
  • Bug Fixes
    • Fixed ability to click on files with aux.shape set to sprite.
    • Hide the context menu on mobile when clicking the background with it open.
    • Refactored progress bars to be more performant.
    • Progress bars no longer interfere with input.
    • Allow queries to return values that are not null or empty strings.
    • Remove context menu on mobile when clicking on background.
    • Make users that are in AUX Player appear blue.
kallyngowdyyeti
published 0.7.0 •

Changelog

Source

V0.7.0

Date: 05/20/2019

Changes:

  • Improvements
    • Search bar will now always remain across the top of builder.
    • Made the aux.context.grid tag not use objects for hex heights.
    • Made auxplayer.com/channel load AUX Builder and auxplayer.com/channel/context load AUX Player.
    • Added onConnected() and onDisconnected() events to notify scripts when the user becomes connected for disconnected from the server.
    • Added player.isConnected() to help formulas easily determine if the player is currently connected.
      • Works by checking the aux.connected tag on the user's file.
  • Bug Fixes
    • Allow for the expansion and shrinking of hexes after they have been raised or lowered.
    • Clicking on the diff bursh in builder will now make the sheets appear correctly.
    • Selecting the file ID in builder will now no longer change the zoom that sent the camera too far away.
    • Upon shrinking the hex grid, hexes will now remain if a file is on top of it.
    • Clicking on a non centeral hex did not show correct raise and lower options, now it does.
    • Fixed an issue that would cause a formula to error if evaluating an array which referenced a non-existant tag.
      • In the test scenario, this made it appear as if some blocks were able to be moved through and other blocks were not.
      • In reality, the filter was breaking before it was able to evaluate the correct block.
      • This is why re-creating a file sometimes worked - because the new file might have a lower file ID which would cause it to be evaluated before the broken file was checked.
    • Fixed an issue that would cause the formula recursion counter to trigger in non-recursive scenarios.
kallyngowdyyeti
published 0.6.5 •

Changelog

Source

V0.6.5

Date: 05/10/2019

  • Improvements
    • Added aux.iframe tag that allows you to embed HTML pages inside an AUX.
      • Related iframe tags:
        • aux.iframe: URL of the page to embed
        • aux.iframe.x: X local position
        • aux.iframe.y: Y local position
        • aux.iframe.z: Z local position
        • aux.iframe.size.x: Width of the iframe plane geometry
        • aux.iframe.size.y: Height of the iframe plane geometry
        • aux.iframe.rotation.x: X local rotation
        • aux.iframe.rotation.y: Y local rotation
        • aux.iframe.rotation.z: Z local rotation
        • aux.iframe.element.width: The pixel width of the iframe DOM element
        • aux.iframe.scale: The uniform scale of the iframe plane geometry
kallyngowdyyeti
published 0.6.0 •

Changelog

Source

V0.6.0

Date: 05/07/2019

Changes:

  • Improvements

    • Added an aux.progressBar tag that generates a progressbar above the file, this tag can be set to any value form 0 to 1.
      • This new tag also has additionally: aux.progressBar.color and aux.progressBar.backgroundColor to color the progressbar's components.
      • This tag also has: aux.progressBar.anchor to set the facing direction of the progress bar relative to the file.
    • Added aux.pickupable to control whether files can be placed into the inventory in the player or not, will be true (able to be put in inventory) by default.
      • If aux.pickupable is true but aux.movable is false, the file can still be dragged into the inventory without moving the file position. It can also be dragged out of the inventory by setting the file position only until is is placed, then not allowing position changes again as aux.movable is still false.
    • Added the ability to load additional channels into an AUX Player channel.
      • Channels can be loaded from any reachable instance of AUX Server. (auxplayer.com, a boobox, etc.)
      • To add a channel to your AUX Player, simply open the hamburger menu and click "Add Channel".
        • Enter in the ID of the channel you want to load.
        • There are several options:
          • A URL (https://auxplayer.com/channel/context)
          • A remote context ID (auxplayer.com/channel/context)
          • A local context ID (channel/context)
          • A local channel ID (channel)
      • To remove a channel, open the hamburger menu and click on the one you want to remove.
      • Channels can also be loaded by putting them in the query string of the URL.
        • This is done by adding a parameter named channels set to the ID of the channel that you want to load.
        • For example, channels=abc/test will load the abc/test channel.
        • As a result, the URL ends up looking something like this https://auxplayer.com/channel/context?channels=abc/test&channels=other/channel.
        • Note that you can only add channels this way. You must go to the hamburger menu to remove a channel.
          • Sharing URLs will cause all the channels you have loaded to show up for someone else but it won't remove any channels they already have loaded.
      • Added several new formula functions:
        • superShout(event, arg) performs a shout that goes to every loaded channel. This is the only way for channels to communicate with each other.
        • player.loadChannel(id) loads the channel with the given ID.
        • player.unloadChannel(id) unloads the channel with the given ID.
      • Additionally, the following events are always sent to every channel:
        • onQRCodeScannerOpened()
        • onQRCodeScannerClosed()
        • onQRCodeScanned()
        • onTapCode()
      • How it works
        • Channels are loaded by creating files in the user's "simulation context".
          • You can get the user's simulation context by using player.getFile().aux._userSimulationsContext.
        • AUX Player looks for these files and checks if they have a aux.channel tag.
          • For files that do, then the aux.channel tag value is used as a channel ID and then AUX Player loads it for each file.
          • Files that don't are ignored.
        • Note that because we have multiple channels loaded there are multiple user files and global files.
          • This is fine because channels cannot lookup files that other channels have.
          • Because of this, a user also has multiple simulation contexts.
          • This works out though, because we merge all the simulation contexts and remove duplicate channels.
          • When player.unloadChannel(id) is called, we only remove simulation files that are in the channel that the script is running in.
          • As a result, if another channel has called player.loadChannel(id) with the same ID the channel will remain loaded because at least one channel has requested that it be loaded.
    • Added in a tween for the zoom that fires once a file has been focused on, it will tween to file position then zoom to the set zoom value.
    • Added whisper(file, event, argument) formula function that sends shouts to a single file.
    • Added a aux.version tag to the globals file which will be used to help determine when breaking changes in the AUX file format occur.
    • Added the ability to copy and paste file selections in AUX Builder.
      • Pressing Ctrl+C or Cmd+C will cause the currently selected files to be copied to the user's clipboard.
      • Pressing Ctrl+V or Cmd+V will cause the currently selected files to be pasted into the world where the user's cursor is.
      • Does not interfere with normal copy/paste operations like copying/pasting in input boxes.
      • If a worksurface is included in the user's selection the new worksurface will be duplicated from it.
        • This allows you to do things like copy the context color.
        • Any files that are being copied from the old worksurface to the new one will also maintain their positions.
    • Added the ability to copy worksurfaces AUX Builder using the new "Copy" option in the context menu.
      • Using the Ctrl+V keybinding after copying the worksurface will paste a duplicate worksurface with duplicates of all the files that were on the surface.
    • Added the ability to drag .aux files into AUX Builder.
      • This will upload them just like the upload option in the hamburger menu.
    • Added player.hasFileInInventory(file) formula function that determines if the given file or list of files are in the current player's inventory.
      • As a part of this change, it is now possible to use the other user-related functions in formulas.
    • Moved the handlePointerEnter and handlePointerExit function logic to only work in PlayerInteractionManager.
    • Added the handlePointerDown to PlayerInteractionManager so down events in general can be collected on the player.
    • Clicking on the Raise and Lower options on the workspace dropdown will now effect the entrire workspace if it has been expanded.
kallyngowdyyeti
published 0.5.2 •

Changelog

Source

V0.5.2

Date: 04/26/2019

Changes:

  • Improvements
    • Set builder's default background color to dark gray. Player remains the light blue.
    • Changed the onDragAny/onDropAny actions to be onAnyDrag/onAnyDrop.
    • formula-lib.ts has changed isPlayerInContext export to player.isInContext.
    • formula-lib.ts has changed makeDiff export to diff.
    • Made the mini file dots much smaller.
    • Added the ability to show and hide a QR Code Scanner using the openQRCodeScanner() and closeQRCodeScanner() functions.
      • Upon scanning a QR Code the onQRCodeScanned() event is triggered with the that variable bound to the scanned QR code.
      • The onQRCodeScannerOpened() event is triggered whenever the QR Code Scanner is opened.
      • The onQRCodeScannerClosed() event is triggered whenever the QR Code Scanner is closed.
    • Moved the file sheet to the right side of the screen.
  • Bug Fixes
    • Fixed an issue with trying to load a WebP version of the "add tag" icon in Safari.
      • Safari doesn't support WebP - so we instead have to load it as a PNG.
    • Fixed the proxy to return the original content type of images to Safari.
      • Because Safari doesn't support WebP we can't automatically optimize the images.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc