Generates and consumes source maps
Generates and consumes source maps
Fixes stack traces for files with source maps
Store information about any JS value in a side channel, using a Map
concatenative mapdashery
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Fixes stack traces for files with source maps
No description provided.
TypeScript Enum Utilities
Persistent ordered mapping from strings
An utility library to get all values/keys of a Typescript enum
Converts a source-map from/to different formats and allows adding/changing properties.
[Experimental] - 🚇 File crawling, watching and mapping for Metro
Generate source maps
extracts inlined source map and offers it to webpack
Automatically cleanup expired items in a Map
Map and Set with automatic key interning
Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API
[](https://travis-ci.org/mulesoft-labs/yaml-ast-parser)
Transform TypeScript `const` enums
Data library for istanbul coverage objects
Map over promises concurrently
Map `visit` over an array of objects.
Retrieves a name:pathname Map for a given workspaces config
Add state maps to Rails Enums for validation on transitions.
Make ActiveRecord `enum` configurable: store the mapping in database instead of hard code
With Enums we are able to map a label to a value on the database. Use Rich Enum if you need to maintain an additional mapping at the point of enum definition, for e.g. for presentation purposes or for mapping to a different value on a different system.
It simplifies creation of enums which are supposed to have one-to-one mapping to their keys and values.
solidity-typed - "zero-dependency" 100%-solidity compatible data type and application binary interface (abi) machinery incl. bool, (frozen) string, address, bytes, uint, int, enum, struct, array, mapping, event, and more for solidity-inspired contract (blockchain) programming languages incl. rubidity, rubysol et al
A Ruby gem that extends ActiveRecord to support bitwise enum mapping, allowing multiple states to be saved in a single database column.
A simple Gem to enable any `ActiveRecord::Base` object to store a set of attributes in a set like structure represented through a bitfield on the database level. You only have to specify the name of the set to hold the attributes in question an the rest is done for you through some fine selected Ruby magic. Here is a simple example of how you could use the gem: class Person < ActiveRecord::Base has_set :interests end To get this to work you need some additional work done first: 1. You need an unsigned 8-Byte integer column in your database to store the bitfield. It is expected that the column is named after the name of the set with the suffix `_bitfield` appended (e.g. `interests_bitfield`). You can change that default behavior by providing the option `:column_name` (e.g. `has_set :interests, :column_name => :my_custom_column`). 2. You need a class that provides the valid values to be stored within the set and map the single bits back to something meaningful. The class should be named after the name of the set (you can change this through the `:enum_class` option). This class could be seen as an enumeration and must implement the following simple interface: * There must be a class method `values` to return all valid enumerators in the defined enumeration. * Each enumerator must implement a `name` method to return a literal representation for identification. The literal must be of the type `String`. * Each enumerator must implement a `bitfield_index` method to return the exponent of the number 2 for calculation the position of this enumerator in the bitfield. **Attention** Changing this index afterwards will destroy your data integrity. Here is a simple example of how to implement such a enumeration type while using the the `renum` gem for simplicity. You are free to use anything else that matches the described interface. enum :Interests do attr_reader :bitfield_index Art(0) Golf(1) Sleeping(2) Drinking(3) Dating(4) Shopping(5) def init(bitfield_index) @bitfield_index = bitfield_index end end
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.