open-index/open-npm huggingface dataset:
npm package: @pixelaw/core-dojo
Description: - user clicks on pixel - retrieve function signature - if just DefaultParams : prep action function -> return - prep Param objects for each   - has transformer? (prefix with "crc","crv", "crs")
Author: thiscaspar
Latest version: 0.8.2

# How Interactions (should) work

- user clicks on pixel
- retrieve function signature
- if just DefaultParams : prep action function -> return
- prep Param objects for each
  - has transformer? (prefix with "crc","crv", "crs")

# Function signature fields

Example from RPS:

- first_move(crc_move_Move)
- second_move(move)
- finish(crv_move, crs_move)

# "Param.transformer()"

-

# Param Transformers

- "crc_VARNAME_VARTYPE": CommitReveal: Commit
  - collect variable value from UI
  - create salt
  - Hash variable with salt
  - submit the hash as felt252
  - store VARNAME+SALT in KVstore for later retrieval
- "crv_VARNAME": CommitReveal: Value
  - retrieve value of VARNAME from storage
  - submit value
- "crs_VARNAME": CommitReveal: Salt
  - retrieve value of SALT from storage
  - submit value

- ContractCall
- Params
  - StringParam
  - NumberParam
  - EnumParam
  -
npm package: @pixelbin/strapi-provider-upload
Description: Pixelbin provider for strapi upload
Author: Pixelbin
Latest version: 1.0.2

# Strapi Upload Provider for Pixelbin.io

works with Strapi 4.

---

PixelBin.io: <https://www.pixelbin.io/>

Docs: <https://www.pixelbin.io/docs/>

Pre-install: create Pixelbin.io account.

## Installation

```
# using npm
npm install @pixelbin/strapi-provider-upload --save
```

## Parameters

| Parameter  | Description | Example |
| ------------- | ------------- | ------------- |
| PIXELBIN_SECRET | api secret | `a89a57f1-09f3-4z56-a282-4a746ce6cb6e` |
| folderName | Default path | "strapi-images" |

## Example

:zero:

Create Strapi project: ([docs](https://docs.strapi.io/dev-docs/quick-start)).

After successfully creating the project stop the dev server: `CTRL + C`.

:one:

Install upload plugin: `npm install @pixelbin/strapi-provider-upload --save`.

NOTE: Be sure that you are in a folder with your Strapi project: `cd strapi-pixelbin-cloud-project`.

After successful installation your package.json file will have a code:

```
"dependencies": {
    ...
    "@pixelbin/strapi-provider-upload": "^1.0.2",
    ...
  },
```

:two:

Go to code editor to your project folder and create config file for your bucket: `./config/plugins.js` (file `plugins.js` in `config` folder in the root of your Strapi project) with the code:



*Strapi v4*:

```javascript
module.exports = ({ env }) => ({
  upload: {
    config: {
      provider: "@pixelbin/strapi-provider-upload",
      providerOptions: {
        apiSecret: env("PIXELBIN_SECRET"),
        folderName: "strapi-images", //you can changes folder name anything you want
      },
      actionOptions: {
        upload: {},
        delete: {},
      },
    },
  },
});
```

*Strapi v4: Security Middleware Configuration*

Go to code editor to your project folder and create config file for your bucket: `./config/middlewares.js` (file `middlewares.js` in `config` folder in the root of your Strapi project) with the code:

```javascript

module.exports = [
  'strapi::errors',
  'strapi::cors',
  'strapi::poweredBy',
  'strapi::logger',
  'strapi::query',
  'strapi::body',
  'strapi::favicon',
  'strapi::public',
   {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
          "connect-src": ["'self'", "https:"],
          "img-src": [
            "'self'",
            "data:",
            "blob:",
            "market-assets.strapi.io",
            "cdn.pixelbin.io",
          ],
          "media-src": [
            "'self'",
            "data:",
            "blob:",
            "market-assets.strapi.io",
            "cdn.pixelbin.io",
          ],
          upgradeInsecureRequests: null,
        },
      },
    },
  },
];
```


:three:

Create a .env file in the root of your Strapi project.

Example of `.env.local`:

```
HOST=0.0.0.0
PORT=1337

PIXELBIN_SECRET=a89a57f1-09f3-4z56-a282-4a746ce6cb6e
```

:four:

Test the new uploader.

1. Start Strapi dev server: `npm run develop`.

2. Open [Strapi media library v4](http://localhost:1337/admin/settings/media-library) in a browser and upload a test image.
npm package: @pixelbits/jsondiff
Description: A library for producing of diff of Javascript objects
Latest version: 1.0.7

# @pixelbits/jsondiff

Performs a deep comparison of two objects, and returns a json object that represents the difference.

> UMD bundle is 1,314 minified+gzipped

## Getting Started

### Example Usage

```ts
import * as jsondiff from '@pixelbits/jsondiff'

const x = {
	foo: { bar: 3 },
	array: [{
		does: 'work',
		too: [ 1, 2, 3 ]
	}]
}

const y = {
	foo: { baz: 4 },
	quux: 5,
	array: [{
		does: 'work',
		too: [ 4, 5, 6 ]
	}, {
		really: 'yes'
	}]
}

const output = {
    foo: { bar: null, baz: 4 },
    quux: 5,
    array: [{ 
        too: [4, 5, 6]
    }, { 
        really: 'yes' 
    }],
}

jsondiff.diff(x, y) // => output
```


### Installation

With [npm](http://npmjs.org) do:

```sh
npm install @pixelbits/jsondiff
```

UMD package available under dist folder: dist/umd.js
<!-- 
@pixelbits/jsondiff can be used directly in the browser without the use of package managers/bundlers as well:  [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js).
-->


### Include

@pixelbits/jsondiff exposes a CommonJS entry point:

```
const diff = require('@pixelbits/jsondiff')
```
Or can be imported in TypeScript as an ES6 module:

```
import * as jsondiff from '@pixelbits/jsondiff'
```
<!--
The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584).
-->

# API


## `jsondiff.diff(x, y, [Options])`

Diff two objects `x` and `y` deeply, returning a new transformation object where `x` + `transform` = `y`.

If an element at the same key is present for both `x` and `y`, and the value is the same, then the key will disappear from
the result.

Performing a diff creates a new object, so that neither `x` or `y` is modified.

**Note:** By default, arrays are diffed by comparing each element at its index.

## Options

### `MergeDirection.Both`

Merges all properties from `x` and all properties from `y` before performing a diff.

```ts
jsondiff.diff(
	{ foo: 'bar' },
	{ foo: 'bar2' },
    MergeDirection.Both
) // => { foo: 'bar2' }
```

### `MergeDirection.Right`

Merges properties from `x` and compares them against the same properties from `y`.

```ts
jsondiff.diff(
	{ foo: 'bar' },
	{ foo: 'bar2', test: 'test' },
    MergeDirection.Right
) // => { foo: 'bar2' }
```

### `MergeDirection.Left`

Merges properties from `y` and compares them against the same properties from `x`.

```ts
jsondiff.diff(
	{ foo: 'bar' },
	{ foo: 'bar2', test: 'test' },
    MergeDirection.Left
) // => { foo: 'bar2', test: 'test' }
```


# License

MIT